Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001874/0.001874, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002065/0.002065, allocations: 183.7 kB / 23.71 MB, free: 4.695 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.496/1.496, allocations: 225.6 MB / 252.5 MB, free: 13 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3")
translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 51.92 kB / 370.9 MB, free: 9.355 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2716, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003921/0.2756, allocations: 2.379 MB / 425.5 MB, free: 12.29 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001797/0.2774, allocations: 0.9248 MB / 426.4 MB, free: 11.36 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.2775, allocations: 7.938 kB / 426.4 MB, free: 11.35 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000225/0.2777, allocations: 47.58 kB / 426.5 MB, free: 11.3 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004894/0.2782, allocations: 139.2 kB / 426.6 MB, free: 11.16 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003405/0.2785, allocations: 163.7 kB / 426.8 MB, free: 11 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005026/0.279, allocations: 426.8 kB / 427.2 MB, free: 10.59 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.2792, allocations: 40.88 kB / 427.2 MB, free: 10.54 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.2794, allocations: 191.4 kB / 427.4 MB, free: 10.36 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.2797, allocations: 231.3 kB / 427.6 MB, free: 10.13 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.281e-05/0.2798, allocations: 39.94 kB / 427.7 MB, free: 10.09 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.28, allocations: 115.9 kB / 427.8 MB, free: 9.977 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.2802, allocations: 95.72 kB / 427.9 MB, free: 9.883 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.2803, allocations: 167.2 kB / 428 MB, free: 9.719 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005697/0.2809, allocations: 451.6 kB / 428.5 MB, free: 9.281 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2809, allocations: 4 kB / 428.5 MB, free: 9.277 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.312e-06/0.2809, allocations: 4 kB / 428.5 MB, free: 9.273 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.974e-06/0.2809, allocations: 0 / 428.5 MB, free: 9.273 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: 67
 * Number of variables: 67
