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.0009766/0.0009766, allocations: 179 kB / 18.09 MB, free: 3.754 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.413/1.413, allocations: 223.3 MB / 242.1 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000778/0.000778, allocations: 96.3 kB / 293.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3441/0.3441, allocations: 44.15 MB / 388.5 MB, free: 38.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004001, allocations: 12 kB / 461.1 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3967, allocations: 61.89 MB / 0.5107 GB, free: 38.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.5252, allocations: 92.79 MB / 0.6013 GB, free: 2.277 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.5255, allocations: 67.95 kB / 0.6014 GB, free: 2.215 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03475/0.5603, allocations: 12.17 MB / 0.6133 GB, free: 6.008 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5603, allocations: 0 / 0.6133 GB, free: 6.008 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.803e-05/0.5604, allocations: 16 kB / 0.6133 GB, free: 5.992 MB / 426.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.002257/0.5626, allocations: 0.9847 MB / 0.6143 GB, free: 4.961 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.5627, allocations: 8.031 kB / 0.6143 GB, free: 4.953 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.563, allocations: 87.94 kB / 0.6144 GB, free: 4.867 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006467/0.5636, allocations: 425.6 kB / 0.6148 GB, free: 4.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.265e-05/0.5637, allocations: 49.69 kB / 0.6148 GB, free: 4.363 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.5638, allocations: 60.38 kB / 0.6149 GB, free: 4.305 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.5653, allocations: 0.8006 MB / 0.6156 GB, free: 3.469 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.007e-05/0.5654, allocations: 15.84 kB / 0.6157 GB, free: 3.453 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.437e-05/0.5655, allocations: 27.98 kB / 0.6157 GB, free: 3.426 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.5655, allocations: 16 kB / 0.6157 GB, free: 3.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.5669, allocations: 0.7189 MB / 0.6164 GB, free: 2.691 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004213/0.5712, allocations: 2.575 MB / 0.6189 GB, free: 15.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.5724, allocations: 0.6153 MB / 0.6195 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006937/0.5731, allocations: 387.5 kB / 0.6199 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.196e-05/0.5732, allocations: 19.97 kB / 0.6199 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.5732, allocations: 55.36 kB / 0.62 GB, free: 14.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 2.585e-06/0.5732, allocations: 0 / 0.62 GB, free: 14.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.007512/0.5808, allocations: 3.694 MB / 0.6236 GB, free: 10.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.5809, allocations: 136.5 kB / 0.6237 GB, free: 10.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004143/0.5813, allocations: 366 kB / 0.6241 GB, free: 10.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.88e-05/0.5814, allocations: 53.69 kB / 0.6241 GB, free: 10.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.5816, allocations: 272.5 kB / 0.6244 GB, free: 10.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/0.5818, allocations: 284.2 kB / 0.6246 GB, free: 9.777 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.5819, allocations: 23.98 kB / 0.6247 GB, free: 9.754 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5821, allocations: 362.8 kB / 0.625 GB, free: 9.391 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007651/0.5828, allocations: 365.8 kB / 0.6254 GB, free: 9.031 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008602/0.5837, allocations: 0.5217 MB / 0.6259 GB, free: 8.453 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.585, allocations: 0.7079 MB / 0.6266 GB, free: 7.695 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.585, allocations: 4 kB / 0.6266 GB, free: 7.691 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002635/0.5876, allocations: 1.224 MB / 0.6278 GB, free: 6.449 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.5877, allocations: 8 kB / 0.6278 GB, free: 6.441 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.5877, allocations: 11.94 kB / 0.6278 GB, free: 6.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.589, allocations: 0.6124 MB / 0.6284 GB, free: 5.805 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.5895, allocations: 143.7 kB / 0.6285 GB, free: 5.664 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002111/0.5916, allocations: 2.576 MB / 0.631 GB, free: 2.984 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.5926, allocations: 203.8 kB / 0.6312 GB, free: 2.785 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.5927, allocations: 39.98 kB / 0.6313 GB, free: 2.746 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 () * Number of clocked 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.0004563/0.5932, allocations: 221 kB / 0.6315 GB, free: 2.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.5934, allocations: 55.34 kB / 0.6315 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.5959, allocations: 1.143 MB / 0.6326 GB, free: 1.297 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.5959, allocations: 12 kB / 0.6326 GB, free: 1.285 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5959, allocations: 0 / 0.6326 GB, free: 1.285 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5959, allocations: 7.984 kB / 0.6327 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/0.5996, allocations: 2.119 MB / 0.6347 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5996, allocations: 0 / 0.6347 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005478/0.6001, allocations: 123.8 kB / 0.6348 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/0.6012, allocations: 0.5732 MB / 0.6354 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.215e-05/0.6013, allocations: 31.95 kB / 0.6354 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.6032, allocations: 2.526 MB / 0.6379 GB, free: 11.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6032, allocations: 0 / 0.6379 GB, free: 11.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002972/0.6062, allocations: 1.731 MB / 0.6396 GB, free: 9.941 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000318/0.6065, allocations: 216.2 kB / 0.6398 GB, free: 9.711 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.6066, allocations: 28 kB / 0.6398 GB, free: 9.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008044/0.6075, allocations: 172 kB / 0.64 GB, free: 9.516 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003206/0.6078, allocations: 179.6 kB / 0.6402 GB, free: 9.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.766e-05/0.6079, allocations: 35.95 kB / 0.6402 GB, free: 9.305 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002796/0.6082, allocations: 267.1 kB / 0.6404 GB, free: 9.047 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6082, allocations: 4 kB / 0.6404 GB, free: 9.043 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008332/0.609, allocations: 192 kB / 0.6406 GB, free: 8.855 MB / 458.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) * Number of clocked states: 0 () * 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.0002749/0.6093, allocations: 165.9 kB / 0.6408 GB, free: 8.684 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.6113, allocations: 1.029 MB / 0.6418 GB, free: 7.633 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6113, allocations: 0 / 0.6418 GB, free: 7.633 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.6125, allocations: 0.5186 MB / 0.6423 GB, free: 7.117 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009934/0.6135, allocations: 108.2 kB / 0.6424 GB, free: 7.016 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/0.6182, allocations: 2.585 MB / 0.6449 GB, free: 4.383 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.6187, allocations: 0.9066 MB / 0.6458 GB, free: 3.445 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003014/0.619, allocations: 52.83 kB / 0.6459 GB, free: 3.395 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.6191, allocations: 47.41 kB / 0.6459 GB, free: 3.348 MB / 458.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6191, allocations: 4 kB / 0.6459 GB, free: 3.344 MB / 458.7 MB Notification: Performance of Templates: time 0.02124/0.6404, allocations: 13.33 MB / 0.6589 GB, free: 6.07 MB / 474.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/jenkins1/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