Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 46.19 MB / 345.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002788, allocations: 8 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 63.55 MB / 483.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003199/0.1407, allocations: 2.046 MB / 485.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.1421, allocations: 0.8804 MB / 486 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.1423, allocations: 7.938 kB / 486 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002637/0.1425, allocations: 47.75 kB / 486.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.1427, allocations: 59.55 kB / 486.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002786/0.143, allocations: 123.8 kB / 486.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.1433, allocations: 339.3 kB / 486.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.1435, allocations: 69.38 kB / 486.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.1438, allocations: 139.5 kB / 486.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.144, allocations: 147.4 kB / 486.9 MB, free: 328 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.453e-05/0.144, allocations: 12 kB / 486.9 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.1442, allocations: 75.97 kB / 487 MB, free: 240 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1443, allocations: 59.75 kB / 487.1 MB, free: 180 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.1444, allocations: 153.1 kB / 487.2 MB, free: 20 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.1448, allocations: 351 kB / 487.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1448, allocations: 0 / 487.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1448, allocations: 4 kB / 487.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1449, allocations: 4 kB / 487.6 MB, free: 15.67 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008623/0.1457, allocations: 0.5382 MB / 488.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1458, allocations: 13.95 kB / 488.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.146, allocations: 36.64 kB / 488.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.1462, allocations: 258.3 kB / 488.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.1463, allocations: 20.94 kB / 488.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.593e-05/0.1463, allocations: 24.38 kB / 488.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.1469, allocations: 281 kB / 488.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1469, allocations: 0 / 488.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.1469, allocations: 12 kB / 488.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.147, allocations: 4 kB / 488.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004978/0.1475, allocations: 234.1 kB / 489 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.1488, allocations: 0.7601 MB / 489.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005324/0.1493, allocations: 257.6 kB / 490 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.1496, allocations: 136.8 kB / 490.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.1497, allocations: 4 kB / 490.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.1497, allocations: 34.56 kB / 490.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.232e-06/0.1497, allocations: 0 / 490.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003119/0.1528, allocations: 1.471 MB / 491.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.1529, allocations: 55.41 kB / 491.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.1531, allocations: 211.7 kB / 491.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.1531, allocations: 41.69 kB / 491.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.539e-05/0.1532, allocations: 132.7 kB / 492.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.553e-05/0.1533, allocations: 118.4 kB / 492.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.1534, allocations: 41.62 kB / 492.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1535, allocations: 330.8 kB / 492.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002411/0.1538, allocations: 123.9 kB / 492.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.154, allocations: 163.3 kB / 492.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.1545, allocations: 239.2 kB / 493 MB, free: 9.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1545, allocations: 0 / 493 MB, free: 9.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008247/0.1553, allocations: 433.8 kB / 493.5 MB, free: 9.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1553, allocations: 4 kB / 493.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1553, allocations: 11.94 kB / 493.5 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004617/0.1558, allocations: 200.8 kB / 493.7 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.156, allocations: 51.91 kB / 493.7 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006972/0.1567, allocations: 0.7281 MB / 494.5 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.157, allocations: 56.02 kB / 494.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.1571, allocations: 8 kB / 494.5 MB, free: 8.324 MB / 366.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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001443/0.1572, allocations: 145.7 kB / 494.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.289e-05/0.1573, allocations: 23.72 kB / 494.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.91e-05/0.1574, allocations: 38.64 kB / 494.7 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.1574, allocations: 8 kB / 494.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1574, allocations: 3.938 kB / 494.7 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1574, allocations: 3.984 kB / 494.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.1589, allocations: 0.9478 MB / 495.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1589, allocations: 4 kB / 495.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.1592, allocations: 47.91 kB / 495.7 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003508/0.1595, allocations: 172.8 kB / 495.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.1596, allocations: 11.98 kB / 495.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000629/0.1602, allocations: 0.6966 MB / 496.6 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.1602, allocations: 0 / 496.6 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.1613, allocations: 0.6186 MB / 497.2 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.1615, allocations: 128.8 kB / 497.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.1615, allocations: 8 kB / 497.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/0.1618, allocations: 56.02 kB / 497.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.162, allocations: 43.91 kB / 497.5 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.162, allocations: 12 kB / 497.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001441/0.1621, allocations: 153.5 kB / 497.6 MB, free: 5.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1621, allocations: 4 kB / 497.6 MB, free: 5.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003349/0.1625, allocations: 72 kB / 497.7 MB, free: 4.996 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009155/0.1634, allocations: 369.3 kB / 498.1 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007119/0.1641, allocations: 311.6 kB / 498.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1641, allocations: 0 / 498.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.1645, allocations: 159.9 kB / 498.5 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.1649, allocations: 39 kB / 498.6 MB, free: 4.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.1671, allocations: 0.9847 MB / 499.5 MB, free: 3.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1675, allocations: 0.7603 MB / 0.4886 GB, free: 2.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.1676, allocations: 30.2 kB / 0.4886 GB, free: 2.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.405e-05/0.1677, allocations: 23.44 kB / 0.4886 GB, free: 2.398 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1677, allocations: 0 / 0.4886 GB, free: 2.398 MB / 366.1 MB Notification: Performance of Templates: time 0.009486/0.1772, allocations: 4.801 MB / 0.4933 GB, free: 13.61 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches