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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 105.8 kB / 20.43 MB, free: 1.473 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002132/0.002132, allocations: 188.3 kB / 23.72 MB, free: 4.711 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB
"
[Timeout remaining time 178]
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)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 47.92 kB / 370.9 MB, free: 9.387 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2439, allocations: 52.17 MB / 423.1 MB, free: 14.72 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004217/0.2481, allocations: 2.772 MB / 425.9 MB, free: 11.94 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00213/0.2502, allocations: 1.088 MB / 427 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.2504, allocations: 7.938 kB / 427 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.2507, allocations: 79.36 kB / 427 MB, free: 10.76 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0006482/0.2514, allocations: 186.8 kB / 427.2 MB, free: 10.57 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.2519, allocations: 243.6 kB / 427.5 MB, free: 10.34 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00074/0.2526, allocations: 0.6508 MB / 428.1 MB, free: 9.684 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.2528, allocations: 83.92 kB / 428.2 MB, free: 9.594 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004114/0.2533, allocations: 299.2 kB / 428.5 MB, free: 9.301 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004471/0.2537, allocations: 358.8 kB / 428.8 MB, free: 8.949 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.439e-05/0.2538, allocations: 52 kB / 428.9 MB, free: 8.898 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002801/0.2541, allocations: 147.9 kB / 429 MB, free: 8.754 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.2543, allocations: 147.5 kB / 429.2 MB, free: 8.609 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002665/0.2545, allocations: 250.8 kB / 429.4 MB, free: 8.363 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000776/0.2553, allocations: 0.6472 MB / 430.1 MB, free: 7.719 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2553, allocations: 0 / 430.1 MB, free: 7.719 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.463e-06/0.2553, allocations: 0 / 430.1 MB, free: 7.719 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.745e-06/0.2553, allocations: 0 / 430.1 MB, free: 7.719 MB / 334.1 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.00172/0.257, allocations: 0.739 MB / 430.8 MB, free: 6.949 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2571, allocations: 12.03 kB / 430.8 MB, free: 6.938 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003591/0.2574, allocations: 76.52 kB / 430.9 MB, free: 6.863 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.2581, allocations: 300.8 kB / 431.2 MB, free: 6.543 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.2582, allocations: 100.9 kB / 431.3 MB, free: 6.43 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.919e-05/0.2583, allocations: 36.38 kB / 431.3 MB, free: 6.395 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.2595, allocations: 0.5684 MB / 431.9 MB, free: 5.812 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.2595, allocations: 0 / 431.9 MB, free: 5.812 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.2596, allocations: 16 kB / 431.9 MB, free: 5.797 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.2596, allocations: 11.94 kB / 431.9 MB, free: 5.785 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.2611, allocations: 0.6363 MB / 432.6 MB, free: 5.148 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.2638, allocations: 1.227 MB / 433.8 MB, free: 3.875 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.265, allocations: 0.5018 MB / 434.3 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006463/0.2656, allocations: 294.3 kB / 434.6 MB, free: 3.074 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.901e-05/0.2657, allocations: 16.44 kB / 434.6 MB, free: 3.059 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.2657, allocations: 43.06 kB / 434.6 MB, free: 3.008 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=61): time 1.943e-06/0.2657, allocations: 4 kB / 434.6 MB, free: 3.004 MB / 334.1 MB
Notification: Performance of matching and sorting (n=69): time 0.007198/0.2729, allocations: 2.556 MB / 437.2 MB, free: 412 kB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.273, allocations: 93.7 kB / 437.3 MB, free: 300 kB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004696/0.2735, allocations: 332.1 kB / 437.6 MB, free: 15.96 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.794e-05/0.2736, allocations: 45.7 kB / 437.7 MB, free: 15.91 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.2737, allocations: 165.7 kB / 437.8 MB, free: 15.74 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.2739, allocations: 234.1 kB / 438 MB, free: 15.51 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/0.2742, allocations: 122.3 kB / 438.2 MB, free: 15.38 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001917/0.2744, allocations: 346.8 kB / 438.5 MB, free: 15.04 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006677/0.275, allocations: 297.2 kB / 438.8 MB, free: 14.75 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007099/0.2757, allocations: 350.5 kB / 439.1 MB, free: 14.39 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.2769, allocations: 0.5229 MB / 439.7 MB, free: 13.86 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2769, allocations: 4.031 kB / 439.7 MB, free: 13.86 MB / 350.1 MB
Notification: Performance of matching and sorting (n=79) (initialization): time 0.001907/0.2788, allocations: 0.8657 MB / 440.5 MB, free: 12.98 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.2789, allocations: 7.938 kB / 440.5 MB, free: 12.97 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.2789, allocations: 0 / 440.5 MB, free: 12.97 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.2801, allocations: 483.3 kB / 441 MB, free: 12.5 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003954/0.2805, allocations: 83.88 kB / 441.1 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.282, allocations: 1.08 MB / 442.2 MB, free: 11.31 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005045/0.2825, allocations: 60.03 kB / 442.2 MB, free: 11.25 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-05/0.2825, allocations: 23.98 kB / 442.3 MB, free: 11.23 MB / 350.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,32)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002912/0.2828, allocations: 185.6 kB / 442.4 MB, free: 11.04 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.2829, allocations: 43.72 kB / 442.5 MB, free: 11 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001742/0.2831, allocations: 63.77 kB / 442.5 MB, free: 10.93 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.2831, allocations: 4 kB / 442.5 MB, free: 10.93 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2831, allocations: 3.938 kB / 442.5 MB, free: 10.93 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.2831, allocations: 7.984 kB / 442.6 MB, free: 10.92 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003706/0.2868, allocations: 1.711 MB / 444.3 MB, free: 9.148 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.2868, allocations: 4 kB / 444.3 MB, free: 9.145 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.2872, allocations: 79.88 kB / 444.3 MB, free: 9.066 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.2883, allocations: 452.5 kB / 444.8 MB, free: 8.621 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/0.2884, allocations: 19.98 kB / 444.8 MB, free: 8.602 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.2898, allocations: 1.037 MB / 445.8 MB, free: 7.539 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.2898, allocations: 3.984 kB / 445.8 MB, free: 7.535 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.2926, allocations: 1.286 MB / 447.1 MB, free: 6.227 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002733/0.2928, allocations: 103.7 kB / 447.2 MB, free: 6.125 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.2929, allocations: 20 kB / 447.3 MB, free: 6.105 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000477/0.2934, allocations: 63.92 kB / 447.3 MB, free: 6.043 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.2936, allocations: 84.48 kB / 447.4 MB, free: 5.961 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.2937, allocations: 23.98 kB / 447.4 MB, free: 5.938 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0003252/0.294, allocations: 243 kB / 447.7 MB, free: 5.703 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.294, allocations: 0 / 447.7 MB, free: 5.703 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0005582/0.2946, allocations: 147.9 kB / 447.8 MB, free: 5.559 MB / 350.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,29)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.000294/0.2949, allocations: 152.9 kB / 448 MB, free: 5.398 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001687/0.2965, allocations: 0.6664 MB / 448.6 MB, free: 4.73 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2965, allocations: 3.938 kB / 448.6 MB, free: 4.727 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000861/0.2974, allocations: 364.7 kB / 449 MB, free: 4.375 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.2979, allocations: 62.11 kB / 449 MB, free: 4.316 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.3007, allocations: 1.127 MB / 450.2 MB, free: 3.164 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.3011, allocations: 0.8212 MB / 451 MB, free: 2.316 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0002251/0.3013, allocations: 67.33 kB / 451.1 MB, free: 2.25 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3015, allocations: 43.41 kB / 451.1 MB, free: 2.207 MB / 350.1 MB
Notification: Performance of SimCode: time 4.21e-07/0.3015, allocations: 0 / 451.1 MB, free: 2.207 MB / 350.1 MB
Notification: Performance of Templates: time 0.01888/0.3204, allocations: 10.65 MB / 461.7 MB, free: 7.582 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660]
(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) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
""

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.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
[Calling sys.exit(0), Time elapsed: 4.878727713599801]