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.001339/0.001339, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001375/0.001375, allocations: 202.6 kB / 21.45 MB, free: 1.652 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.464/1.464, allocations: 230.2 MB / 254.5 MB, free: 15.38 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.001877/0.001877, allocations: 67.88 kB / 373.9 MB, free: 9.867 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1046, allocations: 53.33 MB / 427.2 MB, free: 4.441 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004527/0.1091, allocations: 2.876 MB / 430.1 MB, free: 1.551 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002643/0.1118, allocations: 1.279 MB / 431.4 MB, free: 268 kB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.112, allocations: 4 kB / 431.4 MB, free: 264 kB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.1123, allocations: 91.22 kB / 431.4 MB, free: 172 kB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0005883/0.1129, allocations: 223.7 kB / 431.7 MB, free: 15.95 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005309/0.1134, allocations: 251.5 kB / 431.9 MB, free: 15.7 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0007397/0.1142, allocations: 0.7133 MB / 432.6 MB, free: 14.99 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.1144, allocations: 83.44 kB / 432.7 MB, free: 14.9 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004638/0.1149, allocations: 335 kB / 433 MB, free: 14.57 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005092/0.1154, allocations: 386.8 kB / 433.4 MB, free: 14.19 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.786e-05/0.1155, allocations: 60 kB / 433.5 MB, free: 14.13 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002913/0.1158, allocations: 155.9 kB / 433.6 MB, free: 13.98 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.116, allocations: 163.6 kB / 433.8 MB, free: 13.82 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.1163, allocations: 270.7 kB / 434 MB, free: 13.55 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008383/0.1171, allocations: 0.7162 MB / 434.8 MB, free: 12.84 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1171, allocations: 0 / 434.8 MB, free: 12.84 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.373e-06/0.1171, allocations: 0 / 434.8 MB, free: 12.84 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 8.296e-06/0.1171, allocations: 4 kB / 434.8 MB, free: 12.83 MB / 366.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.001782/0.1189, allocations: 0.8529 MB / 435.6 MB, free: 11.93 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1189, allocations: 12.03 kB / 435.6 MB, free: 11.92 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004405/0.1194, allocations: 76.62 kB / 435.7 MB, free: 11.84 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.12, allocations: 378.5 kB / 436.1 MB, free: 11.43 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.1202, allocations: 96.95 kB / 436.2 MB, free: 11.33 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.1203, allocations: 44.33 kB / 436.2 MB, free: 11.29 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.1215, allocations: 0.5567 MB / 436.8 MB, free: 10.71 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.1215, allocations: 0 / 436.8 MB, free: 10.71 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.716e-05/0.1215, allocations: 16 kB / 436.8 MB, free: 10.7 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1215, allocations: 8 kB / 436.8 MB, free: 10.69 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.123, allocations: 0.6206 MB / 437.4 MB, free: 10.07 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/0.1256, allocations: 1.303 MB / 438.7 MB, free: 8.711 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.1268, allocations: 0.4896 MB / 439.2 MB, free: 8.211 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006457/0.1275, allocations: 284.2 kB / 439.5 MB, free: 7.934 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.131e-05/0.1275, allocations: 8.5 kB / 439.5 MB, free: 7.926 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.1276, allocations: 39.12 kB / 439.5 MB, free: 7.879 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=62): time 1.553e-06/0.1276, allocations: 0 / 439.5 MB, free: 7.879 MB / 366.1 MB
Notification: Performance of matching and sorting (n=70): time 0.007277/0.1348, allocations: 2.751 MB / 442.3 MB, free: 5.008 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/0.1349, allocations: 85.67 kB / 442.4 MB, free: 4.906 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004638/0.1354, allocations: 347.3 kB / 442.7 MB, free: 4.559 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.863e-05/0.1354, allocations: 49.69 kB / 442.8 MB, free: 4.504 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1356, allocations: 165.8 kB / 442.9 MB, free: 4.336 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.1358, allocations: 245.9 kB / 443.2 MB, free: 4.094 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.136, allocations: 134.2 kB / 443.3 MB, free: 3.957 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001614/0.1362, allocations: 346.8 kB / 443.6 MB, free: 3.609 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.1368, allocations: 265.2 kB / 443.9 MB, free: 3.348 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007284/0.1376, allocations: 338.4 kB / 444.2 MB, free: 3.008 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.1387, allocations: 491.2 kB / 444.7 MB, free: 2.52 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1387, allocations: 3.938 kB / 444.7 MB, free: 2.516 MB / 366.1 MB
Notification: Performance of matching and sorting (n=80) (initialization): time 0.001924/0.1406, allocations: 0.8219 MB / 445.5 MB, free: 1.684 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1406, allocations: 4 kB / 445.5 MB, free: 1.68 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.1407, allocations: 3.984 kB / 445.5 MB, free: 1.676 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.1418, allocations: 440.4 kB / 446 MB, free: 1.242 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004127/0.1422, allocations: 91.86 kB / 446 MB, free: 1.152 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.1436, allocations: 1.021 MB / 447.1 MB, free: 108 kB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/0.1441, allocations: 55.92 kB / 447.1 MB, free: 52 kB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.1442, allocations: 24.05 kB / 447.1 MB, free: 28 kB / 366.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.1875/0.3317, allocations: 182.1 kB / 447.3 MB, free: 24.87 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.3319, allocations: 45.73 kB / 447.4 MB, free: 24.87 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00017/0.3321, allocations: 69.48 kB / 447.4 MB, free: 24.86 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3321, allocations: 7.469 kB / 447.4 MB, free: 24.86 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.3321, allocations: 0 / 447.4 MB, free: 24.86 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3321, allocations: 3.766 kB / 447.4 MB, free: 24.86 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.3353, allocations: 1.689 MB / 449.1 MB, free: 24.51 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3353, allocations: 0 / 449.1 MB, free: 24.51 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.3357, allocations: 77.42 kB / 449.2 MB, free: 24.51 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0009518/0.3367, allocations: 424 kB / 449.6 MB, free: 24.5 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-05/0.3367, allocations: 22.95 kB / 449.7 MB, free: 24.5 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.3378, allocations: 0.971 MB / 450.6 MB, free: 23.96 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3378, allocations: 4.906 kB / 450.6 MB, free: 23.96 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.3402, allocations: 1.207 MB / 451.8 MB, free: 23.41 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000238/0.3405, allocations: 194.4 kB / 452 MB, free: 23.28 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-05/0.3406, allocations: 18.34 kB / 452 MB, free: 23.27 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000482/0.341, allocations: 52.33 kB / 452.1 MB, free: 23.26 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/0.3413, allocations: 99.25 kB / 452.2 MB, free: 23.23 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.828e-05/0.3413, allocations: 25.92 kB / 452.2 MB, free: 23.23 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0003186/0.3417, allocations: 259.7 kB / 452.5 MB, free: 23.1 MB / 366.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3417, allocations: 0 / 452.5 MB, free: 23.1 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005347/0.3422, allocations: 144.2 kB / 452.6 MB, free: 23.08 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.001341/0.3435, allocations: 384.9 kB / 453 MB, free: 22.95 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001617/0.3451, allocations: 0.633 MB / 453.6 MB, free: 22.76 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3451, allocations: 6.5 kB / 453.6 MB, free: 22.76 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008479/0.346, allocations: 341.1 kB / 454 MB, free: 22.66 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/0.3465, allocations: 62.7 kB / 454 MB, free: 22.63 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.3491, allocations: 1.157 MB / 455.2 MB, free: 22.11 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.3494, allocations: 0.8244 MB / 456 MB, free: 21.4 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002581/0.3496, allocations: 84.08 kB / 456.1 MB, free: 21.37 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.3498, allocations: 52.78 kB / 456.1 MB, free: 21.36 MB / 366.1 MB
Notification: Performance of SimCode: time 6.51e-07/0.3498, allocations: 0 / 456.1 MB, free: 21.36 MB / 366.1 MB
Notification: Performance of Templates: time 0.01775/0.3676, allocations: 10.5 MB / 466.6 MB, free: 18.68 MB / 366.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.755599548108876]