Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001516/0.001516, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001733/0.001733, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.016/2.016, allocations: 222.9 MB / 242.4 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3114/0.3114, allocations: 44.17 MB / 336.8 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 60.41 kB / 408.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1554, allocations: 60.83 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.005072/0.1605, allocations: 2.283 MB / 471.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1625, allocations: 0.7286 MB / 472.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.1627, allocations: 7.938 kB / 472.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002708/0.163, allocations: 27.78 kB / 472.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/0.1632, allocations: 55.59 kB / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.1637, allocations: 107.8 kB / 472.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004038/0.1641, allocations: 327.2 kB / 472.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.1644, allocations: 73 kB / 472.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002482/0.1646, allocations: 131.5 kB / 472.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.1649, allocations: 147.4 kB / 473 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.1649, allocations: 16 kB / 473.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.1651, allocations: 67.89 kB / 473.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.1653, allocations: 55.8 kB / 473.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.1654, allocations: 119.4 kB / 473.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.1658, allocations: 247.7 kB / 473.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1658, allocations: 7.938 kB / 473.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1658, allocations: 0 / 473.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1658, allocations: 0 / 473.5 MB, free: 10.45 MB / 350.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.001206/0.1671, allocations: 0.5498 MB / 474.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.1671, allocations: 12.03 kB / 474.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.68e-05/0.1672, allocations: 24.66 kB / 474.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.1676, allocations: 247.8 kB / 474.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.305e-05/0.1676, allocations: 20.8 kB / 474.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.651e-05/0.1677, allocations: 24.38 kB / 474.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.1685, allocations: 263.4 kB / 474.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.1685, allocations: 4 kB / 474.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.1686, allocations: 8 kB / 474.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1686, allocations: 8 kB / 474.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006562/0.1693, allocations: 233.6 kB / 474.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.171, allocations: 0.7324 MB / 475.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.1717, allocations: 246 kB / 475.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.1721, allocations: 140.8 kB / 476 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1722, allocations: 0 / 476 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1722, allocations: 43 kB / 476.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.754e-06/0.1722, allocations: 0 / 476.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004047/0.1763, allocations: 1.451 MB / 477.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.1763, allocations: 59.41 kB / 477.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.1766, allocations: 199.2 kB / 477.8 MB, free: 5.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.1767, allocations: 37.7 kB / 477.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1768, allocations: 140.7 kB / 478 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1769, allocations: 106.5 kB / 478.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.1771, allocations: 73.59 kB / 478.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1772, allocations: 326.8 kB / 478.4 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.1776, allocations: 123.9 kB / 478.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.1779, allocations: 176 kB / 478.7 MB, free: 4.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005913/0.1785, allocations: 251.2 kB / 479 MB, free: 4.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1786, allocations: 3.938 kB / 479 MB, free: 4.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001125/0.1797, allocations: 433.8 kB / 479.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.1797, allocations: 4 kB / 479.4 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1797, allocations: 0 / 479.4 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007614/0.1805, allocations: 240.7 kB / 479.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003199/0.1808, allocations: 55.97 kB / 479.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009991/0.1819, allocations: 0.7514 MB / 480.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.1822, allocations: 35.95 kB / 480.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.33e-05/0.1823, allocations: 11.98 kB / 480.5 MB, free: 3.098 MB / 350.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.0002316/0.1825, allocations: 149.7 kB / 480.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.488e-05/0.1826, allocations: 19.72 kB / 480.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.1828, allocations: 46.59 kB / 480.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.1828, allocations: 7.984 kB / 480.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1828, allocations: 0 / 480.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1828, allocations: 4 kB / 480.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.1849, allocations: 0.9519 MB / 481.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1849, allocations: 0 / 481.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.1852, allocations: 47.91 kB / 481.7 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005666/0.1858, allocations: 216.7 kB / 481.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.1859, allocations: 11.98 kB / 482 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008456/0.1867, allocations: 0.7201 MB / 482.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1867, allocations: 0 / 482.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.1883, allocations: 0.6372 MB / 483.3 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.1885, allocations: 124.8 kB / 483.4 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.572e-05/0.1886, allocations: 15.94 kB / 483.4 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003722/0.189, allocations: 35.95 kB / 483.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.1892, allocations: 43.91 kB / 483.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.1892, allocations: 19.92 kB / 483.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001685/0.1894, allocations: 148.3 kB / 483.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1894, allocations: 0 / 483.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.1899, allocations: 84 kB / 483.8 MB, free: 15.69 MB / 366.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.0002662/0.1902, allocations: 131.1 kB / 483.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.1912, allocations: 312.3 kB / 484.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.1913, allocations: 128 / 484.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004515/0.1917, allocations: 167.8 kB / 484.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.1923, allocations: 27.98 kB / 484.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.1949, allocations: 0.8643 MB / 485.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.1953, allocations: 0.7564 MB / 486 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1954, allocations: 19.53 kB / 486 MB, free: 13.35 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1954, allocations: 3.938 kB / 486 MB, free: 13.35 MB / 366.1 MB Notification: Performance of Templates: time 0.008426/0.2038, allocations: 4.081 MB / 490.1 MB, free: 9.266 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches