Changeset e4efaec in OpenModelica
- Timestamp:
- 2017-09-07T13:01:19+02:00 (7 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 8a7ad824
- Parents:
- 1a22a75
- git-author:
- Per Östlund <perost86@…> (09/07/17 13:01:19)
- git-committer:
- hudson <openmodelica@…> (09/07/17 13:01:19)
- Location:
- flattening/modelica/scodeinst
- Files:
-
- 14 added
- 4 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
flattening/modelica/scodeinst/FuncBuiltinRem.mo
r2b02a60 re4efaec 15 15 // Result: 16 16 // class FuncBuiltinRem 17 // Real r1 = OpenModelica.Internal.intRem(5, 2);17 // Real r1 = /*Real*/(OpenModelica.Internal.intRem(5, 2)); 18 18 // Real r2 = OpenModelica.Internal.realRem(5.0, 2.0); 19 19 // Real r3 = OpenModelica.Internal.realRem(8.0, 3.0); -
flattening/modelica/scodeinst/Makefile
rbf355bb re4efaec 34 34 const1.mo \ 35 35 const2.mo \ 36 const7.mo \ 37 const8.mo \ 36 38 const10.mo \ 37 39 const11.mo \ … … 42 44 const17.mo \ 43 45 const3.mo \ 46 DimCyclic1.mo \ 47 DimCyclic2.mo \ 48 DimCyclic3.mo \ 49 DimCyclic4.mo \ 50 DimSize1.mo \ 51 DimSize2.mo \ 52 DimSize3.mo \ 44 53 dim1.mo \ 54 dim10.mo \ 55 dim12.mo \ 45 56 dim13.mo \ 57 dim17.mo \ 46 58 dim18.mo \ 59 dim19.mo \ 47 60 dim3.mo \ 61 dim7.mo \ 48 62 dim8.mo \ 49 63 DuplicateElements1.mo \ … … 149 163 inst4.mo \ 150 164 inst5.mo \ 165 inst7.mo \ 151 166 inst8.mo \ 152 167 lookup1.mo \ … … 154 169 lookup3.mo \ 155 170 lookup4.mo \ 171 loop1.mo \ 156 172 loop2.mo \ 173 loop3.mo \ 157 174 mod1.mo \ 158 175 mod10.mo \ … … 176 193 RangeInvalidStep3.mo \ 177 194 RangeTypeError1.mo \ 178 RangeTypeError1.mo \179 RangeTypeError2.mo \180 195 RangeTypeError2.mo \ 181 196 RangeTypeError3.mo \ … … 193 208 redeclare9.mo \ 194 209 Size1.mo \ 210 Size2.mo \ 195 211 SizeInvalidArgs1.mo \ 196 212 SizeInvalidArgs2.mo \ 213 SizeInvalidIndex1.mo \ 214 SizeInvalidIndex2.mo \ 215 SizeInvalidIndex3.mo \ 216 SizeInvalidIndex4.mo \ 197 217 SizeInvalidType1.mo \ 198 218 SizeInvalidType2.mo \ 199 219 Subscript1.mo \ 200 220 type2.mo \ 221 TypeDim1.mo \ 222 TypeDim2.mo \ 201 223 usertype1.mo \ 202 224 usertype2.mo \ … … 240 262 const5.mo \ 241 263 const6.mo \ 242 const7.mo \243 const8.mo \244 264 ConstantConnector1.mo \ 245 265 ConstantConnector2.mo \ 246 266 ConstantConnector3.mo \ 247 dim10.mo \248 dim12.mo \249 267 dim14.mo \ 250 268 dim15.mo \ 251 269 dim16.mo \ 252 dim17.mo \253 dim19.mo \254 270 dim2.mo \ 255 dim4.mo \256 dim5.mo \257 dim6.mo \258 dim7.mo \259 271 enum6.mo \ 260 272 eq2.mo \ … … 317 329 inst1.mo \ 318 330 inst6.mo \ 319 inst7.mo \320 331 InvalidComplexConnectorType1.mo \ 321 332 InvalidComplexConnectorType2.mo \ … … 336 347 InvalidVariability1.mo \ 337 348 InvalidVariability2.mo \ 338 loop1.mo \339 loop3.mo \340 349 loop4.mo \ 341 350 MissingRedeclare1.mo \ … … 356 365 RedeclaredFunction1.mo \ 357 366 type1.mo \ 358 type3.mo \359 367 type4.mo \ 360 368 type5.mo \ -
flattening/modelica/scodeinst/Range1.mo
r5393bf1 re4efaec 8 8 model Range1 9 9 type E = enumeration(one, two, three); 10 Realx[E] = E.one:E.three;10 E x[E] = E.one:E.three; 11 11 end Range1; 12 12 -
flattening/modelica/scodeinst/RangeInvalidStep3.mo
r5393bf1 re4efaec 15 15 // Result: 16 16 // Error processing file: RangeInvalidStep3.mo 17 // [flattening/modelica/scodeinst/RangeInvalidStep3.mo:12:3-12:31:writable] Error: Range of type enumeration( ) may not specify a step size.17 // [flattening/modelica/scodeinst/RangeInvalidStep3.mo:12:3-12:31:writable] Error: Range of type enumeration(one, two, three) may not specify a step size. 18 18 // 19 19 // # Error encountered! Exiting... -
flattening/modelica/scodeinst/RangeTypeError2.mo
r5393bf1 re4efaec 16 16 // Integer 17 17 // is not type compatible with 'E.one' of type 18 // enumeration( )18 // enumeration(one, two, three) 19 19 // 20 20 // # Error encountered! Exiting... -
flattening/modelica/scodeinst/Size1.mo
rbf355bb re4efaec 17 17 // Real x[2]; 18 18 // Real x[3]; 19 // Integer y = size(x, 1);19 // Integer y = 3; 20 20 // end Size1; 21 21 // endResult -
flattening/modelica/scodeinst/const10.mo
r01d38b7b re4efaec 21 21 // class C 22 22 // constant Integer b.j = A.i; 23 // Real b.x = b.j;23 // Real b.x = /*Real*/(b.j); 24 24 // end C; 25 25 // endResult -
flattening/modelica/scodeinst/const15.mo
r01d38b7b re4efaec 19 19 // Result: 20 20 // class C 21 // Real x = B.i;21 // Real x = /*Real*/(B.i); 22 22 // end C; 23 23 // endResult -
flattening/modelica/scodeinst/const16.mo
r01d38b7b re4efaec 25 25 // Result: 26 26 // class M 27 // Real x = P.P.P.i;27 // Real x = /*Real*/(P.P.P.i); 28 28 // end M; 29 29 // endResult -
flattening/modelica/scodeinst/const17.mo
r01d38b7b re4efaec 24 24 // Result: 25 25 // class M 26 // Real x = A.B.i;26 // Real x = /*Real*/(A.B.i); 27 27 // end M; 28 28 // endResult -
flattening/modelica/scodeinst/dim12.mo
r545b9125 re4efaec 13 13 14 14 // Result: 15 // SCodeInst.instClass failed16 15 // Error processing file: dim12.mo 16 // [flattening/modelica/scodeinst/dim12.mo:11:3-11:12:writable] Error: Failed to deduce dimensions of x due to missing binding equation. 17 // 17 18 // # Error encountered! Exiting... 18 19 // # Please check the error message and the flags. -
flattening/modelica/scodeinst/dim17.mo
r545b9125 re4efaec 4 4 // cflags: -d=newInst 5 5 // 6 // FAILREASON: All array dimensions of y are instantiated when infering the7 // dimensions of x, which is not strictly needed.8 6 // 9 7 10 8 model A 11 Real x[ 3, :] = y * 4;12 Real y[:, 4] = x;9 Real x[2, :] = y; 10 Real y[:, 3] = x; 13 11 end A; 12 13 // Result: 14 // class A 15 // Real x[1,1] = y[1,1]; 16 // Real x[1,2] = y[1,2]; 17 // Real x[1,3] = y[1,3]; 18 // Real x[2,1] = y[2,1]; 19 // Real x[2,2] = y[2,2]; 20 // Real x[2,3] = y[2,3]; 21 // Real y[1,1] = x[1,1]; 22 // Real y[1,2] = x[1,2]; 23 // Real y[1,3] = x[1,3]; 24 // Real y[2,1] = x[2,1]; 25 // Real y[2,2] = x[2,2]; 26 // Real y[2,3] = x[2,3]; 27 // end A; 28 // endResult -
flattening/modelica/scodeinst/dim19.mo
r545b9125 re4efaec 12 12 Real x[m]; 13 13 end A; 14 15 // Result: 16 // class A 17 // parameter Integer n[1] = 1; 18 // parameter Integer n[2] = 2; 19 // parameter Integer n[3] = 3; 20 // parameter Integer m = n[2]; 21 // Real x[1]; 22 // Real x[2]; 23 // end A; 24 // endResult -
flattening/modelica/scodeinst/inst7.mo
r545b9125 re4efaec 1 1 // name: inst7.mo 2 2 // keywords: 3 // status: correct3 // status: incorrect 4 4 // cflags: -d=newInst 5 5 // 6 // FAILREASON: Typing of x.start fails. Should this be allowed?7 6 // 8 7 … … 14 13 15 14 // Result: 16 // Failed to type cref x.start17 // SCodeInst.instClass failed18 // Error processing file: test2.mo15 // Error processing file: inst7.mo 16 // [flattening/modelica/scodeinst/inst7.mo:11:3-11:19:writable] Error: Variable x.start not found in scope M. 17 // 19 18 // # Error encountered! Exiting... 20 19 // # Please check the error message and the flags. -
flattening/modelica/scodeinst/loop1.mo
r545b9125 re4efaec 1 1 // name: loop1.mo 2 2 // keywords: 3 // status: correct4 // cflags: 3 // status: incorrect 4 // cflags: -d=newInst 5 5 // 6 // FAILREASON: Not good enough error message.7 6 // 8 7 … … 17 16 18 17 // Result: 19 // Failed to type cref i20 // Failed to type cref j21 // Failed to type cref i22 // Failed to type cref a23 // SCodeInst.instClass failed24 18 // Error processing file: loop1.mo 25 // Error: Internal error Found cyclic dependencies, but failed to show error.19 // [flattening/modelica/scodeinst/loop1.mo:14:3-14:34:writable] Error: Dimension 1 of x, 'i', could not be evaluated due to a cyclic dependency. 26 20 // 27 21 // # Error encountered! Exiting...
Note: See TracChangeset
for help on using the changeset viewer.