Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 200 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007674/0.0007674, allocations: 99.3 kB / 297.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002416, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2176, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.3213, allocations: 85.5 MB / 494.9 MB, free: 6.016 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/0.3217, allocations: 71.97 kB / 494.9 MB, free: 5.945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05781/0.3795, allocations: 20.65 MB / 0.5035 GB, free: 1.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3795, allocations: 0 / 0.5035 GB, free: 1.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.437e-05/0.3796, allocations: 8 kB / 0.5035 GB, free: 1.234 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00162/0.3812, allocations: 0.7721 MB / 0.5043 GB, free: 420 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3813, allocations: 8.031 kB / 0.5043 GB, free: 412 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005489/0.3818, allocations: 80.25 kB / 0.5044 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2069/0.5887, allocations: 364.8 kB / 0.5047 GB, free: 95.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.5889, allocations: 99.69 kB / 0.5048 GB, free: 95.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.5891, allocations: 41.17 kB / 0.5048 GB, free: 95.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.5903, allocations: 0.5599 MB / 0.5054 GB, free: 95.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.5903, allocations: 6.312 kB / 0.5054 GB, free: 95.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.318e-05/0.5904, allocations: 18.81 kB / 0.5054 GB, free: 95.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.5904, allocations: 9.062 kB / 0.5054 GB, free: 95.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.5918, allocations: 0.624 MB / 0.506 GB, free: 95.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.594, allocations: 1.277 MB / 0.5073 GB, free: 94.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.5951, allocations: 0.5266 MB / 0.5078 GB, free: 94.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005484/0.5956, allocations: 315.2 kB / 0.5081 GB, free: 94.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.5957, allocations: 8.016 kB / 0.5081 GB, free: 94.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.5957, allocations: 40.75 kB / 0.5081 GB, free: 94.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=62): time 2.294e-06/0.5957, allocations: 0 / 0.5081 GB, free: 94.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=70): time 0.006379/0.6021, allocations: 2.844 MB / 0.5109 GB, free: 93.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.6022, allocations: 85.17 kB / 0.511 GB, free: 93.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.6025, allocations: 338 kB / 0.5113 GB, free: 93.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.6026, allocations: 48.8 kB / 0.5114 GB, free: 93.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.6027, allocations: 167.1 kB / 0.5115 GB, free: 93.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.6028, allocations: 233.2 kB / 0.5118 GB, free: 93.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.6028, allocations: 15.62 kB / 0.5118 GB, free: 93.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.893e-05/0.6029, allocations: 349.8 kB / 0.5121 GB, free: 92.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004953/0.6034, allocations: 277.9 kB / 0.5124 GB, free: 92.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005182/0.6039, allocations: 334.4 kB / 0.5127 GB, free: 92.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008596/0.6048, allocations: 0.4902 MB / 0.5132 GB, free: 92.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.6048, allocations: 3.625 kB / 0.5132 GB, free: 92.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001432/0.6063, allocations: 0.838 MB / 0.514 GB, free: 91.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.6063, allocations: 7.312 kB / 0.514 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.6063, allocations: 1.375 kB / 0.514 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008453/0.6071, allocations: 384.5 kB / 0.5144 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004709/0.6076, allocations: 92.05 kB / 0.5144 GB, free: 91.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.6086, allocations: 1.002 MB / 0.5154 GB, free: 91.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/0.6091, allocations: 83.45 kB / 0.5155 GB, free: 91.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/0.6092, allocations: 23.42 kB / 0.5155 GB, free: 91.08 MB / 378.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): 45 * 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 33} Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.6094, allocations: 185.5 kB / 0.5157 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.764e-05/0.6095, allocations: 46.72 kB / 0.5157 GB, free: 90.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.6097, allocations: 66.58 kB / 0.5158 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.6097, allocations: 7.875 kB / 0.5158 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.6097, allocations: 0 / 0.5158 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.6097, allocations: 3.703 kB / 0.5158 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002573/0.6123, allocations: 1.727 MB / 0.5175 GB, free: 90 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.6123, allocations: 0 / 0.5175 GB, free: 90 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003524/0.6127, allocations: 86.66 kB / 0.5176 GB, free: 90 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007697/0.6134, allocations: 365.1 kB / 0.5179 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.6135, allocations: 21.92 kB / 0.518 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008852/0.6144, allocations: 0.9631 MB / 0.5189 GB, free: 89.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.6144, allocations: 7.938 kB / 0.5189 GB, free: 89.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.6164, allocations: 1.214 MB / 0.5201 GB, free: 88.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/0.6166, allocations: 202.6 kB / 0.5203 GB, free: 88.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.429e-05/0.6167, allocations: 21.28 kB / 0.5203 GB, free: 88.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.6171, allocations: 72.16 kB / 0.5204 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.6173, allocations: 103.9 kB / 0.5205 GB, free: 88.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.6173, allocations: 33.53 kB / 0.5205 GB, free: 88.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002537/0.6176, allocations: 239.1 kB / 0.5207 GB, free: 88.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6176, allocations: 4 kB / 0.5207 GB, free: 88.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004934/0.6181, allocations: 162.8 kB / 0.5209 GB, free: 88.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (39): * Single equations (assignments): 38 * 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 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007611/0.6189, allocations: 398.7 kB / 0.5213 GB, free: 88.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.6203, allocations: 0.6805 MB / 0.5219 GB, free: 87.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6203, allocations: 2.406 kB / 0.5219 GB, free: 87.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007705/0.6211, allocations: 378.8 kB / 0.5223 GB, free: 87.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.6217, allocations: 66.72 kB / 0.5224 GB, free: 87.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.6241, allocations: 1.389 MB / 0.5237 GB, free: 86.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.6243, allocations: 0.8224 MB / 0.5245 GB, free: 85.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000307/0.6246, allocations: 88 kB / 0.5246 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.6248, allocations: 50.73 kB / 0.5247 GB, free: 85.53 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.6248, allocations: 8 kB / 0.5247 GB, free: 85.52 MB / 378.7 MB Notification: Performance of Templates: time 0.01275/0.6376, allocations: 9.406 MB / 0.5339 GB, free: 77.41 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_trunk_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.phi_support,bearingFriction.smoothness,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.smoothness,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