Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001387/0.001387, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001513/0.001513, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1")
translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 64.55 kB / 379 MB, free: 2.652 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2552, allocations: 53.37 MB / 432.4 MB, free: 6.945 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004468/0.2597, allocations: 2.568 MB / 435 MB, free: 4.371 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002158/0.2618, allocations: 1.158 MB / 436.1 MB, free: 3.207 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.2619, allocations: 15.88 kB / 436.1 MB, free: 3.191 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.2622, allocations: 63.44 kB / 436.2 MB, free: 3.129 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004792/0.2627, allocations: 172.5 kB / 436.4 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.2631, allocations: 183.6 kB / 436.5 MB, free: 2.781 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006031/0.2637, allocations: 0.5141 MB / 437.1 MB, free: 2.266 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.2639, allocations: 65.14 kB / 437.1 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003705/0.2643, allocations: 235.4 kB / 437.4 MB, free: 1.965 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.2647, allocations: 287.1 kB / 437.6 MB, free: 1.684 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.696e-05/0.2648, allocations: 44 kB / 437.7 MB, free: 1.641 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.265, allocations: 132 kB / 437.8 MB, free: 1.512 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.2652, allocations: 123.6 kB / 437.9 MB, free: 1.391 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.2654, allocations: 199.1 kB / 438.1 MB, free: 1.195 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006786/0.266, allocations: 0.5466 MB / 438.7 MB, free: 0.6523 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.266, allocations: 3.938 kB / 438.7 MB, free: 0.6484 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.272e-06/0.266, allocations: 0 / 438.7 MB, free: 0.6484 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.274e-06/0.2661, allocations: 0 / 438.7 MB, free: 0.6484 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: 76
 * Number of variables: 76
Notification: Performance of Generate backend data structure: time 0.001435/0.2675, allocations: 0.6414 MB / 439.3 MB, free: 15.98 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2675, allocations: 12.03 kB / 439.3 MB, free: 15.96 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004067/0.2679, allocations: 60.67 kB / 439.4 MB, free: 15.91 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005682/0.2685, allocations: 266.5 kB / 439.6 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.2686, allocations: 92.61 kB / 439.7 MB, free: 15.52 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.463e-05/0.2687, allocations: 36.33 kB / 439.8 MB, free: 15.48 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008579/0.2696, allocations: 417 kB / 440.2 MB, free: 15.07 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.2696, allocations: 4 kB / 440.2 MB, free: 15.06 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/0.2696, allocations: 8 kB / 440.2 MB, free: 15.05 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.2697, allocations: 8 kB / 440.2 MB, free: 15.05 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.2707, allocations: 478.2 kB / 440.7 MB, free: 14.58 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.2726, allocations: 0.9359 MB / 441.6 MB, free: 13.6 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009/0.2735, allocations: 376.4 kB / 442 MB, free: 13.22 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000491/0.274, allocations: 202.1 kB / 442.2 MB, free: 13.02 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.274, allocations: 4.438 kB / 442.2 MB, free: 13.02 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.2741, allocations: 39 kB / 442.2 MB, free: 12.97 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=49): time 1.784e-06/0.2741, allocations: 4 kB / 442.2 MB, free: 12.97 MB / 350.1 MB
Notification: Performance of matching and sorting (n=55): time 0.005847/0.2799, allocations: 1.913 MB / 444.1 MB, free: 11 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/0.28, allocations: 93.55 kB / 444.2 MB, free: 10.89 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/0.2804, allocations: 268.9 kB / 444.5 MB, free: 10.61 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.2804, allocations: 37.7 kB / 444.5 MB, free: 10.57 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.2806, allocations: 145.2 kB / 444.7 MB, free: 10.43 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.2807, allocations: 186.4 kB / 444.8 MB, free: 10.24 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.2809, allocations: 90.17 kB / 444.9 MB, free: 10.15 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001579/0.281, allocations: 346.8 kB / 445.3 MB, free: 9.801 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004695/0.2815, allocations: 188.9 kB / 445.5 MB, free: 9.617 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.282, allocations: 240 kB / 445.7 MB, free: 9.375 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008957/0.2829, allocations: 387.4 kB / 446.1 MB, free: 8.996 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2829, allocations: 0 / 446.1 MB, free: 8.996 MB / 350.1 MB
Notification: Performance of matching and sorting (n=59) (initialization): time 0.001354/0.2843, allocations: 0.5965 MB / 446.7 MB, free: 8.387 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.2843, allocations: 11.94 kB / 446.7 MB, free: 8.375 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2843, allocations: 0 / 446.7 MB, free: 8.375 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.000864/0.2852, allocations: 306.6 kB / 447 MB, free: 8.074 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.2855, allocations: 75.88 kB / 447 MB, free: 8 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004393/0.2899, allocations: 2.84 MB / 449.9 MB, free: 5.047 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.2902, allocations: 32 kB / 449.9 MB, free: 5.016 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.149e-05/0.2903, allocations: 19.94 kB / 449.9 MB, free: 4.996 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 2
 * 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 (33):
 * Single equations (assignments): 32
 * 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,25)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002967/0.2906, allocations: 165.8 kB / 450.1 MB, free: 4.824 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.2907, allocations: 35.75 kB / 450.1 MB, free: 4.789 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.2908, allocations: 47.61 kB / 450.2 MB, free: 4.746 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.2908, allocations: 8 kB / 450.2 MB, free: 4.738 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2908, allocations: 0 / 450.2 MB, free: 4.738 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-06/0.2908, allocations: 3.984 kB / 450.2 MB, free: 4.734 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.2934, allocations: 1.257 MB / 451.5 MB, free: 3.422 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2934, allocations: 0 / 451.5 MB, free: 3.422 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003251/0.2937, allocations: 59.95 kB / 451.5 MB, free: 3.363 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.000757/0.2945, allocations: 288.6 kB / 451.8 MB, free: 3.078 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.173e-05/0.2945, allocations: 19.92 kB / 451.8 MB, free: 3.059 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004108/0.2986, allocations: 2.752 MB / 454.6 MB, free: 200 kB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.2986, allocations: 12.08 kB / 454.6 MB, free: 188 kB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.3006, allocations: 0.9331 MB / 455.5 MB, free: 15.23 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.3008, allocations: 79.72 kB / 455.6 MB, free: 15.15 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.651e-05/0.3009, allocations: 23.94 kB / 455.6 MB, free: 15.12 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.3012, allocations: 31.97 kB / 455.6 MB, free: 15.09 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.3014, allocations: 68.3 kB / 455.7 MB, free: 15.02 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.3014, allocations: 23.92 kB / 455.7 MB, free: 15 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002746/0.3017, allocations: 200.5 kB / 455.9 MB, free: 14.8 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3017, allocations: 0 / 455.9 MB, free: 14.8 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0006518/0.3023, allocations: 155.9 kB / 456.1 MB, free: 14.65 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: 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 (31):
 * Single equations (assignments): 30
 * 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.001422/0.3038, allocations: 381.4 kB / 456.5 MB, free: 14.41 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001657/0.3054, allocations: 0.6635 MB / 457.1 MB, free: 13.73 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3054, allocations: 0 / 457.1 MB, free: 13.73 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008961/0.3063, allocations: 468.1 kB / 457.6 MB, free: 13.26 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.3068, allocations: 47.8 kB / 457.6 MB, free: 13.21 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.3086, allocations: 0.8165 MB / 458.4 MB, free: 12.37 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004777/0.3091, allocations: 0.7929 MB / 459.2 MB, free: 11.54 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002542/0.3093, allocations: 86.77 kB / 459.3 MB, free: 11.46 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.3095, allocations: 39.41 kB / 459.4 MB, free: 11.42 MB / 366.1 MB
Notification: Performance of SimCode: time 6.32e-07/0.3095, allocations: 0 / 459.4 MB, free: 11.42 MB / 366.1 MB
Notification: Performance of Templates: time 0.01727/0.3268, allocations: 8.794 MB / 468.1 MB, free: 2.645 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.742634946480393]