Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001423/0.001424, allocations: 104.1 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.001556/0.001556, 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.389/1.389, 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 trunk/package.mo): time 0.2135/0.2135, allocations: 46.13 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00246/0.00246, allocations: 76.39 kB / 417.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.159, allocations: 62.46 MB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003874/0.1629, allocations: 2.841 MB / 482.9 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1643, allocations: 0.7789 MB / 483.7 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.1644, allocations: 11.94 kB / 483.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.1646, allocations: 47.45 kB / 483.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.1649, allocations: 134.8 kB / 483.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.1652, allocations: 107.8 kB / 484 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.1656, allocations: 437.9 kB / 484.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.1659, allocations: 137.6 kB / 484.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.1661, allocations: 167.4 kB / 484.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.1663, allocations: 179.2 kB / 484.9 MB, free: 388 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.1664, allocations: 32 kB / 484.9 MB, free: 356 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.791e-05/0.1665, allocations: 40 kB / 485 MB, free: 316 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.1666, allocations: 79.64 kB / 485 MB, free: 236 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.1667, allocations: 199.1 kB / 485.2 MB, free: 36 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.1672, allocations: 426.8 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1672, allocations: 4 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1672, allocations: 0 / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1672, allocations: 0 / 485.7 MB, free: 15.61 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009074/0.1681, allocations: 0.6551 MB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1682, allocations: 8.031 kB / 486.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002363/0.1684, allocations: 60.45 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1687, allocations: 284.4 kB / 486.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.1687, allocations: 29.38 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.1688, allocations: 44.36 kB / 486.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.1694, allocations: 390.5 kB / 487.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1694, allocations: 15.83 kB / 487.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.1695, allocations: 16 kB / 487.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.1695, allocations: 12 kB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003944/0.1699, allocations: 227.2 kB / 487.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.1719, allocations: 1.726 MB / 489.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.1724, allocations: 262.3 kB / 489.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.1725, allocations: 98.06 kB / 489.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1726, allocations: 8 kB / 489.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.1726, allocations: 38.5 kB / 489.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.174e-06/0.1726, allocations: 0 / 489.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006398/0.1733, allocations: 265.3 kB / 489.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1734, allocations: 213.6 kB / 490 MB, free: 10.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.1736, allocations: 283.1 kB / 490.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.1737, allocations: 29.7 kB / 490.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.1738, allocations: 235.4 kB / 490.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.081e-05/0.1739, allocations: 118.4 kB / 490.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.174, allocations: 106.3 kB / 490.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1742, allocations: 350.7 kB / 491.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.1743, allocations: 97.27 kB / 491.2 MB, free: 9.699 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/0.1747, allocations: 420.8 kB / 491.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006283/0.1754, allocations: 0.5741 MB / 492.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.1754, allocations: 4 kB / 492.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00082/0.1762, allocations: 0.5283 MB / 492.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.1763, allocations: 12 kB / 492.7 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.1763, allocations: 15.98 kB / 492.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.1763, allocations: 16.81 kB / 492.7 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.1767, allocations: 151.8 kB / 492.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.975e-05/0.1768, allocations: 23.92 kB / 492.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.177, allocations: 67.36 kB / 493 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.1771, allocations: 28 kB / 493 MB, free: 7.543 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001753/0.1773, allocations: 177.5 kB / 493.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1774, allocations: 32.12 kB / 493.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.168e-05/0.1775, allocations: 33.83 kB / 493.2 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.1775, allocations: 8 kB / 493.2 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.1775, allocations: 4 kB / 493.2 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1775, allocations: 7.984 kB / 493.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.1787, allocations: 0.6514 MB / 493.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1788, allocations: 3.938 kB / 493.9 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/0.1792, allocations: 91.89 kB / 494 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.1792, allocations: 64 / 494 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.1793, allocations: 19.98 kB / 494 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.1793, allocations: 7.938 kB / 494 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1793, allocations: 0 / 494 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007359/0.18, allocations: 0.8229 MB / 494.8 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.729e-05/0.1801, allocations: 112.8 kB / 495 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.1802, allocations: 8 kB / 495 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.1805, allocations: 15.92 kB / 495 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.63e-05/0.1806, allocations: 27.91 kB / 495 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.1806, allocations: 12 kB / 495 MB, free: 5.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.1807, allocations: 186 kB / 495.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1807, allocations: 0 / 495.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006944/0.1814, allocations: 99.75 kB / 495.3 MB, free: 5.121 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001245/0.1816, allocations: 111.1 kB / 495.4 MB, free: 5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.1821, allocations: 306.2 kB / 495.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1821, allocations: 0 / 495.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.1823, allocations: 91.83 kB / 495.8 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009733/0.1832, allocations: 80.89 kB / 495.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.1855, allocations: 1.553 MB / 497.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.1859, allocations: 0.7989 MB / 498.2 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001851/0.1861, allocations: 47.25 kB / 498.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/0.1862, allocations: 27.44 kB / 498.3 MB, free: 2.035 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1862, allocations: 0 / 498.3 MB, free: 2.035 MB / 366.1 MB Notification: Performance of Templates: time 0.006654/0.1929, allocations: 2.932 MB / 0.4895 GB, free: 15.12 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches