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.0009577/0.0009578, allocations: 97.81 kB / 17 MB, free: 6.391 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.001103/0.001103, allocations: 182.2 kB / 17.89 MB, free: 5.922 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.546/1.546, allocations: 223.3 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2264/0.2264, allocations: 44.26 MB / 337.3 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003519, allocations: 12 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1379, allocations: 61.94 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002511/0.1404, allocations: 1.863 MB / 473.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.1419, allocations: 0.6938 MB / 474.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.142, allocations: 4 kB / 474.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.1422, allocations: 23.78 kB / 474.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.1424, allocations: 67.52 kB / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.1428, allocations: 99.81 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.1432, allocations: 291.3 kB / 474.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.1434, allocations: 68.72 kB / 474.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.1436, allocations: 119.6 kB / 474.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.1438, allocations: 139.5 kB / 475 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.1439, allocations: 12 kB / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.144, allocations: 59.95 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.476e-05/0.1441, allocations: 55.75 kB / 475.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.025e-05/0.1442, allocations: 61.64 kB / 475.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.1445, allocations: 239.6 kB / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1446, allocations: 0 / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1446, allocations: 0 / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1446, allocations: 0 / 475.4 MB, free: 9.918 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.0009284/0.1455, allocations: 0.5224 MB / 475.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1456, allocations: 8.031 kB / 475.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/0.1457, allocations: 27.62 kB / 475.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.146, allocations: 238.7 kB / 476.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.146, allocations: 16.44 kB / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/0.1461, allocations: 31.94 kB / 476.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.1466, allocations: 267.1 kB / 476.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.1466, allocations: 4 kB / 476.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.1466, allocations: 4 kB / 476.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1467, allocations: 8 kB / 476.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004707/0.1471, allocations: 241.6 kB / 476.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.1484, allocations: 0.7402 MB / 477.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.1489, allocations: 250.4 kB / 477.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.1492, allocations: 136.8 kB / 477.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.1492, allocations: 4.438 kB / 477.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.1493, allocations: 38.5 kB / 477.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.342e-06/0.1493, allocations: 0 / 477.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002933/0.1522, allocations: 1.51 MB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.1523, allocations: 55.41 kB / 479.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.1525, allocations: 198.5 kB / 479.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.1526, allocations: 37.7 kB / 479.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1527, allocations: 136.7 kB / 479.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.515e-05/0.1528, allocations: 106.5 kB / 479.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.1528, allocations: 8 kB / 479.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.153, allocations: 334.8 kB / 480.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002483/0.1532, allocations: 127.9 kB / 480.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.1535, allocations: 172.1 kB / 480.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.1538, allocations: 115.9 kB / 480.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1539, allocations: 0 / 480.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008743/0.1547, allocations: 453.8 kB / 481.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1548, allocations: 8 kB / 481.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1548, allocations: 0 / 481.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005805/0.1554, allocations: 240.7 kB / 481.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.1556, allocations: 51.91 kB / 481.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007502/0.1564, allocations: 0.7548 MB / 482.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.1566, allocations: 56.05 kB / 482.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.1567, allocations: 8 kB / 482.2 MB, free: 2.703 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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.1568, allocations: 149.7 kB / 482.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.199e-05/0.1569, allocations: 27.61 kB / 482.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.179e-05/0.157, allocations: 34.66 kB / 482.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.157, allocations: 4 kB / 482.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.157, allocations: 4 kB / 482.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.157, allocations: 7.984 kB / 482.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.1585, allocations: 0.9558 MB / 483.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1586, allocations: 0 / 483.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.1588, allocations: 47.97 kB / 483.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003998/0.1592, allocations: 216.7 kB / 483.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.1592, allocations: 11.98 kB / 483.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006267/0.1599, allocations: 0.7085 MB / 484.4 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1599, allocations: 8.078 kB / 484.4 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.1609, allocations: 0.6412 MB / 485 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.1611, allocations: 124.8 kB / 485.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.1611, allocations: 12 kB / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.1614, allocations: 52.02 kB / 485.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.1615, allocations: 55.77 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.1615, allocations: 19.94 kB / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001242/0.1617, allocations: 143 kB / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1617, allocations: 0 / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.162, allocations: 80 kB / 485.5 MB, free: 15.27 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.000191/0.1622, allocations: 127.2 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006618/0.1629, allocations: 319.7 kB / 485.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1629, allocations: 0 / 485.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003146/0.1632, allocations: 159.9 kB / 486.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.1636, allocations: 34.59 kB / 486.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.1656, allocations: 0.9421 MB / 487.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.1659, allocations: 0.7524 MB / 487.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.885e-05/0.166, allocations: 22.3 kB / 487.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.1661, allocations: 19.42 kB / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.503e-06/0.1661, allocations: 0 / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Templates: time 0.008586/0.1747, allocations: 4.618 MB / 492.5 MB, free: 8.234 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