Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001695/0.001695, allocations: 109.3 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 218.8 kB / 23 MB, free: 5.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.436/1.436, allocations: 230.5 MB / 256.5 MB, free: 8.18 MB / 206.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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 63.89 kB / 376.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3509, allocations: 53.33 MB / 429.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005709/0.3566, allocations: 3.253 MB / 432.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.3583, allocations: 0.7555 MB / 433.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003479/0.3586, allocations: 11.94 kB / 433.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004377/0.359, allocations: 71.19 kB / 433.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.3592, allocations: 75.23 kB / 433.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.3599, allocations: 299.5 kB / 434 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007163/0.3606, allocations: 0.6205 MB / 434.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004553/0.3611, allocations: 233.8 kB / 434.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.3613, allocations: 235.2 kB / 435 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004166/0.3618, allocations: 266.8 kB / 435.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.3619, allocations: 68 kB / 435.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.757e-05/0.3619, allocations: 76 kB / 435.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.3621, allocations: 143.6 kB / 435.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002725/0.3624, allocations: 290.6 kB / 435.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009593/0.3634, allocations: 0.841 MB / 436.7 MB, free: 176 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3634, allocations: 0 / 436.7 MB, free: 176 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3634, allocations: 0 / 436.7 MB, free: 176 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3634, allocations: 3.938 kB / 436.7 MB, free: 172 kB / 334.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.001616/0.365, allocations: 0.8241 MB / 437.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.365, allocations: 12.03 kB / 437.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.3651, allocations: 90.7 kB / 437.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.3653, allocations: 60.56 kB / 437.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006536/0.3659, allocations: 398.5 kB / 438.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.366, allocations: 71.56 kB / 438.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.901e-05/0.3661, allocations: 56.33 kB / 438.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.3678, allocations: 0.8751 MB / 439.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.3679, allocations: 7.938 kB / 439.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.344e-05/0.3679, allocations: 23.98 kB / 439.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.3679, allocations: 12 kB / 439.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008833/0.3688, allocations: 355.1 kB / 439.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002684/0.3715, allocations: 1.744 MB / 441.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.3729, allocations: 0.5099 MB / 441.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/0.3734, allocations: 235.8 kB / 442 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.007e-05/0.3735, allocations: 16.16 kB / 442 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000389/0.3739, allocations: 210.7 kB / 442.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 1.864e-06/0.3739, allocations: 4 kB / 442.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001419/0.3753, allocations: 0.6053 MB / 442.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.3754, allocations: 174.2 kB / 443 MB, free: 9.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.3757, allocations: 254.9 kB / 443.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.3758, allocations: 41.64 kB / 443.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.3759, allocations: 221.2 kB / 443.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.3761, allocations: 135 kB / 443.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.3763, allocations: 98.34 kB / 443.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3765, allocations: 350.8 kB / 444 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003264/0.3768, allocations: 153.2 kB / 444.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.3774, allocations: 407 kB / 444.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009493/0.3783, allocations: 0.569 MB / 445.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3783, allocations: 7.938 kB / 445.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001114/0.3795, allocations: 0.5948 MB / 445.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3795, allocations: 8 kB / 445.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3795, allocations: 8 kB / 445.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.3795, allocations: 12 kB / 445.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004924/0.38, allocations: 131.8 kB / 445.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.743e-05/0.38, allocations: 11.94 kB / 445.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.3803, allocations: 60 kB / 446 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.3804, allocations: 40.06 kB / 446 MB, free: 6.238 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,$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 (76): * Single equations (assignments): 76 * 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.0002715/0.3807, allocations: 213.4 kB / 446.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.3811, allocations: 233.3 kB / 446.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006669/0.3818, allocations: 308.3 kB / 446.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/0.3818, allocations: 8 kB / 446.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3818, allocations: 4.031 kB / 446.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.3818, allocations: 3.984 kB / 446.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.3831, allocations: 0.8855 MB / 447.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3831, allocations: 0 / 447.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005042/0.3837, allocations: 107.8 kB / 447.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.3837, allocations: 4 kB / 447.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.14e-05/0.3837, allocations: 15.98 kB / 447.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3837, allocations: 4 kB / 447.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3837, allocations: 4 kB / 447.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.3853, allocations: 0.8123 MB / 448.6 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.369e-05/0.3854, allocations: 120.7 kB / 448.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.708e-05/0.3854, allocations: 24.05 kB / 448.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3857, allocations: 19.98 kB / 448.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.3858, allocations: 15.98 kB / 448.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.3858, allocations: 19.92 kB / 448.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.386, allocations: 182 kB / 449 MB, free: 3.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.386, allocations: 0 / 449 MB, free: 3.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004934/0.3865, allocations: 111.8 kB / 449.1 MB, free: 3.051 MB / 350.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.001921/0.3884, allocations: 1.394 MB / 450.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009975/0.3894, allocations: 436.5 kB / 450.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3894, allocations: 0 / 450.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003307/0.3898, allocations: 131.9 kB / 451 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007152/0.3905, allocations: 168.5 kB / 451.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006511/0.397, allocations: 4.225 MB / 455.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005367/0.3975, allocations: 0.8475 MB / 456.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001981/0.3977, allocations: 43.28 kB / 456.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002727/0.398, allocations: 155.4 kB / 456.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.398, allocations: 0 / 456.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04031/0.4383, allocations: 8.66 MB / 465.1 MB, free: 2.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.124/9.562, allocations: 14.8 kB / 465.1 MB, free: 2.723 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_EngineThrottleControl_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_EngineThrottleControl.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.901474320009584] Failed to read output from testmodel.py, exit status != 0: ['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'] 9.63820665300591 9.660046667 9.292137684 Calling exit ...