Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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) 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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 176.6 kB / 8.35 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.0008583/0.0008581, allocations: 97.22 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.137e-05/2.142e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.137, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3573/0.4944, allocations: 82.62 MB / 470.1 MB, free: 12.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.4946, allocations: 67.97 kB / 470.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0351/0.5297, allocations: 11.99 MB / 482.1 MB, free: 136 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5298, allocations: 0 / 482.1 MB, free: 136 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.037e-05/0.5298, allocations: 12 kB / 482.1 MB, free: 124 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001597/0.5314, allocations: 0.6938 MB / 482.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.5315, allocations: 11.98 kB / 482.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004481/0.5319, allocations: 67.36 kB / 482.9 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005976/0.5325, allocations: 329.5 kB / 483.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.5327, allocations: 80.17 kB / 483.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.5328, allocations: 31.91 kB / 483.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009178/0.5337, allocations: 0.5169 MB / 483.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007735/0.5345, allocations: 465.2 kB / 484.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.5346, allocations: 3.953 kB / 484.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.5346, allocations: 3.938 kB / 484.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.5346, allocations: 12 kB / 484.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.5367, allocations: 1.078 MB / 485.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006877/0.5374, allocations: 444.6 kB / 485.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003959/0.5378, allocations: 267.1 kB / 486.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.869e-05/0.5379, allocations: 12.55 kB / 486.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.5379, allocations: 43.12 kB / 486.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.194e-06/0.5379, allocations: 0 / 486.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.003902/0.5418, allocations: 1.863 MB / 488 MB, free: 9.969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.5419, allocations: 85.89 kB / 488.1 MB, free: 9.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.5422, allocations: 216.5 kB / 488.3 MB, free: 9.648 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.392e-05/0.5422, allocations: 37.69 kB / 488.4 MB, free: 9.605 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.5424, allocations: 149.6 kB / 488.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.5426, allocations: 228.7 kB / 488.7 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.5426, allocations: 0 / 488.7 MB, free: 9.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5428, allocations: 354.8 kB / 489.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.5432, allocations: 225.5 kB / 489.3 MB, free: 8.652 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003946/0.5436, allocations: 286.4 kB / 489.6 MB, free: 8.359 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005085/0.5441, allocations: 208.5 kB / 489.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.5441, allocations: 0 / 489.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001466/0.5456, allocations: 0.7552 MB / 490.5 MB, free: 7.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.5456, allocations: 8 kB / 490.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.5456, allocations: 0 / 490.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009926/0.5466, allocations: 422.7 kB / 491 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/0.547, allocations: 95.81 kB / 491.1 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.5484, allocations: 1.056 MB / 492.1 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.5489, allocations: 67.95 kB / 492.2 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.131e-05/0.549, allocations: 27.98 kB / 492.2 MB, free: 5.699 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002848/0.5493, allocations: 126.9 kB / 492.3 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.5495, allocations: 43.53 kB / 492.4 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.551, allocations: 0.7589 MB / 493.1 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.551, allocations: 8 kB / 493.1 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.551, allocations: 4 kB / 493.1 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.551, allocations: 3.984 kB / 493.1 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/0.5539, allocations: 1.536 MB / 494.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.5539, allocations: 4.062 kB / 494.7 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.5543, allocations: 83.88 kB / 494.8 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008517/0.5552, allocations: 393.1 kB / 495.2 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.368e-05/0.5553, allocations: 11.98 kB / 495.2 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.5565, allocations: 1.017 MB / 496.2 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.5565, allocations: 3.938 kB / 496.2 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.5584, allocations: 1.147 MB / 497.3 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003157/0.5588, allocations: 180.6 kB / 497.5 MB, free: 236 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.5589, allocations: 7.953 kB / 497.5 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.5594, allocations: 64 kB / 497.6 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.5596, allocations: 104.3 kB / 497.7 MB, free: 60 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.695e-05/0.5596, allocations: 27.98 kB / 497.7 MB, free: 32 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002155/0.5599, allocations: 172.5 kB / 497.9 MB, free: 15.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5599, allocations: 4 kB / 497.9 MB, free: 15.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005887/0.5605, allocations: 135.9 kB / 498 MB, free: 15.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003089/0.5608, allocations: 143.1 kB / 498.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.5619, allocations: 0.5975 MB / 498.7 MB, free: 14.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5619, allocations: 0 / 498.7 MB, free: 14.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006169/0.5626, allocations: 338.1 kB / 499.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.563, allocations: 41.97 kB / 499.1 MB, free: 14.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.5652, allocations: 0.9335 MB / 0.4883 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.5656, allocations: 0.8254 MB / 0.4891 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002529/0.5659, allocations: 59.27 kB / 0.4892 GB, free: 12.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.5661, allocations: 47.41 kB / 0.4892 GB, free: 12.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5661, allocations: 0 / 0.4892 GB, free: 12.68 MB / 378.7 MB Notification: Performance of Templates: time 0.01626/0.5823, allocations: 8.234 MB / 0.4973 GB, free: 4.473 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.ratio,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time