Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.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.001222/0.001222, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001393/0.002615, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001101/0.001101, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001592/0.002694, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9836/0.9836, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09085/1.074, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 244.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.33e-05, allocations: 5.828 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003505/0.003529, allocations: 3.217 MB / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.004613, allocations: 0.7782 MB / 248.7 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/0.004806, allocations: 11.94 kB / 248.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.004994, allocations: 79.19 kB / 248.8 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.005117, allocations: 87.11 kB / 248.9 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.005587, allocations: 279.4 kB / 249.1 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000429/0.006016, allocations: 0.6127 MB / 249.7 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.006291, allocations: 236 kB / 250 MB, free: 8.941 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002891/0.00658, allocations: 389 kB / 250.4 MB, free: 8.559 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.006816, allocations: 195.4 kB / 250.5 MB, free: 8.367 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.812e-05/0.006884, allocations: 72 kB / 250.6 MB, free: 8.297 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.898e-05/0.006943, allocations: 72 kB / 250.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.007057, allocations: 115.7 kB / 250.8 MB, free: 8.113 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.007171, allocations: 151.7 kB / 250.9 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.007528, allocations: 398.5 kB / 251.3 MB, free: 7.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.007536, allocations: 4 kB / 251.3 MB, free: 7.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.007537, allocations: 0 / 251.3 MB, free: 7.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.007547, allocations: 0 / 251.3 MB, free: 7.57 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.0008478/0.008395, allocations: 0.8212 MB / 252.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.008425, allocations: 12.03 kB / 252.2 MB, free: 6.703 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.885e-05/0.008513, allocations: 80.88 kB / 252.2 MB, free: 6.625 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.008801, allocations: 268.4 kB / 252.5 MB, free: 6.34 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-05/0.008871, allocations: 93.28 kB / 252.6 MB, free: 6.238 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.51e-05/0.008926, allocations: 52.38 kB / 252.7 MB, free: 6.188 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007519/0.009678, allocations: 0.6789 MB / 253.3 MB, free: 5.457 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.009695, allocations: 8.125 kB / 253.3 MB, free: 5.449 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/0.009723, allocations: 20.38 kB / 253.4 MB, free: 5.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.009733, allocations: 16.12 kB / 253.4 MB, free: 5.414 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.009922, allocations: 142.5 kB / 253.5 MB, free: 5.273 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.0111, allocations: 1.224 MB / 254.7 MB, free: 3.996 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.01165, allocations: 344 kB / 255.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.01178, allocations: 118.3 kB / 255.2 MB, free: 3.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.01181, allocations: 20.22 kB / 255.2 MB, free: 3.48 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001292/0.01194, allocations: 171.9 kB / 255.4 MB, free: 3.285 MB / 250.7 MB Notification: Performance of pre-optimization done (n=57): time 1.453e-06/0.01194, allocations: 4 kB / 255.4 MB, free: 3.281 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.0003618/0.0123, allocations: 285.4 kB / 255.7 MB, free: 2.996 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.01236, allocations: 154.3 kB / 255.8 MB, free: 2.816 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.01249, allocations: 236.9 kB / 256 MB, free: 2.57 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.01252, allocations: 37.7 kB / 256.1 MB, free: 2.527 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.0126, allocations: 193.8 kB / 256.3 MB, free: 2.332 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/0.01266, allocations: 127 kB / 256.4 MB, free: 2.207 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.01273, allocations: 78.34 kB / 256.5 MB, free: 2.125 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.319e-05/0.01282, allocations: 350.7 kB / 256.8 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.028e-05/0.01287, allocations: 40.97 kB / 256.9 MB, free: 1.734 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.01299, allocations: 209.6 kB / 257.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.01318, allocations: 245 kB / 257.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.01318, allocations: 4 kB / 257.3 MB, free: 1.168 MB / 250.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002406/0.01342, allocations: 245.2 kB / 257.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.01344, allocations: 11.94 kB / 257.6 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.01344, allocations: 7.984 kB / 257.6 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.01346, allocations: 4 kB / 257.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.01369, allocations: 99.89 kB / 257.7 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.0137, allocations: 20.33 kB / 257.7 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.0138, allocations: 35.78 kB / 257.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.01382, allocations: 16 kB / 257.7 MB, free: 0.7305 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.cylinderAirCharge.integrator.local_reset,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.u_buffer[1],engine.crankshaftPositionEvent.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des) * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.01395, allocations: 155 kB / 257.9 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.0141, allocations: 145.5 kB / 258 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001956/0.01429, allocations: 172.7 kB / 258.2 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.0143, allocations: 8 kB / 258.2 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.0143, allocations: 3.938 kB / 258.2 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.01431, allocations: 8.016 kB / 258.2 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.01474, allocations: 470.7 kB / 258.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.01474, allocations: 0 / 258.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.01501, allocations: 115.9 kB / 258.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.01504, allocations: 39.64 kB / 258.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.01505, allocations: 7.938 kB / 258.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.01507, allocations: 15.98 kB / 258.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.01508, allocations: 4.078 kB / 258.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.01508, allocations: 3.984 kB / 258.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.01534, allocations: 315.3 kB / 259.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.01538, allocations: 15.98 kB / 259.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.01548, allocations: 19.94 kB / 259.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.01552, allocations: 23.95 kB / 259.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.01554, allocations: 11.94 kB / 259.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.209e-05/0.01559, allocations: 78.77 kB / 259.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01559, allocations: 0 / 259.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002182/0.01581, allocations: 103.7 kB / 259.4 MB, free: 14.98 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (engine.throttleBody.m_ai,engine.intakeManifold.P_m,engine.cylinderAirCharge.integrator.y,engine.inertia.w,derivative.u) * Number of discrete variables: 10 (engine.crankshaftPositionEvent.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 6 (speedControl.N_des,speedControl.N,speedControl.x_d,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.delay.u_buffer[1],engine.inductionToPowerDelay.delay.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001157/0.01592, allocations: 110.3 kB / 259.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002699/0.01619, allocations: 205 kB / 259.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/0.0162, allocations: 4 kB / 259.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.686e-05/0.0163, allocations: 94.09 kB / 259.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.01672, allocations: 348.9 kB / 260.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.01922, allocations: 0.8856 MB / 261 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.71e-05/0.01931, allocations: 141.7 kB / 261.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.01942, allocations: 34.97 kB / 261.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.01957, allocations: 107.3 kB / 261.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01957, allocations: 0 / 261.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of Templates: time 0.0075/0.02707, allocations: 4.355 MB / 265.7 MB, free: 8.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7628712309524417]