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.001153/0.001153, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.001218/0.001218, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 241.8 MB, free: 13.8 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.212/0.212, allocations: 44.18 MB / 336.1 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 65.83 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1404, allocations: 60.84 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003666/0.1441, allocations: 2.283 MB / 470.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1454, allocations: 0.7285 MB / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1455, allocations: 3.938 kB / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.1457, allocations: 31.78 kB / 471.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.1458, allocations: 47.61 kB / 471.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.1462, allocations: 115.8 kB / 471.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.1465, allocations: 323.2 kB / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.1467, allocations: 73 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.1469, allocations: 131.5 kB / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.1472, allocations: 143.4 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.1473, allocations: 16 kB / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.1474, allocations: 63.95 kB / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.497e-05/0.1475, allocations: 55.81 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.1476, allocations: 127.3 kB / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.148, allocations: 327.2 kB / 473 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.148, allocations: 0 / 473 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.031e-06/0.148, allocations: 0 / 473 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1481, allocations: 0 / 473 MB, free: 10.38 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.0009458/0.149, allocations: 0.5537 MB / 473.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1491, allocations: 8.031 kB / 473.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.532e-05/0.1491, allocations: 32.5 kB / 473.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.1494, allocations: 251.9 kB / 473.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.1495, allocations: 20.8 kB / 473.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.1495, allocations: 20.38 kB / 473.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.1501, allocations: 267.5 kB / 474.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1501, allocations: 0 / 474.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.1501, allocations: 8 kB / 474.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1501, allocations: 8 kB / 474.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005753/0.1507, allocations: 241.6 kB / 474.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.152, allocations: 0.7245 MB / 475.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005448/0.1526, allocations: 242.4 kB / 475.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002712/0.1529, allocations: 136.8 kB / 475.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1529, allocations: 12.05 kB / 475.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.1529, allocations: 39 kB / 475.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.393e-06/0.153, allocations: 0 / 475.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003222/0.1562, allocations: 1.451 MB / 477 MB, free: 6.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.1562, allocations: 59.34 kB / 477 MB, free: 6.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.1564, allocations: 199.1 kB / 477.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1565, allocations: 33.7 kB / 477.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.1566, allocations: 132.7 kB / 477.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.482e-05/0.1567, allocations: 118.4 kB / 477.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1568, allocations: 65.59 kB / 477.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1569, allocations: 326.8 kB / 477.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.1572, allocations: 131.9 kB / 478 MB, free: 5.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002795/0.1575, allocations: 168.2 kB / 478.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.158, allocations: 251.2 kB / 478.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.158, allocations: 4 kB / 478.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007978/0.1588, allocations: 429.8 kB / 478.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1589, allocations: 4 kB / 478.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1589, allocations: 4 kB / 478.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005788/0.1595, allocations: 236.7 kB / 479.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.1597, allocations: 55.91 kB / 479.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008043/0.1605, allocations: 0.7506 MB / 479.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.1608, allocations: 35.95 kB / 479.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.1608, allocations: 15.98 kB / 479.9 MB, free: 3.027 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.0001776/0.161, allocations: 149.7 kB / 480.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.1611, allocations: 27.72 kB / 480.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.86e-05/0.1612, allocations: 38.58 kB / 480.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1612, allocations: 4 kB / 480.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1612, allocations: 4.062 kB / 480.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1612, allocations: 0 / 480.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.1628, allocations: 0.9519 MB / 481.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1629, allocations: 3.938 kB / 481.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.1632, allocations: 51.91 kB / 481.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004079/0.1636, allocations: 216.7 kB / 481.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.1636, allocations: 15.98 kB / 481.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006738/0.1643, allocations: 0.7162 MB / 482.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1643, allocations: 4.031 kB / 482.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.1657, allocations: 0.6332 MB / 482.7 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.1658, allocations: 128.9 kB / 482.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.1659, allocations: 11.94 kB / 482.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.1661, allocations: 35.95 kB / 482.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.1663, allocations: 55.97 kB / 483 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.1663, allocations: 7.984 kB / 483 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000137/0.1665, allocations: 152.2 kB / 483.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1665, allocations: 0 / 483.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003698/0.1668, allocations: 76 kB / 483.2 MB, free: 15.61 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.0002445/0.1671, allocations: 127.1 kB / 483.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006966/0.1678, allocations: 316.4 kB / 483.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1678, allocations: 4.062 kB / 483.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003262/0.1681, allocations: 167.7 kB / 483.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.1686, allocations: 27.98 kB / 483.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.1705, allocations: 0.8431 MB / 484.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.1709, allocations: 0.7447 MB / 485.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.616e-05/0.171, allocations: 22.28 kB / 485.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.545e-05/0.171, allocations: 19.44 kB / 485.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.171, allocations: 0 / 485.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Templates: time 0.009458/0.1805, allocations: 4.799 MB / 490.2 MB, free: 8.508 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/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