Notification: Performance of Generate backend data structure: time 0.001264/0.2822, allocations: 0.5558 MB / 429 MB, free: 8.688 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2822, allocations: 12.03 kB / 429.1 MB, free: 8.676 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003167/0.2825, allocations: 48.72 kB / 429.1 MB, free: 8.629 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.2831, allocations: 246 kB / 429.3 MB, free: 8.363 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.2832, allocations: 88.61 kB / 429.4 MB, free: 8.266 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.2833, allocations: 28.38 kB / 429.5 MB, free: 8.238 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007591/0.284, allocations: 386.7 kB / 429.8 MB, free: 7.848 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.284, allocations: 7.953 kB / 429.8 MB, free: 7.84 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.669e-05/0.2841, allocations: 16 kB / 429.9 MB, free: 7.824 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.2841, allocations: 4 kB / 429.9 MB, free: 7.82 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009258/0.285, allocations: 414.3 kB / 430.3 MB, free: 7.414 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.2872, allocations: 1.181 MB / 431.4 MB, free: 6.172 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007194/0.2879, allocations: 334.5 kB / 431.8 MB, free: 5.836 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003915/0.2883, allocations: 168.8 kB / 431.9 MB, free: 5.668 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.2884, allocations: 8 kB / 431.9 MB, free: 5.66 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.2884, allocations: 34.56 kB / 432 MB, free: 5.617 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.2884, allocations: 0 / 432 MB, free: 5.617 MB / 334.1 MB
Notification: Performance of matching and sorting (n=45): time 0.004979/0.2934, allocations: 1.693 MB / 433.7 MB, free: 3.867 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.2934, allocations: 88.8 kB / 433.8 MB, free: 3.762 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.2938, allocations: 243.1 kB / 434 MB, free: 3.516 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.2938, allocations: 33.7 kB / 434 MB, free: 3.477 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.2939, allocations: 140.8 kB / 434.2 MB, free: 3.332 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.294, allocations: 162.6 kB / 434.3 MB, free: 3.172 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.2942, allocations: 78.12 kB / 434.4 MB, free: 3.09 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001449/0.2943, allocations: 338.8 kB / 434.7 MB, free: 2.75 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.2947, allocations: 176.7 kB / 434.9 MB, free: 2.578 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.2951, allocations: 225.9 kB / 435.1 MB, free: 2.34 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007073/0.2959, allocations: 343.2 kB / 435.5 MB, free: 1.988 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2959, allocations: 4 kB / 435.5 MB, free: 1.984 MB / 334.1 MB
Notification: Performance of matching and sorting (n=52) (initialization): time 0.001144/0.297, allocations: 0.5473 MB / 436 MB, free: 1.43 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.297, allocations: 8 kB / 436 MB, free: 1.422 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.297, allocations: 3.984 kB / 436 MB, free: 1.418 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008008/0.2978, allocations: 256.7 kB / 436.3 MB, free: 1.164 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.2981, allocations: 55.91 kB / 436.3 MB, free: 1.109 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.3022, allocations: 2.787 MB / 439.1 MB, free: 14.21 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.3025, allocations: 28 kB / 439.1 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.3025, allocations: 12 kB / 439.2 MB, free: 14.17 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 7 (gear.ideal,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 (27):
 * Single equations (assignments): 26
 * 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,24)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.3028, allocations: 165 kB / 439.3 MB, free: 14 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.628e-05/0.3029, allocations: 27.84 kB / 439.3 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.303, allocations: 39.06 kB / 439.4 MB, free: 13.94 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.303, allocations: 8 kB / 439.4 MB, free: 13.93 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.303, allocations: 0 / 439.4 MB, free: 13.93 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.303, allocations: 3.984 kB / 439.4 MB, free: 13.93 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.3053, allocations: 1.046 MB / 440.4 MB, free: 12.83 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.3053, allocations: 3.984 kB / 440.4 MB, free: 12.82 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.3055, allocations: 43.91 kB / 440.5 MB, free: 12.78 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0007199/0.3062, allocations: 244.8 kB / 440.7 MB, free: 12.54 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.3063, allocations: 8 kB / 440.7 MB, free: 12.53 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004301/0.3106, allocations: 2.736 MB / 443.5 MB, free: 9.68 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3106, allocations: 7.969 kB / 443.5 MB, free: 9.672 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.3122, allocations: 0.808 MB / 444.3 MB, free: 8.848 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.3123, allocations: 63.83 kB / 444.3 MB, free: 8.785 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.3124, allocations: 19.88 kB / 444.4 MB, free: 8.766 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002615/0.3126, allocations: 15.98 kB / 444.4 MB, free: 8.75 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.3128, allocations: 63.88 kB / 444.4 MB, free: 8.688 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.3128, allocations: 15.98 kB / 444.5 MB, free: 8.672 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002487/0.3131, allocations: 176.4 kB / 444.6 MB, free: 8.5 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3131, allocations: 0 / 444.6 MB, free: 8.5 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0005822/0.3136, allocations: 135.9 kB / 444.8 MB, free: 8.367 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (Inertia2.phi,Inertia2.w)
 * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode)
 * Number of discrete states: 1 (gear.mode)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (21):
 * Single equations (assignments): 20
 * 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,23)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.000254/0.3139, allocations: 145.7 kB / 444.9 MB, free: 8.219 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001363/0.3153, allocations: 0.6058 MB / 445.5 MB, free: 7.594 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3153, allocations: 4.062 kB / 445.5 MB, free: 7.59 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.316, allocations: 413.8 kB / 445.9 MB, free: 7.172 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.3165, allocations: 35.92 kB / 446 MB, free: 7.137 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.3178, allocations: 0.7021 MB / 446.7 MB, free: 6.41 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.3183, allocations: 0.7801 MB / 447.4 MB, free: 5.602 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001706/0.3185, allocations: 54.95 kB / 447.5 MB, free: 5.551 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.631e-05/0.3186, allocations: 35.42 kB / 447.5 MB, free: 5.516 MB / 350.1 MB
Notification: Performance of SimCode: time 2.8e-07/0.3186, allocations: 0 / 447.5 MB, free: 5.516 MB / 350.1 MB
Notification: Performance of Templates: time 0.01381/0.3324, allocations: 7.608 MB / 455.1 MB, free: 13.92 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.722477448172867]