Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001669/0.001669, allocations: 110.5 kB / 21.23 MB, free: 0.5117 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.002021/0.002021, allocations: 209.9 kB / 24.53 MB, free: 3.891 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.46/1.46, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [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.002874/0.002874, allocations: 63.89 kB / 379 MB, free: 2.652 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2647, allocations: 53.37 MB / 432.4 MB, free: 6.945 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004971/0.2697, allocations: 2.984 MB / 435.4 MB, free: 3.953 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002354/0.272, allocations: 1.076 MB / 436.5 MB, free: 2.871 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002142/0.2722, allocations: 7.938 kB / 436.5 MB, free: 2.863 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.2725, allocations: 75.36 kB / 436.5 MB, free: 2.789 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004007/0.2729, allocations: 158.9 kB / 436.7 MB, free: 2.633 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.2733, allocations: 191.7 kB / 436.9 MB, free: 2.445 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006297/0.2739, allocations: 0.5969 MB / 437.5 MB, free: 1.844 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.2742, allocations: 86.62 kB / 437.6 MB, free: 1.762 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003726/0.2745, allocations: 279.2 kB / 437.8 MB, free: 1.488 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004308/0.275, allocations: 287 kB / 438.1 MB, free: 1.207 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.48e-05/0.275, allocations: 48 kB / 438.2 MB, free: 1.16 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.2753, allocations: 99.97 kB / 438.3 MB, free: 1.062 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.2755, allocations: 135.6 kB / 438.4 MB, free: 0.9297 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002567/0.2757, allocations: 230.9 kB / 438.6 MB, free: 0.7031 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000741/0.2765, allocations: 0.5827 MB / 439.2 MB, free: 124 kB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.2765, allocations: 3.984 kB / 439.2 MB, free: 120 kB / 334.1 MB
Notification: Performance of FrontEnd: time 2.054e-06/0.2765, allocations: 4 kB / 439.2 MB, free: 116 kB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.898e-06/0.2765, allocations: 0 / 439.2 MB, free: 116 kB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 88
 * Number of variables: 88
Notification: Performance of Generate backend data structure: time 0.001593/0.2781, allocations: 0.7079 MB / 439.9 MB, free: 15.37 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.2781, allocations: 16.03 kB / 439.9 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.2782, allocations: 44.66 kB / 440 MB, free: 15.31 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005333/0.2788, allocations: 268.7 kB / 440.2 MB, free: 15.02 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.2788, allocations: 33.36 kB / 440.3 MB, free: 14.99 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.2789, allocations: 40.31 kB / 440.3 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009037/0.2798, allocations: 442.6 kB / 440.7 MB, free: 14.52 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.2798, allocations: 3.953 kB / 440.7 MB, free: 14.51 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-05/0.2798, allocations: 20 kB / 440.8 MB, free: 14.49 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.2799, allocations: 8 kB / 440.8 MB, free: 14.48 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.2809, allocations: 443.7 kB / 441.2 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/0.2833, allocations: 1.21 MB / 442.4 MB, free: 12.79 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/0.2842, allocations: 386 kB / 442.8 MB, free: 12.4 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005105/0.2847, allocations: 226.1 kB / 443 MB, free: 12.18 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.039e-05/0.2848, allocations: 4.438 kB / 443 MB, free: 12.17 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.2848, allocations: 39 kB / 443.1 MB, free: 12.12 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=50): time 1.664e-06/0.2848, allocations: 0 / 443.1 MB, free: 12.12 MB / 350.1 MB
Notification: Performance of matching and sorting (n=54): time 0.00541/0.2902, allocations: 1.959 MB / 445 MB, free: 10.1 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.2902, allocations: 59.78 kB / 445.1 MB, free: 10.03 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.2906, allocations: 269.9 kB / 445.3 MB, free: 9.762 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.007e-05/0.2906, allocations: 41.69 kB / 445.4 MB, free: 9.715 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.2908, allocations: 176.9 kB / 445.5 MB, free: 9.535 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.2909, allocations: 186.5 kB / 445.7 MB, free: 9.352 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.2911, allocations: 102.3 kB / 445.8 MB, free: 9.246 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.000165/0.2913, allocations: 342.8 kB / 446.2 MB, free: 8.902 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005042/0.2918, allocations: 221.1 kB / 446.4 MB, free: 8.688 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/0.2923, allocations: 292.1 kB / 446.7 MB, free: 8.387 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008624/0.2932, allocations: 398.8 kB / 447.1 MB, free: 7.977 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2932, allocations: 0 / 447.1 MB, free: 7.977 MB / 350.1 MB
Notification: Performance of matching and sorting (n=68) (initialization): time 0.001683/0.2949, allocations: 0.7221 MB / 447.8 MB, free: 7.238 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.2949, allocations: 6.656 kB / 447.8 MB, free: 7.234 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2949, allocations: 4 kB / 447.8 MB, free: 7.23 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.296, allocations: 426.4 kB / 448.2 MB, free: 6.805 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.2963, allocations: 63.89 kB / 448.3 MB, free: 6.742 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/0.2996, allocations: 3.45 MB / 451.7 MB, free: 3.035 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005072/0.3001, allocations: 80 kB / 451.8 MB, free: 2.957 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.3002, allocations: 19.98 kB / 451.8 MB, free: 2.938 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 (44):
 * Single equations (assignments): 41
 * 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,21)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002689/0.3004, allocations: 165.7 kB / 452 MB, free: 2.766 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.772e-05/0.3005, allocations: 35.77 kB / 452 MB, free: 2.73 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.3022, allocations: 0.7146 MB / 452.7 MB, free: 2.004 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3022, allocations: 4 kB / 452.7 MB, free: 2 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3022, allocations: 0 / 452.7 MB, free: 2 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3023, allocations: 4 kB / 452.7 MB, free: 1.996 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.3047, allocations: 1.248 MB / 454 MB, free: 0.6875 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3047, allocations: 0 / 454 MB, free: 0.6875 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.305, allocations: 59.91 kB / 454 MB, free: 0.6289 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.306, allocations: 409.9 kB / 454.4 MB, free: 228 kB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.3061, allocations: 19.92 kB / 454.5 MB, free: 208 kB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/0.3094, allocations: 3.412 MB / 457.9 MB, free: 12.54 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3094, allocations: 0 / 457.9 MB, free: 12.54 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.3115, allocations: 1.016 MB / 458.9 MB, free: 11.5 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002406/0.3118, allocations: 83.73 kB / 459 MB, free: 11.42 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.365e-05/0.3119, allocations: 12 kB / 459 MB, free: 11.41 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005083/0.3124, allocations: 79.89 kB / 459.1 MB, free: 11.33 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.3126, allocations: 100.2 kB / 459.2 MB, free: 11.23 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-05/0.3127, allocations: 23.97 kB / 459.2 MB, free: 11.21 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002353/0.3129, allocations: 193.2 kB / 459.4 MB, free: 11.02 MB / 366.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3129, allocations: 0 / 459.4 MB, free: 11.02 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005145/0.3134, allocations: 119.9 kB / 459.5 MB, free: 10.9 MB / 366.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,21)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001358/0.3148, allocations: 381.9 kB / 459.9 MB, free: 10.65 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001753/0.3165, allocations: 0.76 MB / 460.6 MB, free: 9.863 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3165, allocations: 0 / 460.6 MB, free: 9.863 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000986/0.3175, allocations: 0.5142 MB / 461.1 MB, free: 9.32 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005539/0.3181, allocations: 79.3 kB / 461.2 MB, free: 9.246 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.3203, allocations: 1.024 MB / 462.2 MB, free: 8.195 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/0.3208, allocations: 0.8085 MB / 463 MB, free: 7.355 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001624/0.321, allocations: 35.28 kB / 463.1 MB, free: 7.324 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.3211, allocations: 35.42 kB / 463.1 MB, free: 7.289 MB / 366.1 MB
Notification: Performance of SimCode: time 7.81e-07/0.3211, allocations: 0 / 463.1 MB, free: 7.289 MB / 366.1 MB
Notification: Performance of Templates: time 0.01987/0.341, allocations: 10.6 MB / 473.7 MB, free: 12.74 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.829324369318783]