Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 180.9 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008217/0.0008217, allocations: 99.89 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002535, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2861, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3954, allocations: 82.3 MB / 458.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.3957, allocations: 75.95 kB / 458.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03418/0.4299, allocations: 11.87 MB / 470.1 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.468e-06/0.43, allocations: 4 kB / 470.1 MB, free: 2.375 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.4301, allocations: 8 kB / 470.1 MB, free: 2.367 MB / 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.001622/0.4317, allocations: 0.7368 MB / 470.8 MB, free: 1.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.4317, allocations: 8.031 kB / 470.8 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003512/0.4321, allocations: 67.42 kB / 470.9 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.4327, allocations: 333.5 kB / 471.2 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.4328, allocations: 100.3 kB / 471.3 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.223e-05/0.4329, allocations: 47.91 kB / 471.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.434, allocations: 0.541 MB / 471.9 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.434, allocations: 0 / 471.9 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.973e-05/0.4341, allocations: 16 kB / 471.9 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.4341, allocations: 8 kB / 471.9 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.4354, allocations: 0.6127 MB / 472.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.4375, allocations: 1.15 MB / 473.7 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.4386, allocations: 0.4978 MB / 474.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.4386, allocations: 4.562 kB / 474.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/0.4387, allocations: 43.12 kB / 474.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.004e-06/0.4387, allocations: 0 / 474.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.006705/0.4454, allocations: 2.867 MB / 477.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.4455, allocations: 85.77 kB / 477.2 MB, free: 10.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.4459, allocations: 257.8 kB / 477.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/0.4459, allocations: 41.7 kB / 477.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.446, allocations: 153.6 kB / 477.6 MB, free: 10.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.4462, allocations: 236.7 kB / 477.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.4463, allocations: 12 kB / 477.9 MB, free: 10.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4464, allocations: 350.8 kB / 478.2 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005795/0.447, allocations: 273.2 kB / 478.5 MB, free: 9.602 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.4477, allocations: 330.5 kB / 478.8 MB, free: 9.266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.4482, allocations: 239.2 kB / 479 MB, free: 9.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4482, allocations: 0 / 479 MB, free: 9.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001782/0.45, allocations: 0.8615 MB / 479.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.45, allocations: 8.031 kB / 479.9 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.4501, allocations: 4 kB / 479.9 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.4512, allocations: 434.7 kB / 480.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003879/0.4516, allocations: 87.83 kB / 480.4 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.4528, allocations: 1.021 MB / 481.4 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/0.4534, allocations: 84.02 kB / 481.5 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-05/0.4535, allocations: 27.98 kB / 481.5 MB, free: 6.48 MB / 362.7 MB 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 () * Number of clocked 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.0002803/0.4538, allocations: 177.7 kB / 481.7 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.4539, allocations: 47.39 kB / 481.8 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.4558, allocations: 0.8913 MB / 482.6 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.4558, allocations: 8 kB / 482.7 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.4558, allocations: 0 / 482.7 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.4558, allocations: 3.984 kB / 482.7 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00328/0.4591, allocations: 1.708 MB / 484.4 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4591, allocations: 0 / 484.4 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.4595, allocations: 91.94 kB / 484.5 MB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009394/0.4605, allocations: 412.5 kB / 484.9 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-05/0.4606, allocations: 19.98 kB / 484.9 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.4617, allocations: 0.9777 MB / 485.9 MB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4618, allocations: 8.016 kB / 485.9 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002448/0.4642, allocations: 1.29 MB / 487.2 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.4645, allocations: 184.6 kB / 487.3 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.019e-05/0.4646, allocations: 16 kB / 487.4 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004544/0.4651, allocations: 72 kB / 487.4 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.4653, allocations: 100.4 kB / 487.5 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.879e-05/0.4654, allocations: 31.97 kB / 487.5 MB, free: 292 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002639/0.4656, allocations: 209.9 kB / 487.8 MB, free: 80 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4657, allocations: 0 / 487.8 MB, free: 80 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006/0.4663, allocations: 160 kB / 487.9 MB, free: 15.92 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) * Number of clocked states: 0 () * 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.0002931/0.4666, allocations: 170.2 kB / 488.1 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.4681, allocations: 0.6979 MB / 488.8 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4681, allocations: 0 / 488.8 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007921/0.4689, allocations: 384.2 kB / 489.2 MB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.4693, allocations: 47.98 kB / 489.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.4718, allocations: 1.353 MB / 490.6 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.4722, allocations: 0.829 MB / 491.4 MB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.4724, allocations: 63.34 kB / 491.4 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.4726, allocations: 47.41 kB / 491.5 MB, free: 12.28 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4726, allocations: 0 / 491.5 MB, free: 12.28 MB / 378.7 MB Notification: Performance of Templates: time 0.01528/0.4879, allocations: 8.654 MB / 0.4884 GB, free: 3.637 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_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.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,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.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi