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.0009671/0.0009668, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.001142/0.001142, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.442/1.442, allocations: 223.3 MB / 242.3 MB, free: 14.52 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.2263/0.2263, allocations: 44.25 MB / 337.7 MB, free: 2.438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003537, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1362, allocations: 61.93 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002398/0.1386, allocations: 1.924 MB / 474.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1398, allocations: 0.7285 MB / 474.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.14, allocations: 7.938 kB / 474.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.1401, allocations: 23.78 kB / 474.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.1403, allocations: 55.59 kB / 475 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.1406, allocations: 115.8 kB / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.141, allocations: 315.2 kB / 475.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.1411, allocations: 80.98 kB / 475.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.1413, allocations: 123.5 kB / 475.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.1416, allocations: 139.4 kB / 475.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.1416, allocations: 12 kB / 475.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.1417, allocations: 63.95 kB / 475.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.992e-05/0.1418, allocations: 55.75 kB / 475.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.142, allocations: 137.1 kB / 476 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003462/0.1423, allocations: 319.1 kB / 476.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1423, allocations: 0 / 476.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1423, allocations: 3.984 kB / 476.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1424, allocations: 4 kB / 476.3 MB, free: 9.223 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.0008657/0.1432, allocations: 0.5147 MB / 476.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1433, allocations: 12.03 kB / 476.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.271e-05/0.1433, allocations: 28.56 kB / 476.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.1436, allocations: 243.9 kB / 477.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.1436, allocations: 16.81 kB / 477.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.476e-05/0.1437, allocations: 24.38 kB / 477.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000508/0.1442, allocations: 263.5 kB / 477.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1443, allocations: 3.984 kB / 477.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.1443, allocations: 12 kB / 477.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.1443, allocations: 8 kB / 477.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004764/0.1448, allocations: 237.6 kB / 477.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.1461, allocations: 0.7402 MB / 478.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005231/0.1467, allocations: 250.4 kB / 478.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.147, allocations: 148 kB / 478.8 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.147, allocations: 8.062 kB / 478.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.147, allocations: 39 kB / 478.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/0.147, allocations: 0 / 478.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00315/0.1502, allocations: 1.506 MB / 480.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.1502, allocations: 55.41 kB / 480.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.1504, allocations: 199.1 kB / 480.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.279e-05/0.1505, allocations: 33.69 kB / 480.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.052e-05/0.1506, allocations: 140.7 kB / 480.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.753e-05/0.1507, allocations: 110.4 kB / 480.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.1507, allocations: 33.7 kB / 480.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1509, allocations: 334.8 kB / 481.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000246/0.1511, allocations: 127.9 kB / 481.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.1514, allocations: 172.2 kB / 481.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.1518, allocations: 255.3 kB / 481.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1518, allocations: 4 kB / 481.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008145/0.1527, allocations: 441.7 kB / 482.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.1527, allocations: 8 kB / 482.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1527, allocations: 0 / 482.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005721/0.1533, allocations: 240.7 kB / 482.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.1535, allocations: 51.91 kB / 482.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008191/0.1544, allocations: 0.7475 MB / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.1546, allocations: 51.98 kB / 483.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.1547, allocations: 16 kB / 483.3 MB, free: 1.836 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.0001873/0.1549, allocations: 158.1 kB / 483.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.482e-05/0.155, allocations: 19.72 kB / 483.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.674e-05/0.1551, allocations: 38.59 kB / 483.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1551, allocations: 4 kB / 483.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1551, allocations: 0 / 483.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1551, allocations: 7.984 kB / 483.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.1568, allocations: 0.9558 MB / 484.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1568, allocations: 0 / 484.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.157, allocations: 51.91 kB / 484.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003858/0.1574, allocations: 212.7 kB / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.1574, allocations: 11.98 kB / 484.8 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006472/0.1581, allocations: 0.7085 MB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1581, allocations: 4.031 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.1592, allocations: 0.645 MB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.1594, allocations: 124.8 kB / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.1594, allocations: 15.94 kB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.1597, allocations: 43.95 kB / 486.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1598, allocations: 51.97 kB / 486.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.1599, allocations: 20.05 kB / 486.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001534/0.16, allocations: 144.2 kB / 486.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.16, allocations: 96 / 486.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.1604, allocations: 83.94 kB / 486.6 MB, free: 14.41 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.000258/0.1607, allocations: 127 kB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007519/0.1615, allocations: 328.3 kB / 487 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1615, allocations: 0 / 487 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.1618, allocations: 163.8 kB / 487.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.1623, allocations: 34.2 kB / 487.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.1643, allocations: 0.9612 MB / 488.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.1647, allocations: 0.7563 MB / 489 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.463e-05/0.1648, allocations: 22.3 kB / 489 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.649e-05/0.1649, allocations: 23.42 kB / 489 MB, free: 11.94 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1649, allocations: 0 / 489 MB, free: 11.94 MB / 366.1 MB Notification: Performance of Templates: time 0.009325/0.1742, allocations: 4.749 MB / 493.8 MB, free: 7.203 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