Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001505/0.001505, allocations: 106.2 kB / 21.18 MB, free: 0.6992 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.001908/0.001908, allocations: 179.9 kB / 24.46 MB, free: 4.059 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 59.91 kB / 347.6 MB, free: 9.574 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2989, allocations: 49.16 MB / 396.8 MB, free: 9.516 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004374/0.3032, allocations: 2.829 MB / 399.6 MB, free: 7.539 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001837/0.3051, allocations: 0.9482 MB / 400.6 MB, free: 6.867 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.3052, allocations: 8.438 kB / 400.6 MB, free: 6.863 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.3055, allocations: 55.06 kB / 400.6 MB, free: 6.832 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000232/0.3057, allocations: 116.8 kB / 400.8 MB, free: 6.75 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.3062, allocations: 209.7 kB / 401 MB, free: 6.645 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000572/0.3068, allocations: 0.5743 MB / 401.5 MB, free: 6.375 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.3069, allocations: 84.48 kB / 401.6 MB, free: 6.324 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.3072, allocations: 255.3 kB / 401.9 MB, free: 6.215 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000351/0.3076, allocations: 278.5 kB / 402.1 MB, free: 6.094 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.358e-05/0.3076, allocations: 48.53 kB / 402.2 MB, free: 6.09 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.3078, allocations: 104.5 kB / 402.3 MB, free: 6.066 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000115/0.3079, allocations: 107.3 kB / 402.4 MB, free: 6 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.3081, allocations: 227.9 kB / 402.6 MB, free: 5.859 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006105/0.3087, allocations: 0.5341 MB / 403.2 MB, free: 5.652 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3087, allocations: 0.9688 kB / 403.2 MB, free: 5.652 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.203e-06/0.3087, allocations: 0 / 403.2 MB, free: 5.652 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 8.275e-06/0.3087, allocations: 0 / 403.2 MB, free: 5.652 MB / 318.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.001309/0.31, allocations: 0.6728 MB / 403.8 MB, free: 5.188 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3101, allocations: 12.86 kB / 403.8 MB, free: 5.184 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.3102, allocations: 45.66 kB / 403.9 MB, free: 5.16 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.3106, allocations: 250.2 kB / 404.1 MB, free: 4.961 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.3106, allocations: 26.5 kB / 404.2 MB, free: 4.949 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.3107, allocations: 39.75 kB / 404.2 MB, free: 4.934 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008306/0.3115, allocations: 441.3 kB / 404.6 MB, free: 4.766 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.3116, allocations: 2.672 kB / 404.6 MB, free: 4.766 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.3116, allocations: 14.16 kB / 404.6 MB, free: 4.754 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.3116, allocations: 12.19 kB / 404.7 MB, free: 4.75 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009145/0.3125, allocations: 460.8 kB / 405.1 MB, free: 4.617 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.3146, allocations: 1.179 MB / 406.3 MB, free: 3.965 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000744/0.3154, allocations: 350.6 kB / 406.6 MB, free: 3.828 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004425/0.3158, allocations: 228.1 kB / 406.8 MB, free: 3.742 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.459e-05/0.3159, allocations: 9.844 kB / 406.9 MB, free: 3.738 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.3159, allocations: 41.16 kB / 406.9 MB, free: 3.691 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=45): time 1.442e-06/0.3159, allocations: 0 / 406.9 MB, free: 3.691 MB / 318.1 MB
Notification: Performance of matching and sorting (n=49): time 0.00474/0.3206, allocations: 1.968 MB / 408.9 MB, free: 2.781 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/0.3207, allocations: 56.44 kB / 408.9 MB, free: 2.719 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002509/0.3209, allocations: 248.5 kB / 409.2 MB, free: 2.551 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.159e-05/0.321, allocations: 42.05 kB / 409.2 MB, free: 2.508 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.591e-05/0.3211, allocations: 170.3 kB / 409.4 MB, free: 2.348 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.3212, allocations: 179.2 kB / 409.5 MB, free: 2.191 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.3213, allocations: 101.2 kB / 409.6 MB, free: 2.125 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 6.964e-05/0.3214, allocations: 342.1 kB / 410 MB, free: 1.789 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004576/0.3219, allocations: 240.2 kB / 410.2 MB, free: 1.672 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/0.3223, allocations: 301 kB / 410.5 MB, free: 1.496 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007934/0.3231, allocations: 416 kB / 410.9 MB, free: 1.273 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3231, allocations: 0 / 410.9 MB, free: 1.273 MB / 318.1 MB
Notification: Performance of matching and sorting (n=65) (initialization): time 0.001491/0.3246, allocations: 0.7474 MB / 411.7 MB, free: 0.8906 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.3247, allocations: 4.969 kB / 411.7 MB, free: 0.8906 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3247, allocations: 3.688 kB / 411.7 MB, free: 0.8906 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0009958/0.3257, allocations: 0.5496 MB / 412.2 MB, free: 0.625 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.3259, allocations: 69.64 kB / 412.3 MB, free: 0.6094 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003333/0.3293, allocations: 3.455 MB / 415.7 MB, free: 13.27 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006346/0.3299, allocations: 79.08 kB / 415.8 MB, free: 13.23 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.33, allocations: 17.81 kB / 415.8 MB, free: 13.23 MB / 334.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.0003611/0.3303, allocations: 166.5 kB / 416 MB, free: 13.08 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.957e-05/0.3304, allocations: 31.94 kB / 416 MB, free: 13.06 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.3321, allocations: 0.7197 MB / 416.8 MB, free: 12.64 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3321, allocations: 4.594 kB / 416.8 MB, free: 12.64 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3321, allocations: 5.062 kB / 416.8 MB, free: 12.64 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.3321, allocations: 4.984 kB / 416.8 MB, free: 12.64 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.3345, allocations: 1.212 MB / 418 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3345, allocations: 1.125 kB / 418 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.3348, allocations: 62.02 kB / 418 MB, free: 11.79 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/0.3358, allocations: 0.5308 MB / 418.6 MB, free: 11.54 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.3358, allocations: 21.47 kB / 418.6 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003406/0.3392, allocations: 3.416 MB / 422 MB, free: 8.211 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3392, allocations: 0 / 422 MB, free: 8.211 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.3418, allocations: 1.027 MB / 423 MB, free: 7.617 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003286/0.3421, allocations: 85.98 kB / 423.1 MB, free: 7.555 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.3422, allocations: 13.31 kB / 423.1 MB, free: 7.547 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.3427, allocations: 80.58 kB / 423.2 MB, free: 7.504 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/0.343, allocations: 87.83 kB / 423.3 MB, free: 7.445 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.343, allocations: 26.81 kB / 423.3 MB, free: 7.43 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002551/0.3433, allocations: 182.6 kB / 423.5 MB, free: 7.301 MB / 334.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.3433, allocations: 1.281 kB / 423.5 MB, free: 7.301 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0008278/0.3441, allocations: 117.8 kB / 423.6 MB, free: 7.289 MB / 334.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.0004079/0.3445, allocations: 138.9 kB / 423.8 MB, free: 7.172 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.002034/0.3466, allocations: 0.7713 MB / 424.5 MB, free: 6.695 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3466, allocations: 0 / 424.5 MB, free: 6.695 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3477, allocations: 0.5164 MB / 425 MB, free: 6.188 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007778/0.3485, allocations: 64.56 kB / 425.1 MB, free: 6.125 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.3509, allocations: 0.9773 MB / 426.1 MB, free: 5.121 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.3514, allocations: 0.7996 MB / 426.9 MB, free: 4.293 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001679/0.3515, allocations: 31.28 kB / 426.9 MB, free: 4.266 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.703e-05/0.3516, allocations: 27.44 kB / 426.9 MB, free: 4.238 MB / 334.1 MB
Notification: Performance of SimCode: time 1.883e-06/0.3516, allocations: 8 kB / 426.9 MB, free: 4.23 MB / 334.1 MB
Notification: Performance of Templates: time 0.02176/0.3734, allocations: 10.52 MB / 437.5 MB, free: 9.695 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.07932536303997]