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.000884/0.000884, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0008703/0.0008703, allocations: 140.9 kB / 24.89 MB, free: 9.203 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.9991/0.9991, allocations: 173.4 MB / 201.5 MB, free: 9.188 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 2.184e-06/2.184e-06, allocations: 0 / 268.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.532e-05/2.75e-05, allocations: 2.312 kB / 268.5 MB, free: 6.152 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003934/0.003961, allocations: 2.843 MB / 271.3 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.005062, allocations: 0.9151 MB / 272.3 MB, free: 2.367 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.005179, allocations: 4 kB / 272.3 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.005362, allocations: 51.45 kB / 272.3 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.005537, allocations: 123 kB / 272.4 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.005871, allocations: 211.5 kB / 272.6 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.006341, allocations: 0.5887 MB / 273.2 MB, free: 1.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.006483, allocations: 79.02 kB / 273.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.006756, allocations: 343.4 kB / 273.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.00698, allocations: 231.4 kB / 273.9 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.007028, allocations: 44 kB / 273.9 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.00717, allocations: 103.9 kB / 274 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.143e-05/0.007252, allocations: 119.6 kB / 274.1 MB, free: 496 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.864e-05/0.00735, allocations: 155.6 kB / 274.3 MB, free: 340 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.007708, allocations: 438.6 kB / 274.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.007712, allocations: 0 / 274.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.007713, allocations: 0 / 274.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.007718, allocations: 0 / 274.7 MB, free: 15.9 MB / 266.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.000689/0.008407, allocations: 0.6246 MB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.008437, allocations: 8.922 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.008507, allocations: 52.89 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.008749, allocations: 216.7 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.008777, allocations: 25.38 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-05/0.008824, allocations: 36.33 kB / 275.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.009183, allocations: 323.6 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.009197, allocations: 192 / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.009222, allocations: 20.36 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.009233, allocations: 15.92 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.009473, allocations: 182.8 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.01071, allocations: 0.774 MB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.01102, allocations: 200.3 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.01114, allocations: 109.3 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.01116, allocations: 8.375 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.01119, allocations: 42.92 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.442e-06/0.01119, allocations: 0 / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.001859/0.01305, allocations: 1.267 MB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.492e-05/0.01307, allocations: 59.91 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.0132, allocations: 225 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.01323, allocations: 49.69 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.718e-05/0.01329, allocations: 156.9 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.418e-05/0.01337, allocations: 174.5 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.01348, allocations: 98.23 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/0.01355, allocations: 346.7 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.01368, allocations: 93.27 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.01383, allocations: 164.1 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.01406, allocations: 254.8 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.01406, allocations: 0 / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004869/0.01455, allocations: 412.9 kB / 280.6 MB, free: 9.758 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.01457, allocations: 11.94 kB / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.01457, allocations: 0 / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005739/0.01514, allocations: 441.1 kB / 281 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.01529, allocations: 67.91 kB / 281.1 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.01693, allocations: 3.021 MB / 284.1 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.01709, allocations: 51.94 kB / 284.2 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.01712, allocations: 12 kB / 284.2 MB, free: 5.957 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.0001076/0.01723, allocations: 148.4 kB / 284.3 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.01728, allocations: 43.94 kB / 284.4 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004935/0.01777, allocations: 420.8 kB / 284.8 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.01778, allocations: 4 kB / 284.8 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.01778, allocations: 4 kB / 284.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.01779, allocations: 4 kB / 284.8 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000751/0.01854, allocations: 0.6558 MB / 285.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01854, allocations: 0 / 285.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.01868, allocations: 59.91 kB / 285.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004894/0.01917, allocations: 442.1 kB / 285.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.01919, allocations: 19.92 kB / 285.9 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.02044, allocations: 3.015 MB / 289 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.02044, allocations: 4 kB / 289 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005655/0.021, allocations: 0.5714 MB / 289.5 MB, free: 308 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.919e-05/0.02109, allocations: 51.72 kB / 289.6 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.02113, allocations: 20 kB / 289.6 MB, free: 236 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.0213, allocations: 52 kB / 289.7 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.02142, allocations: 96.31 kB / 289.8 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.02144, allocations: 15.98 kB / 289.8 MB, free: 72 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.1558/0.1772, allocations: 75.77 kB / 289.8 MB, free: 29.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1772, allocations: 0 / 289.8 MB, free: 29.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004539/0.1777, allocations: 120.6 kB / 290 MB, free: 29.73 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.000192/0.1779, allocations: 129 kB / 290.1 MB, free: 29.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007289/0.1786, allocations: 0.5467 MB / 290.6 MB, free: 29.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.1786, allocations: 3.156 kB / 290.6 MB, free: 29.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003796/0.179, allocations: 441.3 kB / 291.1 MB, free: 29.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.1793, allocations: 81.02 kB / 291.1 MB, free: 29.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.1806, allocations: 0.7695 MB / 291.9 MB, free: 28.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.343e-05/0.1807, allocations: 109.9 kB / 292 MB, free: 28.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1808, allocations: 38.83 kB / 292.1 MB, free: 28.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.181, allocations: 108.9 kB / 292.2 MB, free: 28.75 MB / 266.7 MB Notification: Performance of SimCode: time 1.293e-06/0.181, allocations: 0 / 292.2 MB, free: 28.75 MB / 266.7 MB Notification: Performance of Templates: time 0.01216/0.1931, allocations: 9.357 MB / 301.5 MB, free: 26.2 MB / 266.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 -s gbode -gbm=radauIIA3 -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.9014153690077364]