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.0008177/0.0008175, allocations: 96.94 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 208.1 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.7 MB / 247.5 MB, free: 9.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1974/0.1974, allocations: 46.19 MB / 345.9 MB, free: 11.24 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003979/0.0003983, allocations: 8 kB / 420.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1328, allocations: 63.56 MB / 483.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002864/0.1357, allocations: 2.05 MB / 485.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.1372, allocations: 0.8843 MB / 486.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.1375, allocations: 4 kB / 486.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002854/0.1378, allocations: 51.69 kB / 486.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002446/0.138, allocations: 59.55 kB / 486.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.1384, allocations: 127.8 kB / 486.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003796/0.1388, allocations: 323.4 kB / 487.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.139, allocations: 77.36 kB / 487.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.1393, allocations: 139.5 kB / 487.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002683/0.1396, allocations: 147.4 kB / 487.6 MB, free: 288 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.865e-05/0.1396, allocations: 16 kB / 487.6 MB, free: 272 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.1398, allocations: 75.97 kB / 487.7 MB, free: 196 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1399, allocations: 59.69 kB / 487.7 MB, free: 136 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.1401, allocations: 149.1 kB / 487.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1404, allocations: 267.5 kB / 488.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1405, allocations: 4 kB / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1405, allocations: 0 / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1405, allocations: 3.938 kB / 488.1 MB, free: 15.71 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.0009489/0.1414, allocations: 0.5421 MB / 488.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.1415, allocations: 9.953 kB / 488.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.1417, allocations: 40.64 kB / 488.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.142, allocations: 258.3 kB / 489 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.1421, allocations: 20.92 kB / 489 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/0.1421, allocations: 24.38 kB / 489 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005577/0.1427, allocations: 273.1 kB / 489.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.1427, allocations: 3.984 kB / 489.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.1428, allocations: 12 kB / 489.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1428, allocations: 8 kB / 489.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005326/0.1433, allocations: 234.1 kB / 489.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.1447, allocations: 0.7523 MB / 490.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.1453, allocations: 258.3 kB / 490.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.1456, allocations: 140.8 kB / 490.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.1456, allocations: 4 kB / 490.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1457, allocations: 30.56 kB / 490.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.1457, allocations: 0 / 490.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003246/0.1489, allocations: 1.467 MB / 492.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.149, allocations: 59.41 kB / 492.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.1492, allocations: 215.7 kB / 492.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/0.1493, allocations: 37.64 kB / 492.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.1494, allocations: 136.7 kB / 492.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.769e-05/0.1495, allocations: 118.4 kB / 492.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.73e-05/0.1495, allocations: 37.7 kB / 492.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1497, allocations: 334.8 kB / 493.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.1499, allocations: 116 kB / 493.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.1502, allocations: 171.3 kB / 493.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004411/0.1507, allocations: 232.1 kB / 493.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1507, allocations: 4 kB / 493.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008858/0.1516, allocations: 437.7 kB / 494 MB, free: 9.445 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1516, allocations: 4 kB / 494 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1516, allocations: 3.938 kB / 494 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004778/0.1521, allocations: 196.8 kB / 494.2 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.1523, allocations: 59.97 kB / 494.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007463/0.1531, allocations: 0.7241 MB / 495 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.1534, allocations: 56.05 kB / 495.1 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.1534, allocations: 8 kB / 495.1 MB, free: 8.371 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.000167/0.1536, allocations: 153.7 kB / 495.2 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.646e-05/0.1537, allocations: 23.72 kB / 495.3 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.486e-05/0.1538, allocations: 42.64 kB / 495.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1538, allocations: 4 kB / 495.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1538, allocations: 3.984 kB / 495.3 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1538, allocations: 0 / 495.3 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.1555, allocations: 0.9478 MB / 496.3 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1555, allocations: 3.938 kB / 496.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.1557, allocations: 47.97 kB / 496.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000383/0.1561, allocations: 176.7 kB / 496.5 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.1561, allocations: 4 kB / 496.5 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006847/0.1568, allocations: 0.6966 MB / 497.2 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1568, allocations: 0 / 497.2 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.158, allocations: 0.6225 MB / 497.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.1582, allocations: 132.8 kB / 497.9 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.1582, allocations: 8 kB / 497.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002845/0.1585, allocations: 48.02 kB / 498 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.1587, allocations: 47.92 kB / 498 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.1587, allocations: 15.98 kB / 498 MB, free: 5.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.1589, allocations: 153.5 kB / 498.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1589, allocations: 0 / 498.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.1592, allocations: 68 kB / 498.3 MB, free: 5.043 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.0008693/0.1601, allocations: 371.8 kB / 498.6 MB, free: 4.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008055/0.1609, allocations: 311.6 kB / 498.9 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.161, allocations: 0 / 498.9 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.1613, allocations: 163.8 kB / 499.1 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.1618, allocations: 43.02 kB / 499.1 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.1639, allocations: 1.017 MB / 0.4884 GB, free: 3.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.1642, allocations: 0.7525 MB / 0.4892 GB, free: 2.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.946e-05/0.1643, allocations: 27.44 kB / 0.4892 GB, free: 2.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.62e-07/0.1643, allocations: 0 / 0.4892 GB, free: 2.43 MB / 366.1 MB Notification: Performance of Templates: time 0.007508/0.1718, allocations: 4.434 MB / 0.4935 GB, free: 13.99 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches