Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2305/0.2305, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 91.23 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1541, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.0052/0.1594, allocations: 2.86 MB / 483.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.1611, allocations: 0.7946 MB / 483.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001802/0.1613, allocations: 15.88 kB / 483.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.1616, allocations: 59.33 kB / 483.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.1618, allocations: 130.9 kB / 484.1 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.1622, allocations: 115.8 kB / 484.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.1627, allocations: 446.4 kB / 484.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.163, allocations: 186.1 kB / 484.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.1633, allocations: 175.4 kB / 485 MB, free: 340 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.1636, allocations: 191.1 kB / 485.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.416e-05/0.1636, allocations: 36 kB / 485.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.829e-05/0.1637, allocations: 43.94 kB / 485.2 MB, free: 68 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.1639, allocations: 87.78 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.1641, allocations: 202.9 kB / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004824/0.1646, allocations: 446.7 kB / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.1646, allocations: 0 / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1646, allocations: 0 / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.1646, allocations: 4 kB / 486 MB, free: 15.34 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001039/0.1656, allocations: 0.6784 MB / 486.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1657, allocations: 8.031 kB / 486.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.23e-05/0.1658, allocations: 74.72 kB / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003574/0.1661, allocations: 76.38 kB / 486.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.1665, allocations: 299.5 kB / 487.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.1665, allocations: 29.38 kB / 487.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.1666, allocations: 36.38 kB / 487.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.1673, allocations: 385.2 kB / 487.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.1673, allocations: 7.906 kB / 487.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.1674, allocations: 16 kB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1674, allocations: 8 kB / 487.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005109/0.1679, allocations: 251.8 kB / 487.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.1696, allocations: 1.109 MB / 488.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005949/0.1702, allocations: 347.5 kB / 489.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.1705, allocations: 179.2 kB / 489.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.1705, allocations: 8 kB / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.1706, allocations: 50.44 kB / 489.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.943e-06/0.1706, allocations: 0 / 489.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.004046/0.1746, allocations: 2.438 MB / 491.9 MB, free: 8.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.1747, allocations: 110.8 kB / 492 MB, free: 8.766 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.175, allocations: 250.7 kB / 492.3 MB, free: 8.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.175, allocations: 29.7 kB / 492.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1752, allocations: 184.7 kB / 492.5 MB, free: 8.293 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.1754, allocations: 201 kB / 492.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.1755, allocations: 86.25 kB / 492.8 MB, free: 8.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1757, allocations: 350.7 kB / 493.1 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.176, allocations: 137 kB / 493.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.1764, allocations: 223.8 kB / 493.5 MB, free: 7.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.1771, allocations: 390 kB / 493.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1771, allocations: 7.938 kB / 493.8 MB, free: 6.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001048/0.1781, allocations: 0.5655 MB / 494.4 MB, free: 6.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1782, allocations: 4 kB / 494.4 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.1782, allocations: 4 kB / 494.4 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003643/0.1785, allocations: 126.5 kB / 494.5 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.1789, allocations: 95.89 kB / 494.6 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005141/0.1841, allocations: 5.218 MB / 499.8 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.1844, allocations: 23.98 kB / 499.9 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.1844, allocations: 16 kB / 499.9 MB, free: 360 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002651/0.1847, allocations: 169.4 kB / 0.4883 GB, free: 184 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.1848, allocations: 43.52 kB / 0.4884 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.336e-05/0.1849, allocations: 42.19 kB / 0.4884 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-06/0.1849, allocations: 4 kB / 0.4884 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.231e-05/0.185, allocations: 11.92 kB / 0.4884 GB, free: 84 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.185, allocations: 0 / 0.4884 GB, free: 84 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.1874, allocations: 1.327 MB / 0.4897 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.1874, allocations: 4 kB / 0.4897 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.1878, allocations: 95.88 kB / 0.4898 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000299/0.1881, allocations: 106.4 kB / 0.4899 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.1882, allocations: 12 kB / 0.4899 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004316/0.1925, allocations: 4.431 MB / 0.4943 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.1925, allocations: 3.938 kB / 0.4943 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.194, allocations: 0.9193 MB / 0.4952 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.1941, allocations: 116.7 kB / 0.4953 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.818e-05/0.1942, allocations: 12 kB / 0.4953 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.1944, allocations: 12 kB / 0.4953 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1945, allocations: 47.88 kB / 0.4953 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.1946, allocations: 20 kB / 0.4954 GB, free: 8.422 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.1948, allocations: 181.9 kB / 0.4955 GB, free: 8.238 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1948, allocations: 0 / 0.4955 GB, free: 8.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007347/0.1955, allocations: 124 kB / 0.4957 GB, free: 8.117 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001965/0.1975, allocations: 1.474 MB / 0.4971 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.199, allocations: 0.7931 MB / 0.4979 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.199, allocations: 0 / 0.4979 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00088/0.1999, allocations: 0.58 MB / 0.4984 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007261/0.2006, allocations: 76.25 kB / 0.4985 GB, free: 5.078 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007206/0.2079, allocations: 4.187 MB / 0.5026 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2059/0.4138, allocations: 0.8126 MB / 0.5034 GB, free: 40.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000301/0.4142, allocations: 37.36 kB / 0.5034 GB, free: 40.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.4145, allocations: 129.8 kB / 0.5035 GB, free: 40.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4145, allocations: 2.375 kB / 0.5036 GB, free: 40.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05434/0.4688, allocations: 8.181 MB / 0.5115 GB, free: 39.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.52, allocations: 12.27 kB / 0.5116 GB, free: 39.56 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1)