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.001706/0.001706, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001998/0.001998, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.481/1.481, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.00198/0.00198, allocations: 79.81 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1131, allocations: 53.33 MB / 427 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005446/0.1186, allocations: 3.227 MB / 430.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1201, allocations: 0.7593 MB / 431 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.1203, allocations: 15.94 kB / 431 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.1207, allocations: 75.12 kB / 431.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.1208, allocations: 71.25 kB / 431.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006437/0.1215, allocations: 291.5 kB / 431.4 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2121/0.3336, allocations: 0.6096 MB / 432 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005652/0.3342, allocations: 241.7 kB / 432.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003523/0.3345, allocations: 239.1 kB / 432.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003861/0.3349, allocations: 263.6 kB / 432.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.335, allocations: 70.72 kB / 432.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.3351, allocations: 72.91 kB / 432.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.3353, allocations: 142.4 kB / 433 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002137/0.3355, allocations: 286 kB / 433.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000833/0.3363, allocations: 0.845 MB / 434.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3363, allocations: 0 / 434.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3363, allocations: 0.9375 kB / 434.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.3363, allocations: 2.188 kB / 434.2 MB, free: 7.363 MB / 350.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.001282/0.3376, allocations: 0.8261 MB / 435 MB, free: 6.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3376, allocations: 11.16 kB / 435 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.3378, allocations: 92.09 kB / 435.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.3379, allocations: 64 kB / 435.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.3384, allocations: 397.5 kB / 435.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.3385, allocations: 69.14 kB / 435.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-05/0.3386, allocations: 56.08 kB / 435.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.3401, allocations: 0.8709 MB / 436.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.3401, allocations: 4.281 kB / 436.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.956e-05/0.3402, allocations: 22.61 kB / 436.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.3402, allocations: 12.09 kB / 436.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007721/0.3409, allocations: 356.9 kB / 436.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.3431, allocations: 1.744 MB / 438.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.3444, allocations: 0.5127 MB / 439.2 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.3449, allocations: 230.2 kB / 439.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.3449, allocations: 17.08 kB / 439.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000359/0.3453, allocations: 207.8 kB / 439.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.014e-06/0.3453, allocations: 0 / 439.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001304/0.3466, allocations: 0.6095 MB / 440.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.3467, allocations: 179.4 kB / 440.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.3469, allocations: 262.9 kB / 440.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.347, allocations: 32.11 kB / 440.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3471, allocations: 218.1 kB / 440.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.3472, allocations: 129 kB / 441 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.3474, allocations: 107.1 kB / 441.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.3474, allocations: 351.5 kB / 441.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.3478, allocations: 151.7 kB / 441.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004389/0.3482, allocations: 407.6 kB / 442 MB, free: 3.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000702/0.3489, allocations: 0.5682 MB / 442.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.3489, allocations: 7.25 kB / 442.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001042/0.35, allocations: 0.5895 MB / 443.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.35, allocations: 9.812 kB / 443.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.35, allocations: 12.25 kB / 443.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.866e-05/0.3501, allocations: 12.19 kB / 443.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/0.3506, allocations: 134.4 kB / 443.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/0.3507, allocations: 15.7 kB / 443.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.351, allocations: 61.27 kB / 443.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.351, allocations: 28.19 kB / 443.5 MB, free: 2.336 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.0002585/0.3513, allocations: 216.9 kB / 443.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004109/0.3517, allocations: 232.4 kB / 443.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006156/0.3523, allocations: 304.8 kB / 444.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.3523, allocations: 6.781 kB / 444.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3523, allocations: 6.219 kB / 444.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-06/0.3523, allocations: 3.734 kB / 444.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.3535, allocations: 0.8887 MB / 445.1 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3535, allocations: 1.531 kB / 445.1 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005053/0.354, allocations: 104.1 kB / 445.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.354, allocations: 2.922 kB / 445.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.354, allocations: 15.88 kB / 445.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.279e-06/0.354, allocations: 6.75 kB / 445.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.354, allocations: 1.031 kB / 445.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.3554, allocations: 0.8118 MB / 446 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.735e-05/0.3555, allocations: 121 kB / 446.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.3555, allocations: 18.91 kB / 446.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.3558, allocations: 25.36 kB / 446.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.88e-05/0.3559, allocations: 25.48 kB / 446.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.3559, allocations: 20.77 kB / 446.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001675/0.3561, allocations: 178.4 kB / 446.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3561, allocations: 0 / 446.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005248/0.3566, allocations: 109.3 kB / 446.5 MB, free: 0.5898 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.001662/0.3583, allocations: 1.391 MB / 447.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009641/0.3592, allocations: 440.9 kB / 448.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3592, allocations: 4.25 kB / 448.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003027/0.3595, allocations: 132.2 kB / 448.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/0.3603, allocations: 173.5 kB / 448.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006446/0.3667, allocations: 4.221 MB / 452.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/0.3673, allocations: 0.8455 MB / 453.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.3676, allocations: 44.17 kB / 453.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/0.3679, allocations: 153 kB / 453.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3679, allocations: 0 / 453.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/0.4051, allocations: 8.622 MB / 462.5 MB, free: 8.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.065/9.47, allocations: 11.31 kB / 462.5 MB, free: 8.699 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000213758 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.95924650458619] 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.543939044699073 9.558074104 9.218832546 Calling exit ...