Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009655/0.0009652, allocations: 96.62 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 169 kB / 16.57 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.4 MB / 222.7 MB, free: 5.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4712/0.4712, allocations: 43.57 MB / 314.6 MB, free: 8.766 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000577/0.000577, allocations: 12 kB / 383.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1552, allocations: 58.86 MB / 442.8 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00328/0.1585, allocations: 2.401 MB / 445.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.1598, allocations: 0.7062 MB / 445.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.16, allocations: 11.94 kB / 445.9 MB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.1602, allocations: 39.69 kB / 446 MB, free: 9.824 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.1604, allocations: 115.1 kB / 446.1 MB, free: 9.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.1607, allocations: 59.92 kB / 446.1 MB, free: 9.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005039/0.1612, allocations: 402 kB / 446.5 MB, free: 9.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003753/0.1616, allocations: 108.2 kB / 446.6 MB, free: 9.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.1618, allocations: 143.5 kB / 446.8 MB, free: 9.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002676/0.1621, allocations: 163.2 kB / 446.9 MB, free: 8.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.1622, allocations: 16 kB / 447 MB, free: 8.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.636e-05/0.1622, allocations: 20 kB / 447 MB, free: 8.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.1623, allocations: 63.75 kB / 447 MB, free: 8.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1625, allocations: 97.52 kB / 447.1 MB, free: 8.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.1628, allocations: 303.4 kB / 447.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.177e-05/0.1629, allocations: 0 / 447.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1629, allocations: 0 / 447.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.1629, allocations: 4 kB / 447.4 MB, free: 8.344 MB / 382.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.001132/0.164, allocations: 0.5848 MB / 448 MB, free: 7.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.411e-05/0.1641, allocations: 15.95 kB / 448 MB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.736e-05/0.1642, allocations: 39.53 kB / 448.1 MB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.1646, allocations: 271.2 kB / 448.3 MB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/0.1647, allocations: 36.94 kB / 448.4 MB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.1648, allocations: 36 kB / 448.4 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007785/0.1655, allocations: 398.1 kB / 448.8 MB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.608e-05/0.1656, allocations: 11.91 kB / 448.8 MB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1656, allocations: 16 kB / 448.8 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.1657, allocations: 8 kB / 448.8 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005059/0.1662, allocations: 235.7 kB / 449.1 MB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002853/0.169, allocations: 1.723 MB / 450.8 MB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1696, allocations: 266.3 kB / 451 MB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.1698, allocations: 98.08 kB / 451.1 MB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.1699, allocations: 4 kB / 451.1 MB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.577e-05/0.1699, allocations: 50.48 kB / 451.2 MB, free: 4.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.174e-06/0.1699, allocations: 0 / 451.2 MB, free: 4.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007237/0.1707, allocations: 269.8 kB / 451.5 MB, free: 3.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.1708, allocations: 213.6 kB / 451.7 MB, free: 3.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.1711, allocations: 274.8 kB / 451.9 MB, free: 3.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1711, allocations: 33.7 kB / 452 MB, free: 3.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.1713, allocations: 235.4 kB / 452.2 MB, free: 3.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.879e-05/0.1714, allocations: 122.4 kB / 452.3 MB, free: 3.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.1714, allocations: 8 kB / 452.3 MB, free: 3.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1716, allocations: 350.8 kB / 452.7 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.1718, allocations: 101.2 kB / 452.8 MB, free: 2.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.1722, allocations: 432.8 kB / 453.2 MB, free: 2.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.1725, allocations: 171.8 kB / 453.4 MB, free: 1.855 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.1725, allocations: 8 kB / 453.4 MB, free: 1.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008246/0.1734, allocations: 0.5206 MB / 453.9 MB, free: 1.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.688e-05/0.1734, allocations: 15.98 kB / 453.9 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.1735, allocations: 12 kB / 453.9 MB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.318e-05/0.1735, allocations: 16 kB / 453.9 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004524/0.174, allocations: 147.8 kB / 454.1 MB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.994e-05/0.174, allocations: 24.42 kB / 454.1 MB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.1743, allocations: 71.3 kB / 454.2 MB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.1744, allocations: 32 kB / 454.2 MB, free: 1.008 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002448/0.1746, allocations: 181.5 kB / 454.4 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.1748, allocations: 27.72 kB / 454.4 MB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.1749, allocations: 37.78 kB / 454.4 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.1749, allocations: 4 kB / 454.4 MB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.1749, allocations: 3.938 kB / 454.4 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.175, allocations: 11.94 kB / 454.5 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.1763, allocations: 0.6442 MB / 455.1 MB, free: 28 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.1763, allocations: 7.984 kB / 455.1 MB, free: 20 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3015/0.4779, allocations: 91.89 kB / 455.2 MB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.886e-05/0.478, allocations: 5.781 kB / 455.2 MB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.822e-05/0.478, allocations: 9.672 kB / 455.2 MB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.288e-05/0.478, allocations: 8.469 kB / 455.2 MB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.478, allocations: 2.75 kB / 455.2 MB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008146/0.4789, allocations: 0.8455 MB / 456.1 MB, free: 44.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.479, allocations: 110.8 kB / 456.2 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.479, allocations: 9.188 kB / 456.2 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/0.4795, allocations: 8.969 kB / 456.2 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.4796, allocations: 23.48 kB / 456.2 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.4796, allocations: 16.2 kB / 456.2 MB, free: 44.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001665/0.4798, allocations: 180.6 kB / 456.4 MB, free: 44.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4798, allocations: 3.844 kB / 456.4 MB, free: 44.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007904/0.4806, allocations: 100.4 kB / 456.5 MB, free: 44.44 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000117/0.4807, allocations: 105.7 kB / 456.6 MB, free: 44.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004865/0.4812, allocations: 296.9 kB / 456.9 MB, free: 44.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4812, allocations: 0 / 456.9 MB, free: 44.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.4813, allocations: 95.75 kB / 457 MB, free: 44.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009574/0.4823, allocations: 61.36 kB / 457.1 MB, free: 44.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.4845, allocations: 1.899 MB / 459 MB, free: 43.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.4848, allocations: 0.7979 MB / 459.8 MB, free: 42.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.485, allocations: 38.88 kB / 459.8 MB, free: 42.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.808e-05/0.485, allocations: 27.69 kB / 459.8 MB, free: 42.34 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.485, allocations: 0 / 459.8 MB, free: 42.34 MB / 382.1 MB Notification: Performance of Templates: time 0.005755/0.4908, allocations: 2.669 MB / 462.5 MB, free: 42.15 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches