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.001094/0.001094, allocations: 102.2 kB / 16.99 MB, free: 5.941 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.001685/0.001685, allocations: 183.1 kB / 17.87 MB, free: 5.609 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.481/1.481, allocations: 223.2 MB / 241.8 MB, free: 372 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.2269/0.2269, allocations: 44.23 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003238, allocations: 8 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1296, allocations: 61.92 MB / 471.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002158/0.1318, allocations: 1.804 MB / 473.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.1329, allocations: 0.6978 MB / 473.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.841e-05/0.133, allocations: 7.938 kB / 474 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.1331, allocations: 27.83 kB / 474 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.1333, allocations: 75.78 kB / 474.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.1336, allocations: 99.8 kB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.1338, allocations: 212 kB / 474.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.134, allocations: 60.8 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.1342, allocations: 123.6 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1344, allocations: 131.5 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.1344, allocations: 12 kB / 474.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.1345, allocations: 63.95 kB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.503e-05/0.1346, allocations: 47.81 kB / 474.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.541e-05/0.1347, allocations: 65.58 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.1349, allocations: 239.6 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.1349, allocations: 0 / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1349, allocations: 0 / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1349, allocations: 0 / 475.1 MB, free: 10.1 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.0008248/0.1358, allocations: 0.5184 MB / 475.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.1358, allocations: 12.03 kB / 475.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.1359, allocations: 27.62 kB / 475.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.1362, allocations: 234.7 kB / 475.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.1362, allocations: 20.44 kB / 475.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.1362, allocations: 20 kB / 475.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/0.1367, allocations: 275.1 kB / 476.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1368, allocations: 0 / 476.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.1368, allocations: 4 kB / 476.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1368, allocations: 8 kB / 476.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.1373, allocations: 241.5 kB / 476.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.1386, allocations: 0.748 MB / 477.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.1392, allocations: 250.5 kB / 477.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1392, allocations: 0 / 477.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.1392, allocations: 38.5 kB / 477.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.333e-06/0.1393, allocations: 0 / 477.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002972/0.1422, allocations: 1.503 MB / 479 MB, free: 5.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.1423, allocations: 59.41 kB / 479 MB, free: 5.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.1425, allocations: 202.5 kB / 479.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.1425, allocations: 33.7 kB / 479.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.423e-05/0.1426, allocations: 136.6 kB / 479.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.124e-05/0.1427, allocations: 110.5 kB / 479.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.945e-05/0.1427, allocations: 8 kB / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1429, allocations: 330.8 kB / 479.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1431, allocations: 127.9 kB / 479.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002659/0.1434, allocations: 172.2 kB / 480.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.1436, allocations: 112 kB / 480.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1437, allocations: 0 / 480.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000807/0.1445, allocations: 453.8 kB / 480.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1445, allocations: 4 kB / 480.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1445, allocations: 0 / 480.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004984/0.145, allocations: 232.7 kB / 480.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.1452, allocations: 63.84 kB / 481 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007231/0.146, allocations: 0.7624 MB / 481.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.1463, allocations: 48.02 kB / 481.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.1463, allocations: 16 kB / 481.8 MB, free: 3.023 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.0001512/0.1465, allocations: 138.8 kB / 481.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.1465, allocations: 27.67 kB / 481.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.6e-05/0.1466, allocations: 38.64 kB / 482 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1466, allocations: 4 kB / 482 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.1466, allocations: 0 / 482 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1466, allocations: 3.984 kB / 482 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.1482, allocations: 0.9598 MB / 483 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1482, allocations: 0 / 483 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.1484, allocations: 47.97 kB / 483 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003966/0.1488, allocations: 220.6 kB / 483.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.1489, allocations: 12.05 kB / 483.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006552/0.1495, allocations: 0.7086 MB / 483.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.1496, allocations: 3.953 kB / 483.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.1506, allocations: 0.6508 MB / 484.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.1508, allocations: 132.8 kB / 484.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.1509, allocations: 8 kB / 484.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.1512, allocations: 52.05 kB / 484.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.1513, allocations: 63.78 kB / 484.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.1513, allocations: 11.98 kB / 484.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.1515, allocations: 143 kB / 485 MB, free: 15.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1515, allocations: 0 / 485 MB, free: 15.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.1518, allocations: 80 kB / 485.1 MB, free: 15.58 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.0002323/0.1521, allocations: 123.2 kB / 485.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007048/0.1528, allocations: 323.7 kB / 485.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1528, allocations: 0 / 485.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.1531, allocations: 159.9 kB / 485.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.1535, allocations: 24.36 kB / 485.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.1554, allocations: 0.937 MB / 486.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1557, allocations: 0.7607 MB / 487.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.921e-05/0.1558, allocations: 18.3 kB / 487.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.34e-05/0.1558, allocations: 23.42 kB / 487.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1559, allocations: 0 / 487.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of Templates: time 0.008479/0.1643, allocations: 4.606 MB / 492 MB, free: 8.562 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","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches