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.0009791/0.0009791, allocations: 78.19 kB / 21.42 MB, free: 3.074 MB / 18.57 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.0009845/0.0009845, allocations: 149.6 kB / 24.81 MB, free: 8.883 MB / 18.57 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 0.9816/0.9816, allocations: 173.4 MB / 201.5 MB, free: 8.293 MB / 186.7 MB " [Timeout remaining time 179] 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 1.623e-06/1.623e-06, allocations: 0 / 268.4 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.375e-05/2.537e-05, allocations: 2.312 kB / 268.4 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004278/0.004304, allocations: 2.8 MB / 271.2 MB, free: 6.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.005576, allocations: 0.8719 MB / 272.1 MB, free: 6.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.005718, allocations: 8.656 kB / 272.1 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.00591, allocations: 55.44 kB / 272.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.006103, allocations: 118.2 kB / 272.3 MB, free: 5.914 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.006501, allocations: 223.5 kB / 272.5 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.006921, allocations: 0.5819 MB / 273.1 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.007076, allocations: 71.05 kB / 273.1 MB, free: 5.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.007381, allocations: 347.8 kB / 273.5 MB, free: 4.699 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000261/0.007642, allocations: 235.4 kB / 273.7 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.187e-05/0.007704, allocations: 48 kB / 273.7 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.007841, allocations: 87.95 kB / 273.8 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.159e-05/0.007932, allocations: 119.6 kB / 273.9 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.00804, allocations: 163.6 kB / 274.1 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003778/0.008417, allocations: 430.6 kB / 274.5 MB, free: 3.637 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.00842, allocations: 0 / 274.5 MB, free: 3.637 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.008421, allocations: 0 / 274.5 MB, free: 3.637 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.008425, allocations: 0 / 274.5 MB, free: 3.637 MB / 250.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.0007958/0.009221, allocations: 0.7454 MB / 275.3 MB, free: 2.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.009258, allocations: 12.02 kB / 275.3 MB, free: 2.844 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.293e-05/0.00935, allocations: 68.7 kB / 275.3 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.009608, allocations: 251.4 kB / 275.6 MB, free: 2.508 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.009636, allocations: 29.38 kB / 275.6 MB, free: 2.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.927e-05/0.009685, allocations: 40.31 kB / 275.7 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003851/0.01007, allocations: 323.5 kB / 276 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.01009, allocations: 8.125 kB / 276 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.01011, allocations: 12.38 kB / 276 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.01012, allocations: 11.94 kB / 276 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.01039, allocations: 218.8 kB / 276.2 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.01164, allocations: 0.9882 MB / 277.2 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.012, allocations: 226.8 kB / 277.4 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.01213, allocations: 128.1 kB / 277.6 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.01217, allocations: 12.38 kB / 277.6 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.01219, allocations: 41.7 kB / 277.6 MB, free: 424 kB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.493e-06/0.01219, allocations: 0 / 277.6 MB, free: 424 kB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.00206/0.01425, allocations: 1.351 MB / 279 MB, free: 14.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.01428, allocations: 59.91 kB / 279 MB, free: 14.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.01443, allocations: 284.2 kB / 279.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.01446, allocations: 41.7 kB / 279.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.162e-05/0.01455, allocations: 223.4 kB / 279.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.314e-05/0.01464, allocations: 170.6 kB / 279.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.01476, allocations: 103.9 kB / 279.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.01489, allocations: 0.5195 MB / 280.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.01504, allocations: 113.2 kB / 280.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.01522, allocations: 201 kB / 280.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.01547, allocations: 252 kB / 280.9 MB, free: 12.94 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01547, allocations: 0 / 280.9 MB, free: 12.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006209/0.01609, allocations: 0.5079 MB / 281.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.01611, allocations: 4 kB / 281.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.01611, allocations: 4 kB / 281.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005972/0.01671, allocations: 464.5 kB / 281.9 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.01686, allocations: 67.91 kB / 281.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.01881, allocations: 4.425 MB / 286.4 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.01899, allocations: 47.95 kB / 286.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.01902, allocations: 15.98 kB / 286.4 MB, free: 7.129 MB / 266.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.0001337/0.01915, allocations: 184.6 kB / 286.6 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.01922, allocations: 59.7 kB / 286.7 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006096/0.01983, allocations: 496.3 kB / 287.1 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.01984, allocations: 11.98 kB / 287.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.01984, allocations: 0 / 287.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.01984, allocations: 4 kB / 287.2 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009821/0.02082, allocations: 0.8656 MB / 288 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.02083, allocations: 0 / 288 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.02096, allocations: 47.97 kB / 288.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005339/0.0215, allocations: 480.5 kB / 288.5 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.02153, allocations: 19.97 kB / 288.6 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.0233, allocations: 4.425 MB / 293 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.0233, allocations: 0 / 293 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007593/0.02406, allocations: 0.7155 MB / 293.7 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.02419, allocations: 79.89 kB / 293.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.02423, allocations: 16 kB / 293.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.02441, allocations: 51.94 kB / 293.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.02454, allocations: 96.31 kB / 293.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.02456, allocations: 19.97 kB / 294 MB, free: 15.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.619e-05/0.02465, allocations: 193.1 kB / 294.1 MB, free: 15.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02465, allocations: 0 / 294.1 MB, free: 15.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003538/0.025, allocations: 127.9 kB / 294.3 MB, free: 14.89 MB / 282.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.0001833/0.02519, allocations: 139.2 kB / 294.4 MB, free: 14.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006645/0.02585, allocations: 0.6928 MB / 295.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.02585, allocations: 4 kB / 295.1 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.02623, allocations: 0.5523 MB / 295.7 MB, free: 13.42 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.02657, allocations: 96.42 kB / 295.7 MB, free: 13.33 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.02786, allocations: 0.8448 MB / 296.6 MB, free: 12.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.337e-05/0.02792, allocations: 109.2 kB / 296.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.871e-05/0.028, allocations: 26.98 kB / 296.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.02814, allocations: 138.1 kB / 296.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of SimCode: time 1.222e-06/0.02814, allocations: 0 / 296.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of Templates: time 0.01091/0.03905, allocations: 9.481 MB / 306.3 MB, free: 2.789 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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","",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.8661189461126924]