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.001307/0.001307, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001433/0.001433, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.459/1.459, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.001877/0.001877, allocations: 64.77 kB / 378.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2763, allocations: 53.36 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004979/0.2812, allocations: 3.261 MB / 435.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.2828, allocations: 0.7593 MB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002473/0.283, allocations: 15.88 kB / 435.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003571/0.2834, allocations: 83.19 kB / 436 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.2835, allocations: 75.23 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007007/0.2842, allocations: 291.4 kB / 436.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007073/0.285, allocations: 0.6167 MB / 437 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004412/0.2854, allocations: 234.2 kB / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002757/0.2857, allocations: 251.2 kB / 437.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003894/0.2861, allocations: 262.8 kB / 437.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.216e-05/0.2862, allocations: 68 kB / 437.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.256e-05/0.2862, allocations: 76 kB / 437.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.2864, allocations: 139.6 kB / 438 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.2867, allocations: 286.7 kB / 438.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009512/0.2876, allocations: 0.8453 MB / 439.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2876, allocations: 3.984 kB / 439.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2876, allocations: 0 / 439.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.2877, allocations: 0 / 439.1 MB, free: 15.66 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.001434/0.2891, allocations: 0.7527 MB / 439.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2891, allocations: 8.031 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.2893, allocations: 94.7 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.2894, allocations: 60.56 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005779/0.2899, allocations: 332.7 kB / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.29, allocations: 101.3 kB / 440.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.26e-05/0.2901, allocations: 52.33 kB / 440.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.2918, allocations: 0.8828 MB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.2918, allocations: 4 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.95e-05/0.2918, allocations: 16 kB / 441.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2919, allocations: 12 kB / 441.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007869/0.2926, allocations: 359 kB / 441.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.2949, allocations: 1.68 MB / 443.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.2963, allocations: 0.5151 MB / 444 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004503/0.2967, allocations: 231.8 kB / 444.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.2968, allocations: 8.219 kB / 444.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003666/0.2971, allocations: 222.2 kB / 444.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 1.593e-06/0.2971, allocations: 0 / 444.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001318/0.2985, allocations: 0.6042 MB / 445 MB, free: 9.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.2986, allocations: 182.7 kB / 445.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002904/0.2989, allocations: 261.8 kB / 445.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.2989, allocations: 33.7 kB / 445.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.2991, allocations: 213.3 kB / 445.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.2992, allocations: 127 kB / 445.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.2994, allocations: 106.3 kB / 445.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2995, allocations: 346.8 kB / 446.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.2999, allocations: 157.2 kB / 446.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.3004, allocations: 407 kB / 446.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008327/0.3013, allocations: 0.5661 MB / 447.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3013, allocations: 3.938 kB / 447.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001023/0.3023, allocations: 0.5983 MB / 448 MB, free: 6.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3023, allocations: 12 kB / 448 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3023, allocations: 8 kB / 448 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.679e-05/0.3023, allocations: 12.69 kB / 448 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.3028, allocations: 131.8 kB / 448.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.3028, allocations: 15.98 kB / 448.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.3031, allocations: 63.67 kB / 448.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.3032, allocations: 35.92 kB / 448.3 MB, free: 5.949 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.0002826/0.3035, allocations: 216.4 kB / 448.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.3039, allocations: 233.3 kB / 448.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006366/0.3045, allocations: 304.5 kB / 449 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3045, allocations: 12.03 kB / 449 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3045, allocations: 0 / 449 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3045, allocations: 3.984 kB / 449 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3057, allocations: 0.8493 MB / 449.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3057, allocations: 0 / 449.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.3062, allocations: 111.8 kB / 450 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.3062, allocations: 0 / 450 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/0.3063, allocations: 15.98 kB / 450 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3063, allocations: 0 / 450 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3063, allocations: 4 kB / 450 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.3076, allocations: 0.8185 MB / 450.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.3077, allocations: 47.66 kB / 450.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.644e-05/0.3078, allocations: 19.98 kB / 450.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.308, allocations: 16 kB / 450.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.047e-05/0.3081, allocations: 23.95 kB / 450.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.3081, allocations: 31.86 kB / 450.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001744/0.3083, allocations: 173.2 kB / 451.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3083, allocations: 0 / 451.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004669/0.3088, allocations: 115.8 kB / 451.2 MB, free: 2.879 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.001695/0.3105, allocations: 1.382 MB / 452.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008852/0.3114, allocations: 440.8 kB / 453 MB, free: 1.035 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3114, allocations: 0 / 453 MB, free: 1.035 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002592/0.3116, allocations: 124 kB / 453.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006999/0.3123, allocations: 183.6 kB / 453.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005745/0.3181, allocations: 4.221 MB / 457.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.3185, allocations: 0.8358 MB / 458.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.3187, allocations: 51.27 kB / 458.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002462/0.319, allocations: 151.4 kB / 458.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.319, allocations: 0 / 458.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03562/0.3546, allocations: 9.033 MB / 467.6 MB, free: 2.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.319/8.674, allocations: 6.875 kB / 467.6 MB, free: 2.211 MB / 366.1 MB " [Timeout remaining time 651] (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.125672075897455] 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'] 8.74848074791953 8.773827354 8.481689906 Calling exit ...