Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001073/0.001073, allocations: 101.2 kB / 16.27 MB, free: 5.852 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.001158/0.001158, allocations: 186.1 kB / 17.19 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2255/0.2255, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 65.67 kB / 382.7 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1335, allocations: 57.79 MB / 440.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003916/0.1375, allocations: 2.242 MB / 442.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.1391, allocations: 0.7682 MB / 443.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002644/0.1394, allocations: 7.938 kB / 443.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.1397, allocations: 35.64 kB / 443.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.14, allocations: 67.42 kB / 443.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005672/0.1406, allocations: 139.7 kB / 443.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004638/0.1411, allocations: 331.3 kB / 444.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.1413, allocations: 86.25 kB / 444.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002795/0.1416, allocations: 143.5 kB / 444.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.1418, allocations: 155.4 kB / 444.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.565e-05/0.1419, allocations: 32 kB / 444.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.1421, allocations: 71.95 kB / 444.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.21e-05/0.1422, allocations: 67.73 kB / 444.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.1423, allocations: 135.3 kB / 444.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000415/0.1428, allocations: 338.9 kB / 445.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1428, allocations: 0 / 445.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1428, allocations: 0 / 445.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.1428, allocations: 0 / 445.1 MB, free: 2.289 MB / 318.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.0009235/0.1437, allocations: 0.5459 MB / 445.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1438, allocations: 11.89 kB / 445.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.63e-05/0.1439, allocations: 28.66 kB / 445.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.1441, allocations: 244.8 kB / 445.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.1442, allocations: 16.81 kB / 445.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.988e-05/0.1442, allocations: 28.22 kB / 446 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.1447, allocations: 267.5 kB / 446.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1448, allocations: 7.984 kB / 446.2 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.1448, allocations: 12 kB / 446.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.1448, allocations: 4 kB / 446.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004714/0.1453, allocations: 233.6 kB / 446.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.1467, allocations: 0.7246 MB / 447.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000624/0.1473, allocations: 242.4 kB / 447.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.1476, allocations: 148.7 kB / 447.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.1477, allocations: 4 kB / 447.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.1477, allocations: 34.5 kB / 447.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.916e-06/0.1477, allocations: 0 / 447.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.003419/0.1512, allocations: 1.46 MB / 449.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.1512, allocations: 55.41 kB / 449.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.1515, allocations: 194.3 kB / 449.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.1516, allocations: 41.62 kB / 449.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.1518, allocations: 136.7 kB / 449.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.1519, allocations: 114.5 kB / 449.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.152, allocations: 65.69 kB / 449.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.1523, allocations: 330.8 kB / 450 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.1526, allocations: 131.7 kB / 450.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.1529, allocations: 163.4 kB / 450.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005188/0.1534, allocations: 251.3 kB / 450.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1534, allocations: 0 / 450.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008692/0.1543, allocations: 433.7 kB / 451 MB, free: 12.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.1543, allocations: 4 kB / 451 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.1544, allocations: 12.05 kB / 451 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005648/0.1549, allocations: 236.6 kB / 451.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.1552, allocations: 55.91 kB / 451.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008536/0.1561, allocations: 0.7552 MB / 452 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.1563, allocations: 40.02 kB / 452.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.1564, allocations: 12 kB / 452.1 MB, free: 10.94 MB / 334.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.0001905/0.1566, allocations: 146.2 kB / 452.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.254e-05/0.1566, allocations: 23.72 kB / 452.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.369e-05/0.1567, allocations: 38.58 kB / 452.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1567, allocations: 4 kB / 452.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1568, allocations: 0 / 452.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1568, allocations: 3.984 kB / 452.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.1583, allocations: 0.9596 MB / 453.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.1583, allocations: 7.984 kB / 453.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.1585, allocations: 43.92 kB / 453.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004554/0.159, allocations: 212.7 kB / 453.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.1591, allocations: 15.98 kB / 453.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006274/0.1597, allocations: 0.7086 MB / 454.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.1597, allocations: 7.984 kB / 454.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1608, allocations: 0.6333 MB / 454.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.1609, allocations: 132.8 kB / 455 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.373e-05/0.161, allocations: 11.94 kB / 455 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.1612, allocations: 31.95 kB / 455 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.1614, allocations: 51.91 kB / 455.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.1614, allocations: 12 kB / 455.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1615, allocations: 144.2 kB / 455.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1615, allocations: 64 / 455.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003712/0.1619, allocations: 84 kB / 455.3 MB, free: 7.539 MB / 334.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.0002188/0.1622, allocations: 127.2 kB / 455.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007624/0.1629, allocations: 335.6 kB / 455.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1629, allocations: 0 / 455.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.1633, allocations: 160.1 kB / 455.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.1637, allocations: 36.2 kB / 456 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.1656, allocations: 0.7466 MB / 456.7 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.166, allocations: 0.7485 MB / 457.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.626e-05/0.1661, allocations: 26.28 kB / 457.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.1662, allocations: 27.38 kB / 457.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1662, allocations: 0 / 457.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of Templates: time 0.009815/0.176, allocations: 5.079 MB / 462.6 MB, free: 224 kB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches