Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001296/0.001296, allocations: 112.2 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.001437/0.001437, allocations: 180.8 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.453/1.453, 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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift")
translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 51.91 kB / 370.9 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2481, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004478/0.2526, allocations: 2.84 MB / 426 MB, free: 11.83 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001796/0.2544, allocations: 0.9037 MB / 426.9 MB, free: 10.92 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.2545, allocations: 7.938 kB / 426.9 MB, free: 10.91 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002469/0.2548, allocations: 55.44 kB / 426.9 MB, free: 10.86 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002536/0.255, allocations: 111 kB / 427 MB, free: 10.75 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.2556, allocations: 215.6 kB / 427.2 MB, free: 10.54 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006558/0.2562, allocations: 0.5772 MB / 427.8 MB, free: 9.957 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.2564, allocations: 75 kB / 427.9 MB, free: 9.879 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.2567, allocations: 251.3 kB / 428.1 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000369/0.2571, allocations: 279 kB / 428.4 MB, free: 9.359 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.904e-05/0.2572, allocations: 44 kB / 428.5 MB, free: 9.316 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.2574, allocations: 103.9 kB / 428.6 MB, free: 9.215 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.2575, allocations: 111.7 kB / 428.7 MB, free: 9.105 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.2578, allocations: 222.9 kB / 428.9 MB, free: 8.887 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006764/0.2585, allocations: 0.5344 MB / 429.4 MB, free: 8.355 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2585, allocations: 0 / 429.4 MB, free: 8.355 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.142e-06/0.2585, allocations: 0 / 429.4 MB, free: 8.355 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.376e-06/0.2585, allocations: 0 / 429.4 MB, free: 8.355 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: 84
 * Number of variables: 84
Notification: Performance of Generate backend data structure: time 0.00148/0.2599, allocations: 0.6767 MB / 430.1 MB, free: 7.648 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.26, allocations: 15.97 kB / 430.1 MB, free: 7.633 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.2601, allocations: 40.7 kB / 430.1 MB, free: 7.594 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.2606, allocations: 256.8 kB / 430.4 MB, free: 7.312 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.2606, allocations: 21.38 kB / 430.4 MB, free: 7.293 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.092e-05/0.2607, allocations: 36.38 kB / 430.5 MB, free: 7.258 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009521/0.2616, allocations: 446.6 kB / 430.9 MB, free: 6.816 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.2617, allocations: 7.938 kB / 430.9 MB, free: 6.809 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.76e-05/0.2617, allocations: 15.98 kB / 430.9 MB, free: 6.793 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2617, allocations: 8 kB / 430.9 MB, free: 6.785 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.2627, allocations: 459.6 kB / 431.4 MB, free: 6.332 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.2653, allocations: 1.19 MB / 432.6 MB, free: 5.086 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0008672/0.2661, allocations: 348.9 kB / 432.9 MB, free: 4.734 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005026/0.2667, allocations: 237.2 kB / 433.1 MB, free: 4.5 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.2667, allocations: 8.312 kB / 433.1 MB, free: 4.492 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.2667, allocations: 38.94 kB / 433.2 MB, free: 4.445 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=45): time 2.715e-06/0.2667, allocations: 0 / 433.2 MB, free: 4.445 MB / 334.1 MB
Notification: Performance of matching and sorting (n=49): time 0.005659/0.2724, allocations: 1.952 MB / 435.1 MB, free: 2.43 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.2724, allocations: 63.84 kB / 435.2 MB, free: 2.355 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.2727, allocations: 245.9 kB / 435.4 MB, free: 2.105 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.098e-05/0.2728, allocations: 41.7 kB / 435.5 MB, free: 2.059 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.2729, allocations: 168.9 kB / 435.6 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.2731, allocations: 182.5 kB / 435.8 MB, free: 1.707 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.2733, allocations: 102.3 kB / 435.9 MB, free: 1.602 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000158/0.2734, allocations: 338.8 kB / 436.2 MB, free: 1.262 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00053/0.274, allocations: 237.2 kB / 436.5 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000579/0.2746, allocations: 304.1 kB / 436.8 MB, free: 0.7188 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000859/0.2754, allocations: 414.7 kB / 437.2 MB, free: 304 kB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2754, allocations: 3.938 kB / 437.2 MB, free: 300 kB / 334.1 MB
Notification: Performance of matching and sorting (n=65) (initialization): time 0.001757/0.2772, allocations: 0.7457 MB / 437.9 MB, free: 15.53 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2772, allocations: 4 kB / 437.9 MB, free: 15.53 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.2772, allocations: 4 kB / 437.9 MB, free: 15.52 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.2784, allocations: 0.553 MB / 438.5 MB, free: 14.96 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.2787, allocations: 67.91 kB / 438.6 MB, free: 14.89 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.2824, allocations: 3.446 MB / 442 MB, free: 11.2 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005549/0.2829, allocations: 76.06 kB / 442.1 MB, free: 11.12 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.958e-05/0.283, allocations: 19.98 kB / 442.1 MB, free: 11.11 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 6
 * Number of states: 0 ()
 * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (46):
 * Single equations (assignments): 43
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,1,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(2,16)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002746/0.2832, allocations: 161.7 kB / 442.3 MB, free: 10.94 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.953e-05/0.2833, allocations: 35.77 kB / 442.3 MB, free: 10.9 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.2851, allocations: 0.7208 MB / 443 MB, free: 10.17 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2851, allocations: 4 kB / 443 MB, free: 10.16 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2851, allocations: 11.88 kB / 443 MB, free: 10.15 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.2851, allocations: 7.984 kB / 443 MB, free: 10.14 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.2876, allocations: 1.214 MB / 444.2 MB, free: 8.867 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.2876, allocations: 3.984 kB / 444.3 MB, free: 8.863 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.2879, allocations: 59.91 kB / 444.3 MB, free: 8.805 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.289, allocations: 0.5255 MB / 444.8 MB, free: 8.27 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.289, allocations: 23.97 kB / 444.9 MB, free: 8.246 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/0.2925, allocations: 3.425 MB / 448.3 MB, free: 4.566 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2925, allocations: 0 / 448.3 MB, free: 4.566 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.2947, allocations: 1.014 MB / 449.3 MB, free: 3.531 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.2949, allocations: 95.66 kB / 449.4 MB, free: 3.438 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.517e-05/0.295, allocations: 23.98 kB / 449.4 MB, free: 3.414 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.2955, allocations: 71.84 kB / 449.5 MB, free: 3.344 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.2957, allocations: 88.25 kB / 449.6 MB, free: 3.258 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.074e-05/0.2958, allocations: 27.98 kB / 449.6 MB, free: 3.23 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001963/0.2959, allocations: 181.2 kB / 449.8 MB, free: 3.051 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.2959, allocations: 0 / 449.8 MB, free: 3.051 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0005349/0.2965, allocations: 120 kB / 449.9 MB, free: 2.934 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel)
 * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode)
 * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (31):
 * Single equations (assignments): 28
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,1,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(2,16)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002771/0.2968, allocations: 141 kB / 450 MB, free: 2.785 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001816/0.2986, allocations: 0.7663 MB / 450.8 MB, free: 1.996 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2986, allocations: 0 / 450.8 MB, free: 1.996 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0009968/0.2996, allocations: 0.5255 MB / 451.3 MB, free: 1.441 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.3001, allocations: 52.47 kB / 451.4 MB, free: 1.391 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.3022, allocations: 0.9913 MB / 452.4 MB, free: 380 kB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.3027, allocations: 0.7957 MB / 453.2 MB, free: 15.55 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001342/0.3028, allocations: 35.27 kB / 453.2 MB, free: 15.52 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.353e-05/0.3029, allocations: 31.44 kB / 453.2 MB, free: 15.48 MB / 366.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.3029, allocations: 0 / 453.2 MB, free: 15.48 MB / 366.1 MB
Notification: Performance of Templates: time 0.0186/0.3215, allocations: 10.52 MB / 463.7 MB, free: 4.996 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.691182715818286]