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.001446/0.001446, allocations: 84.55 kB / 20.68 MB, free: 1.027 MB / 14.72 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.001449/0.001449, allocations: 164.3 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.484/1.484, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.572e-06/1.572e-06, allocations: 0 / 325 MB, free: 408 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/2.996e-05, allocations: 2.281 kB / 325 MB, free: 404 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005026/0.005056, allocations: 3.048 MB / 328.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.00678, allocations: 0.7421 MB / 328.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.007004, allocations: 13.41 kB / 328.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003789/0.007383, allocations: 76.11 kB / 328.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001906/0.007574, allocations: 83.36 kB / 329 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007421/0.008316, allocations: 289.4 kB / 329.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007388/0.009055, allocations: 0.6169 MB / 329.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004293/0.009484, allocations: 225.8 kB / 330.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004596/0.009943, allocations: 353.2 kB / 330.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003397/0.01028, allocations: 198.9 kB / 330.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.01039, allocations: 71.62 kB / 330.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.0105, allocations: 72.16 kB / 330.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.0107, allocations: 144.2 kB / 330.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002335/0.01093, allocations: 184.8 kB / 331.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.01197, allocations: 0.8839 MB / 332 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.01197, allocations: 0 / 332 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01197, allocations: 0 / 332 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.01199, allocations: 0.9688 kB / 332 MB, free: 11.91 MB / 302.1 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.001492/0.01348, allocations: 0.7414 MB / 332.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.01352, allocations: 9.281 kB / 332.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.01364, allocations: 64.88 kB / 332.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.01421, allocations: 329.7 kB / 333.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.01432, allocations: 100.2 kB / 333.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.01444, allocations: 58.7 kB / 333.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.01609, allocations: 0.8972 MB / 334.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.01611, allocations: 9.422 kB / 334.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.615e-05/0.01617, allocations: 24.78 kB / 334.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.01618, allocations: 16.62 kB / 334.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008114/0.017, allocations: 353.9 kB / 334.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002387/0.01938, allocations: 1.49 MB / 336.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.02078, allocations: 0.4997 MB / 336.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.02126, allocations: 240.9 kB / 336.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.927e-05/0.0213, allocations: 6.891 kB / 336.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/0.0217, allocations: 241 kB / 337.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.084e-06/0.0217, allocations: 4 kB / 337.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001396/0.0231, allocations: 0.6018 MB / 337.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.02325, allocations: 181.5 kB / 337.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.02352, allocations: 252.7 kB / 338.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/0.02357, allocations: 35.52 kB / 338.1 MB, free: 7.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.02374, allocations: 214.7 kB / 338.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.02385, allocations: 129.4 kB / 338.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.02399, allocations: 77.16 kB / 338.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.02416, allocations: 337.9 kB / 338.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003036/0.02446, allocations: 129.5 kB / 339 MB, free: 6.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004284/0.02489, allocations: 286.9 kB / 339.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/0.02558, allocations: 388.8 kB / 339.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.02559, allocations: 7.938 kB / 339.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000911/0.0265, allocations: 456.6 kB / 340.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.02652, allocations: 10.81 kB / 340.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.02653, allocations: 4 kB / 340.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.02655, allocations: 7.938 kB / 340.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.02695, allocations: 95.83 kB / 340.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.02697, allocations: 7.984 kB / 340.2 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.02722, allocations: 39.78 kB / 340.3 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.02727, allocations: 23.98 kB / 340.3 MB, free: 5.355 MB / 302.1 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,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,engine.cylinderAirCharge.integrator.local_reset) * 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.0002652/0.02753, allocations: 191.2 kB / 340.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004442/0.02797, allocations: 233.3 kB / 340.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006746/0.02865, allocations: 308.7 kB / 341 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.02866, allocations: 4 kB / 341 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.02866, allocations: 4 kB / 341 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.02867, allocations: 3.984 kB / 341 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.0299, allocations: 0.7208 MB / 341.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.0299, allocations: 0 / 341.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.03043, allocations: 103.8 kB / 341.8 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.03043, allocations: 4 kB / 341.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.03047, allocations: 15.98 kB / 341.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-05/0.03048, allocations: 11.94 kB / 341.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.03049, allocations: 0 / 341.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.032, allocations: 0.8067 MB / 342.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.493e-05/0.03207, allocations: 39.64 kB / 342.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.092e-05/0.03215, allocations: 24.05 kB / 342.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.03241, allocations: 15.98 kB / 342.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.307e-05/0.03249, allocations: 20.02 kB / 342.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.023e-05/0.03253, allocations: 23.97 kB / 342.8 MB, free: 2.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.03272, allocations: 177.2 kB / 343 MB, free: 2.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.03272, allocations: 0 / 343 MB, free: 2.586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.03317, allocations: 99.78 kB / 343.1 MB, free: 2.488 MB / 302.1 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.0001789/0.03335, allocations: 125.1 kB / 343.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008922/0.03424, allocations: 375.9 kB / 343.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.03425, allocations: 0 / 343.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002895/0.03454, allocations: 140.3 kB / 343.7 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007011/0.03524, allocations: 167.6 kB / 343.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.03708, allocations: 0.9354 MB / 344.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.03734, allocations: 236.2 kB / 345 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.03752, allocations: 38.97 kB / 345.1 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.03765, allocations: 36.48 kB / 345.1 MB, free: 404 kB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.03765, allocations: 4 kB / 345.1 MB, free: 400 kB / 302.1 MB Notification: Performance of Templates: time 0.009861/0.04751, allocations: 3.985 MB / 349.1 MB, free: 12.45 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.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: 4.383220192044973]