Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009296/0.0009296, allocations: 178.6 kB / 14.15 MB, free: 1.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 221.3 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008019/0.0008019, allocations: 88.05 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.177/0.177, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.805e-05/2.809e-05, allocations: 4 kB / 451.8 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1153, allocations: 61.91 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3689/0.4842, allocations: 92.69 MB / 0.5922 GB, free: 12.66 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4844, allocations: 63.97 kB / 0.5923 GB, free: 12.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03371/0.5182, allocations: 12.14 MB / 0.6041 GB, free: 440 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5182, allocations: 0 / 0.6041 GB, free: 440 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.184e-05/0.5183, allocations: 20 kB / 0.6041 GB, free: 420 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00183/0.5201, allocations: 0.9272 MB / 0.6051 GB, free: 15.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.5201, allocations: 12.03 kB / 0.6051 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.5203, allocations: 75.06 kB / 0.6051 GB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.5209, allocations: 404.8 kB / 0.6055 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.619e-05/0.521, allocations: 45.31 kB / 0.6056 GB, free: 14.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.5212, allocations: 67.89 kB / 0.6056 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.5224, allocations: 0.7443 MB / 0.6064 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.5225, allocations: 11.91 kB / 0.6064 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.255e-05/0.5226, allocations: 23.94 kB / 0.6064 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.5226, allocations: 16 kB / 0.6064 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.5237, allocations: 0.6175 MB / 0.607 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004209/0.5279, allocations: 2.575 MB / 0.6095 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.529, allocations: 0.5803 MB / 0.6101 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005236/0.5295, allocations: 338.4 kB / 0.6104 GB, free: 9.707 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.942e-05/0.5296, allocations: 12.25 kB / 0.6104 GB, free: 9.695 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.5296, allocations: 39.38 kB / 0.6105 GB, free: 9.648 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 4.138e-06/0.5296, allocations: 0 / 0.6105 GB, free: 9.648 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.004104/0.5338, allocations: 2.403 MB / 0.6128 GB, free: 7.051 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.5339, allocations: 140.5 kB / 0.6129 GB, free: 6.883 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.5343, allocations: 327 kB / 0.6133 GB, free: 6.551 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.533e-05/0.5344, allocations: 53.64 kB / 0.6133 GB, free: 6.492 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.5345, allocations: 260.7 kB / 0.6136 GB, free: 6.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/0.5348, allocations: 288.1 kB / 0.6138 GB, free: 5.945 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.5348, allocations: 20 kB / 0.6139 GB, free: 5.926 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.535, allocations: 362.8 kB / 0.6142 GB, free: 5.562 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/0.5356, allocations: 310 kB / 0.6145 GB, free: 5.258 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006625/0.5362, allocations: 479 kB / 0.6149 GB, free: 4.734 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.5367, allocations: 268.3 kB / 0.6152 GB, free: 4.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.5367, allocations: 0 / 0.6152 GB, free: 4.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002172/0.5389, allocations: 1.117 MB / 0.6163 GB, free: 3.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.5389, allocations: 9.594 kB / 0.6163 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.539, allocations: 8 kB / 0.6163 GB, free: 3.332 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.5401, allocations: 0.5889 MB / 0.6169 GB, free: 2.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.5406, allocations: 151.8 kB / 0.617 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.5426, allocations: 2.569 MB / 0.6195 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000904/0.5435, allocations: 195.9 kB / 0.6197 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-05/0.5436, allocations: 43.98 kB / 0.6198 GB, free: 15.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002133/0.5439, allocations: 159.9 kB / 0.6199 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.544, allocations: 59.25 kB / 0.62 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/0.5461, allocations: 1.046 MB / 0.621 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.5461, allocations: 8 kB / 0.621 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.5461, allocations: 0 / 0.621 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.5462, allocations: 3.984 kB / 0.621 GB, free: 14.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.5494, allocations: 2.02 MB / 0.623 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.5494, allocations: 0 / 0.623 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000553/0.55, allocations: 123.9 kB / 0.6231 GB, free: 12.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009624/0.5509, allocations: 0.5576 MB / 0.6236 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.116e-05/0.551, allocations: 31.95 kB / 0.6237 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/0.5529, allocations: 2.518 MB / 0.6261 GB, free: 8.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.5529, allocations: 11.91 kB / 0.6261 GB, free: 8.918 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.5553, allocations: 1.633 MB / 0.6277 GB, free: 7.219 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/0.5556, allocations: 212.2 kB / 0.6279 GB, free: 6.992 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.5557, allocations: 28 kB / 0.628 GB, free: 6.965 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008708/0.5566, allocations: 179.8 kB / 0.6281 GB, free: 6.785 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.5569, allocations: 171.6 kB / 0.6283 GB, free: 6.617 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-05/0.557, allocations: 43.91 kB / 0.6283 GB, free: 6.574 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002639/0.5573, allocations: 261.2 kB / 0.6286 GB, free: 6.324 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5573, allocations: 4 kB / 0.6286 GB, free: 6.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000742/0.5581, allocations: 195.9 kB / 0.6288 GB, free: 6.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002522/0.5583, allocations: 155.2 kB / 0.6289 GB, free: 5.969 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.5599, allocations: 0.9227 MB / 0.6298 GB, free: 5.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.5599, allocations: 0.8125 kB / 0.6298 GB, free: 5.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009558/0.5609, allocations: 482.3 kB / 0.6303 GB, free: 4.551 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006628/0.5615, allocations: 92.75 kB / 0.6304 GB, free: 4.457 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004102/0.5656, allocations: 2.008 MB / 0.6323 GB, free: 2.406 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.5661, allocations: 0.9221 MB / 0.6332 GB, free: 1.453 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002559/0.5663, allocations: 56.83 kB / 0.6333 GB, free: 1.395 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.5665, allocations: 47.41 kB / 0.6333 GB, free: 1.348 MB / 442.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5665, allocations: 0 / 0.6333 GB, free: 1.348 MB / 442.7 MB Notification: Performance of Templates: time 0.01896/0.5855, allocations: 13.25 MB / 0.6463 GB, free: 4.148 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches