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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001576/0.001576, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001964/0.001964, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 61.22 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08487/0.08598, allocations: 50.52 MB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004399/0.09043, allocations: 2.894 MB / 359.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.09276, allocations: 1.264 MB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.09298, allocations: 7.938 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003885/0.09342, allocations: 75.58 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005141/0.09395, allocations: 203.9 kB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.09445, allocations: 219.7 kB / 361.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006296/0.09509, allocations: 0.7173 MB / 362.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.09536, allocations: 119.4 kB / 362.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004632/0.09584, allocations: 323 kB / 362.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000438/0.09629, allocations: 386.8 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.501e-05/0.09639, allocations: 56 kB / 363.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002862/0.09668, allocations: 147.9 kB / 363.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.09689, allocations: 163.5 kB / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.09717, allocations: 270.7 kB / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006975/0.09787, allocations: 0.7091 MB / 364.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.09789, allocations: 0 / 364.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.0979, allocations: 0 / 364.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.09792, allocations: 0 / 364.5 MB, free: 6.879 MB / 302.1 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.001701/0.09962, allocations: 0.846 MB / 365.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.09968, allocations: 12.02 kB / 365.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004688/0.1002, allocations: 76.25 kB / 365.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005227/0.1007, allocations: 362.4 kB / 365.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.1008, allocations: 104.9 kB / 365.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.045e-05/0.1009, allocations: 40.28 kB / 365.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.1021, allocations: 0.5644 MB / 366.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.1021, allocations: 4 kB / 366.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.873e-05/0.1022, allocations: 16 kB / 366.5 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.1022, allocations: 11.98 kB / 366.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.1036, allocations: 0.6089 MB / 367.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.106, allocations: 1.302 MB / 368.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.1072, allocations: 0.5247 MB / 368.9 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000616/0.1078, allocations: 302.4 kB / 369.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.1079, allocations: 16.48 kB / 369.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1079, allocations: 43.3 kB / 369.3 MB, free: 1.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 5.2e-06/0.1079, allocations: 0 / 369.3 MB, free: 1.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1752/0.2831, allocations: 2.734 MB / 372 MB, free: 20.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.2832, allocations: 89.89 kB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004568/0.2836, allocations: 351.2 kB / 372.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/0.2837, allocations: 43.84 kB / 372.5 MB, free: 19.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.816e-05/0.2838, allocations: 165.3 kB / 372.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.284, allocations: 227.4 kB / 372.9 MB, free: 19.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002501/0.2842, allocations: 130.2 kB / 373 MB, free: 19.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.2843, allocations: 348.6 kB / 373.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/0.285, allocations: 267.2 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006533/0.2856, allocations: 339.1 kB / 373.9 MB, free: 19.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.2867, allocations: 495.2 kB / 374.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2867, allocations: 0.5625 kB / 374.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001971/0.2887, allocations: 0.8359 MB / 375.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.2887, allocations: 6.438 kB / 375.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.2887, allocations: 1.375 kB / 375.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/0.2901, allocations: 447 kB / 375.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.2905, allocations: 87.78 kB / 375.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.2916, allocations: 1.024 MB / 376.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/0.2921, allocations: 55.81 kB / 376.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.719e-05/0.2922, allocations: 32.89 kB / 376.9 MB, free: 17.73 MB / 302.1 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.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.2924, allocations: 180 kB / 377.1 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.2925, allocations: 47.88 kB / 377.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.2927, allocations: 68.39 kB / 377.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.2927, allocations: 7.125 kB / 377.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2927, allocations: 1.562 kB / 377.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2927, allocations: 3.703 kB / 377.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003066/0.2958, allocations: 1.705 MB / 378.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2958, allocations: 5.375 kB / 378.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.2962, allocations: 79.11 kB / 379 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009516/0.2972, allocations: 414.4 kB / 379.4 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.892e-05/0.2972, allocations: 24.84 kB / 379.4 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.2983, allocations: 0.9747 MB / 380.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2983, allocations: 3.828 kB / 380.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00241/0.3007, allocations: 1.222 MB / 381.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.301, allocations: 201.8 kB / 381.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.3011, allocations: 19.61 kB / 381.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.3015, allocations: 49.44 kB / 381.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.3018, allocations: 88.8 kB / 382 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.747e-05/0.3019, allocations: 25.19 kB / 382 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003216/0.3022, allocations: 260.4 kB / 382.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3022, allocations: 0 / 382.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005356/0.3027, allocations: 144.2 kB / 382.4 MB, free: 14.86 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008691/0.3036, allocations: 398.6 kB / 382.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.3053, allocations: 0.7092 MB / 383.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3053, allocations: 0 / 383.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008751/0.3062, allocations: 388.8 kB / 383.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.3068, allocations: 59.2 kB / 383.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.3094, allocations: 1.32 MB / 385.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.3096, allocations: 0.8263 MB / 386.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002855/0.3099, allocations: 80.97 kB / 386.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.3101, allocations: 53.17 kB / 386.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3101, allocations: 0 / 386.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01433/0.3245, allocations: 10.33 MB / 396.5 MB, free: 7.957 MB / 302.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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.continuous,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