Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 97.52 kB / 15.98 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 199.6 kB / 16.91 MB, free: 6.176 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.619/1.619, allocations: 205.1 MB / 222.8 MB, free: 4.613 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.4072/0.4072, allocations: 43.49 MB / 313.6 MB, free: 8.254 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.001657/0.001658, allocations: 67.91 kB / 382.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.159, allocations: 57.78 MB / 440 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003924/0.163, allocations: 2.283 MB / 442.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.1645, allocations: 0.7684 MB / 443.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.1647, allocations: 4 kB / 443.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.1649, allocations: 35.77 kB / 443.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.1651, allocations: 51.55 kB / 443.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.1656, allocations: 123.8 kB / 443.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003903/0.166, allocations: 331.3 kB / 443.6 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.1663, allocations: 80.58 kB / 443.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.1665, allocations: 147.5 kB / 443.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1668, allocations: 163.4 kB / 444 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.1669, allocations: 28 kB / 444 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1671, allocations: 75.95 kB / 444.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1672, allocations: 59.81 kB / 444.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.1673, allocations: 131.4 kB / 444.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005096/0.1678, allocations: 335.1 kB / 444.6 MB, free: 9.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1678, allocations: 0 / 444.6 MB, free: 9.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1679, allocations: 0 / 444.6 MB, free: 9.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1679, allocations: 0 / 444.6 MB, free: 9.898 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001034/0.1689, allocations: 0.5613 MB / 445.1 MB, free: 9.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.169, allocations: 11.89 kB / 445.2 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.497e-05/0.169, allocations: 32.66 kB / 445.2 MB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.1693, allocations: 236 kB / 445.4 MB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.1694, allocations: 20.81 kB / 445.4 MB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.1694, allocations: 20.36 kB / 445.5 MB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.17, allocations: 275.4 kB / 445.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.17, allocations: 3.906 kB / 445.7 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.17, allocations: 12 kB / 445.7 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.17, allocations: 4 kB / 445.7 MB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005079/0.1706, allocations: 233.6 kB / 446 MB, free: 8.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.1719, allocations: 0.7362 MB / 446.7 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.1724, allocations: 238.5 kB / 446.9 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/0.1726, allocations: 140.8 kB / 447.1 MB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.1727, allocations: 4.078 kB / 447.1 MB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1727, allocations: 38.5 kB / 447.1 MB, free: 7.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.1727, allocations: 0 / 447.1 MB, free: 7.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003139/0.1759, allocations: 1.465 MB / 448.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.1759, allocations: 55.41 kB / 448.6 MB, free: 5.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.1761, allocations: 194.6 kB / 448.8 MB, free: 5.352 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.1762, allocations: 37.7 kB / 448.9 MB, free: 5.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.441e-05/0.1763, allocations: 136.6 kB / 449 MB, free: 5.172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.1764, allocations: 118.4 kB / 449.1 MB, free: 5.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.1765, allocations: 57.7 kB / 449.2 MB, free: 4.992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.1767, allocations: 334.8 kB / 449.5 MB, free: 4.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.177, allocations: 131.7 kB / 449.6 MB, free: 4.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.1773, allocations: 171.2 kB / 449.8 MB, free: 4.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.1777, allocations: 243.3 kB / 450 MB, free: 4.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1777, allocations: 0 / 450 MB, free: 4.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008152/0.1785, allocations: 437.8 kB / 450.5 MB, free: 3.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1786, allocations: 8 kB / 450.5 MB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1786, allocations: 7.984 kB / 450.5 MB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006159/0.1792, allocations: 240.7 kB / 450.7 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.1794, allocations: 51.91 kB / 450.8 MB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008639/0.1803, allocations: 0.7553 MB / 451.5 MB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002254/0.1805, allocations: 40.02 kB / 451.6 MB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.1806, allocations: 12 kB / 451.6 MB, free: 2.523 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001735/0.1808, allocations: 158 kB / 451.7 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1808, allocations: 23.72 kB / 451.7 MB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.117e-05/0.1809, allocations: 38.53 kB / 451.8 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1809, allocations: 4.062 kB / 451.8 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.181, allocations: 4 kB / 451.8 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.181, allocations: 3.984 kB / 451.8 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.1825, allocations: 0.952 MB / 452.7 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1825, allocations: 0 / 452.7 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.1828, allocations: 47.97 kB / 452.8 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003919/0.1832, allocations: 216.7 kB / 453 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/0.1832, allocations: 11.98 kB / 453 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007943/0.184, allocations: 0.7123 MB / 453.7 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.184, allocations: 4.125 kB / 453.7 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.284/0.468, allocations: 0.6339 MB / 454.4 MB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.4682, allocations: 130.7 kB / 454.5 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.931e-05/0.4683, allocations: 9.125 kB / 454.5 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.4686, allocations: 34.92 kB / 454.5 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4687, allocations: 49.72 kB / 454.6 MB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.4688, allocations: 16.02 kB / 454.6 MB, free: 49.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001295/0.4689, allocations: 144 kB / 454.7 MB, free: 48.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4689, allocations: 1.188 kB / 454.7 MB, free: 48.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004155/0.4693, allocations: 75.84 kB / 454.8 MB, free: 48.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002613/0.4696, allocations: 125.5 kB / 454.9 MB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008728/0.4705, allocations: 330.6 kB / 455.3 MB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4705, allocations: 3 kB / 455.3 MB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.4708, allocations: 161 kB / 455.4 MB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004394/0.4713, allocations: 33.73 kB / 455.5 MB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.4732, allocations: 0.8415 MB / 456.3 MB, free: 48.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/0.4734, allocations: 0.7518 MB / 457.1 MB, free: 47.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.689e-05/0.4735, allocations: 20.59 kB / 457.1 MB, free: 47.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.68e-05/0.4736, allocations: 33.34 kB / 457.1 MB, free: 47.81 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4736, allocations: 0 / 457.1 MB, free: 47.81 MB / 382.1 MB Notification: Performance of Templates: time 0.008415/0.482, allocations: 5.044 MB / 462.1 MB, free: 47.56 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches