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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 85.95 kB / 23 MB, free: 1.5 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 180.8 kB / 26.4 MB, free: 7.984 MB / 18.57 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 0.8968/0.8968, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.638e-05/1.826e-05, allocations: 2.312 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003224/0.003242, allocations: 2.803 MB / 255 MB, free: 4.438 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.004817, allocations: 0.9163 MB / 256 MB, free: 3.512 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.005037, allocations: 11.88 kB / 256 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002692/0.005307, allocations: 59.44 kB / 256 MB, free: 3.441 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.005582, allocations: 111 kB / 256.1 MB, free: 3.332 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000594/0.006176, allocations: 227.5 kB / 256.4 MB, free: 3.109 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005064/0.006682, allocations: 0.581 MB / 256.9 MB, free: 2.527 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.006857, allocations: 75.05 kB / 257 MB, free: 2.453 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/0.00722, allocations: 347.3 kB / 257.4 MB, free: 2.113 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/0.007472, allocations: 227.4 kB / 257.6 MB, free: 1.891 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.372e-05/0.007526, allocations: 44 kB / 257.6 MB, free: 1.844 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.00766, allocations: 91.95 kB / 257.7 MB, free: 1.754 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.044e-05/0.007751, allocations: 119.6 kB / 257.8 MB, free: 1.637 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.007858, allocations: 159.6 kB / 258 MB, free: 1.48 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003801/0.008238, allocations: 446.5 kB / 258.4 MB, free: 1.043 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.00824, allocations: 0 / 258.4 MB, free: 1.043 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.00824, allocations: 0 / 258.4 MB, free: 1.043 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.008246, allocations: 0 / 258.4 MB, free: 1.043 MB / 234.7 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.0008405/0.009087, allocations: 0.7377 MB / 259.2 MB, free: 272 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.009133, allocations: 15.98 kB / 259.2 MB, free: 256 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.009242, allocations: 72.66 kB / 259.2 MB, free: 184 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.009533, allocations: 251.6 kB / 259.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/0.009563, allocations: 29.38 kB / 259.5 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.009614, allocations: 32.33 kB / 259.5 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003911/0.01001, allocations: 319.6 kB / 259.9 MB, free: 15.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.01002, allocations: 12.12 kB / 259.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.01005, allocations: 12.38 kB / 259.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.01006, allocations: 11.94 kB / 259.9 MB, free: 15.49 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.01035, allocations: 214.8 kB / 260.1 MB, free: 15.28 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.01157, allocations: 0.992 MB / 261.1 MB, free: 14.24 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.01193, allocations: 232.7 kB / 261.3 MB, free: 14 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.01208, allocations: 123.2 kB / 261.4 MB, free: 13.88 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.01211, allocations: 8.375 kB / 261.5 MB, free: 13.87 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.01213, allocations: 45.7 kB / 261.5 MB, free: 13.82 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.923e-06/0.01214, allocations: 0 / 261.5 MB, free: 13.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.002062/0.0142, allocations: 1.345 MB / 262.8 MB, free: 12.4 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.01423, allocations: 63.91 kB / 262.9 MB, free: 12.33 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.01438, allocations: 284.2 kB / 263.2 MB, free: 12.03 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.01442, allocations: 41.69 kB / 263.2 MB, free: 11.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.01452, allocations: 223.6 kB / 263.4 MB, free: 11.76 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.01463, allocations: 174.5 kB / 263.6 MB, free: 11.59 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.01475, allocations: 103.9 kB / 263.7 MB, free: 11.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.01488, allocations: 0.5156 MB / 264.2 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.01504, allocations: 113.2 kB / 264.3 MB, free: 10.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.01522, allocations: 197 kB / 264.5 MB, free: 10.62 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.01546, allocations: 256 kB / 264.8 MB, free: 10.35 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01547, allocations: 0 / 264.8 MB, free: 10.35 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006369/0.0161, allocations: 0.5041 MB / 265.3 MB, free: 9.828 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.01612, allocations: 4 kB / 265.3 MB, free: 9.824 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.01612, allocations: 4 kB / 265.3 MB, free: 9.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005849/0.01671, allocations: 466.5 kB / 265.7 MB, free: 9.355 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.01685, allocations: 67.91 kB / 265.8 MB, free: 9.289 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.01885, allocations: 4.412 MB / 270.2 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.01905, allocations: 59.97 kB / 270.3 MB, free: 4.562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.01907, allocations: 23.92 kB / 270.3 MB, free: 4.539 MB / 250.7 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.0001341/0.01921, allocations: 188.4 kB / 270.5 MB, free: 4.344 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.021e-05/0.01928, allocations: 51.75 kB / 270.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006049/0.01988, allocations: 0.4886 MB / 271 MB, free: 3.781 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.01989, allocations: 4 kB / 271 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.01989, allocations: 0 / 271 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.0199, allocations: 3.984 kB / 271 MB, free: 3.773 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009582/0.02086, allocations: 0.8696 MB / 271.9 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.02086, allocations: 3.938 kB / 271.9 MB, free: 2.859 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.02101, allocations: 51.97 kB / 272 MB, free: 2.809 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005356/0.02154, allocations: 482.4 kB / 272.4 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.02157, allocations: 15.98 kB / 272.4 MB, free: 2.309 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.02346, allocations: 4.405 MB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.02347, allocations: 0 / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007761/0.02424, allocations: 0.7193 MB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.02436, allocations: 83.62 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.02441, allocations: 16 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.02459, allocations: 52 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.02473, allocations: 92.31 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.02476, allocations: 19.97 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001019/0.02486, allocations: 189.1 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02486, allocations: 0 / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003623/0.02522, allocations: 124 kB / 278.1 MB, free: 12.32 MB / 266.7 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.0001838/0.02541, allocations: 151.1 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006748/0.02608, allocations: 0.684 MB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.02608, allocations: 4 kB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.02649, allocations: 0.5603 MB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.02681, allocations: 88.23 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.02812, allocations: 0.8297 MB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.995e-05/0.02819, allocations: 105.3 kB / 280.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.393e-05/0.02827, allocations: 30.97 kB / 280.6 MB, free: 9.742 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.02841, allocations: 138.2 kB / 280.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02841, allocations: 0 / 280.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of Templates: time 0.01092/0.03933, allocations: 9.635 MB / 290.4 MB, free: 0 / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.923380431253463]