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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001496/0.001496, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB
"
[Timeout remaining time 178]
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=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.88 kB / 378.8 MB, free: 2.82 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2781, allocations: 53.37 MB / 432.1 MB, free: 7.098 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00457/0.2826, allocations: 2.89 MB / 435 MB, free: 4.203 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00246/0.2851, allocations: 1.291 MB / 436.3 MB, free: 2.906 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.2853, allocations: 7.938 kB / 436.3 MB, free: 2.898 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000319/0.2856, allocations: 91.27 kB / 436.4 MB, free: 2.809 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0006804/0.2863, allocations: 223.1 kB / 436.6 MB, free: 2.594 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.2868, allocations: 243.5 kB / 436.9 MB, free: 2.355 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008507/0.2877, allocations: 0.7172 MB / 437.6 MB, free: 1.637 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.2879, allocations: 91.91 kB / 437.7 MB, free: 1.539 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005543/0.2885, allocations: 335.1 kB / 438 MB, free: 1.211 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005237/0.289, allocations: 386.8 kB / 438.4 MB, free: 0.832 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.2891, allocations: 60 kB / 438.4 MB, free: 0.7734 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003261/0.2894, allocations: 151.9 kB / 438.6 MB, free: 0.625 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.2897, allocations: 163.5 kB / 438.7 MB, free: 476 kB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002909/0.29, allocations: 274.7 kB / 439 MB, free: 200 kB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0009388/0.2909, allocations: 0.7256 MB / 439.7 MB, free: 15.47 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2909, allocations: 0 / 439.7 MB, free: 15.47 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.833e-06/0.2909, allocations: 7.938 kB / 439.7 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 8.526e-06/0.2909, allocations: 4 kB / 439.7 MB, free: 15.46 MB / 350.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.001822/0.2927, allocations: 0.7777 MB / 440.5 MB, free: 14.65 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2928, allocations: 8.031 kB / 440.5 MB, free: 14.64 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004378/0.2932, allocations: 76.62 kB / 440.6 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006618/0.2939, allocations: 308.7 kB / 440.9 MB, free: 14.24 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.294, allocations: 108.9 kB / 441 MB, free: 14.12 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.306e-05/0.2941, allocations: 44.33 kB / 441 MB, free: 14.08 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2953, allocations: 0.5567 MB / 441.6 MB, free: 13.51 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2953, allocations: 0 / 441.6 MB, free: 13.51 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.2954, allocations: 19.98 kB / 441.6 MB, free: 13.49 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.2954, allocations: 8 kB / 441.6 MB, free: 13.48 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.2968, allocations: 0.6167 MB / 442.3 MB, free: 12.86 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.2994, allocations: 1.239 MB / 443.5 MB, free: 11.58 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.3008, allocations: 497.3 kB / 444 MB, free: 11.08 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006666/0.3015, allocations: 282.2 kB / 444.3 MB, free: 10.8 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.3015, allocations: 12.42 kB / 444.3 MB, free: 10.79 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3015, allocations: 39.06 kB / 444.3 MB, free: 10.74 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=62): time 1.964e-06/0.3015, allocations: 0 / 444.3 MB, free: 10.74 MB / 350.1 MB
Notification: Performance of matching and sorting (n=70): time 0.007195/0.3087, allocations: 2.446 MB / 446.7 MB, free: 8.254 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.3088, allocations: 85.77 kB / 446.8 MB, free: 8.152 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004978/0.3093, allocations: 348.5 kB / 447.2 MB, free: 7.801 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.244e-05/0.3094, allocations: 45.69 kB / 447.2 MB, free: 7.75 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.3095, allocations: 165.8 kB / 447.4 MB, free: 7.582 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.3097, allocations: 249.9 kB / 447.6 MB, free: 7.336 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002315/0.31, allocations: 126.2 kB / 447.7 MB, free: 7.207 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001766/0.3101, allocations: 354.8 kB / 448.1 MB, free: 6.852 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006436/0.3108, allocations: 265.2 kB / 448.3 MB, free: 6.594 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007089/0.3115, allocations: 334.5 kB / 448.7 MB, free: 6.254 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.3127, allocations: 499.5 kB / 449.2 MB, free: 5.758 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3127, allocations: 0 / 449.2 MB, free: 5.758 MB / 350.1 MB
Notification: Performance of matching and sorting (n=80) (initialization): time 0.001939/0.3146, allocations: 0.818 MB / 450 MB, free: 4.93 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3146, allocations: 8.031 kB / 450 MB, free: 4.922 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3146, allocations: 7.984 kB / 450 MB, free: 4.914 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.3158, allocations: 436.4 kB / 450.4 MB, free: 4.484 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004198/0.3163, allocations: 91.81 kB / 450.5 MB, free: 4.395 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3177, allocations: 1.018 MB / 451.5 MB, free: 3.352 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/0.3183, allocations: 63.98 kB / 451.6 MB, free: 3.289 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.227e-05/0.3183, allocations: 27.98 kB / 451.6 MB, free: 3.262 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,33)}
Notification: Performance of prepare postOptimizeDAE: time 0.0003074/0.3186, allocations: 181.8 kB / 451.8 MB, free: 3.074 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3188, allocations: 43.72 kB / 451.8 MB, free: 3.031 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.3189, allocations: 71.84 kB / 451.9 MB, free: 2.961 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.319, allocations: 8 kB / 451.9 MB, free: 2.953 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.319, allocations: 0 / 451.9 MB, free: 2.953 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.319, allocations: 3.984 kB / 451.9 MB, free: 2.949 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/0.3227, allocations: 1.653 MB / 453.6 MB, free: 1.234 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3227, allocations: 4 kB / 453.6 MB, free: 1.23 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000402/0.3231, allocations: 79.88 kB / 453.7 MB, free: 1.152 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001061/0.3242, allocations: 416.5 kB / 454.1 MB, free: 0.7422 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-05/0.3243, allocations: 23.98 kB / 454.1 MB, free: 0.7188 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.3256, allocations: 0.9827 MB / 455.1 MB, free: 15.71 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3256, allocations: 4.062 kB / 455.1 MB, free: 15.71 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002767/0.3284, allocations: 1.216 MB / 456.3 MB, free: 14.47 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002855/0.3287, allocations: 115.5 kB / 456.4 MB, free: 14.36 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.3288, allocations: 16 kB / 456.4 MB, free: 14.34 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004836/0.3293, allocations: 51.94 kB / 456.5 MB, free: 14.29 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.3295, allocations: 96.47 kB / 456.6 MB, free: 14.2 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.3296, allocations: 27.97 kB / 456.6 MB, free: 14.17 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0003639/0.3299, allocations: 259.1 kB / 456.8 MB, free: 13.91 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3299, allocations: 0 / 456.8 MB, free: 13.91 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005534/0.3305, allocations: 144 kB / 457 MB, free: 13.77 MB / 366.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.00153/0.332, allocations: 391 kB / 457.4 MB, free: 13.5 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001713/0.3337, allocations: 0.6312 MB / 458 MB, free: 12.87 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3337, allocations: 4 kB / 458 MB, free: 12.87 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008997/0.3346, allocations: 348.7 kB / 458.3 MB, free: 12.52 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.3352, allocations: 71.72 kB / 458.4 MB, free: 12.45 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.3381, allocations: 1.162 MB / 459.6 MB, free: 11.26 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005347/0.3387, allocations: 0.8213 MB / 460.4 MB, free: 10.41 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002799/0.339, allocations: 83.36 kB / 460.5 MB, free: 10.33 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.3391, allocations: 51.39 kB / 460.5 MB, free: 10.28 MB / 366.1 MB
Notification: Performance of SimCode: time 4.51e-07/0.3391, allocations: 0 / 460.5 MB, free: 10.28 MB / 366.1 MB
Notification: Performance of Templates: time 0.02056/0.3597, allocations: 11.03 MB / 471.6 MB, free: 15.25 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660]
(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) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [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.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
[Calling sys.exit(0), Time elapsed: 4.7843195693567395]