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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001765/0.001772, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.672/1.672, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB 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.002044/0.002044, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3408, allocations: 50.54 MB / 409 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005578/0.3465, allocations: 3.216 MB / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.3485, allocations: 0.7477 MB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003313/0.3489, allocations: 11.94 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004931/0.3494, allocations: 79.19 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.3497, allocations: 75.23 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008664/0.3505, allocations: 283.5 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008048/0.3513, allocations: 0.6206 MB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005941/0.3519, allocations: 329.7 kB / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003134/0.3523, allocations: 231.2 kB / 414.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004575/0.3527, allocations: 258.8 kB / 414.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.3529, allocations: 72 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.353, allocations: 76 kB / 415 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.3532, allocations: 147.6 kB / 415.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003005/0.3535, allocations: 278.7 kB / 415.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.3546, allocations: 0.8474 MB / 416.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3546, allocations: 0 / 416.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3546, allocations: 0 / 416.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.3546, allocations: 0 / 416.3 MB, free: 10.09 MB / 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.001557/0.3562, allocations: 0.8241 MB / 417.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3562, allocations: 19.97 kB / 417.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.3564, allocations: 90.7 kB / 417.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.3565, allocations: 64.56 kB / 417.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006499/0.3571, allocations: 398.5 kB / 417.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.565e-05/0.3572, allocations: 67.58 kB / 417.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.231e-05/0.3573, allocations: 56.33 kB / 417.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.3591, allocations: 0.875 MB / 418.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.3592, allocations: 0 / 418.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.3592, allocations: 24 kB / 418.7 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.3593, allocations: 12 kB / 418.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008602/0.3601, allocations: 363 kB / 419 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.3629, allocations: 1.748 MB / 420.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.3643, allocations: 0.5341 MB / 421.3 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.3648, allocations: 251.8 kB / 421.6 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.3649, allocations: 12.77 kB / 421.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004057/0.3653, allocations: 210.6 kB / 421.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.785e-06/0.3653, allocations: 4 kB / 421.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001409/0.3667, allocations: 0.6042 MB / 422.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.3669, allocations: 178.2 kB / 422.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003168/0.3672, allocations: 254.9 kB / 422.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.213e-05/0.3673, allocations: 37.7 kB / 422.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.3675, allocations: 217.3 kB / 423.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.3676, allocations: 131 kB / 423.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001811/0.3678, allocations: 102.3 kB / 423.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.368, allocations: 354.8 kB / 423.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.3683, allocations: 145.2 kB / 423.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000574/0.3689, allocations: 415 kB / 424.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000933/0.3699, allocations: 0.5579 MB / 424.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3699, allocations: 3.938 kB / 424.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001119/0.371, allocations: 0.5979 MB / 425.3 MB, free: 400 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.371, allocations: 8 kB / 425.4 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.3711, allocations: 11.94 kB / 425.4 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.742e-05/0.3711, allocations: 12 kB / 425.4 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.3716, allocations: 127.8 kB / 425.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.52e-05/0.3716, allocations: 19.92 kB / 425.5 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.372, allocations: 64.03 kB / 425.6 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.372, allocations: 32 kB / 425.6 MB, free: 124 kB / 334.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.0004125/0.3725, allocations: 217.3 kB / 425.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004553/0.3729, allocations: 229.3 kB / 426.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000679/0.3736, allocations: 304.4 kB / 426.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3736, allocations: 4 kB / 426.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.3736, allocations: 11.97 kB / 426.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.3737, allocations: 3.984 kB / 426.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.375, allocations: 0.8894 MB / 427.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.375, allocations: 0 / 427.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/0.3755, allocations: 103.8 kB / 427.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.3756, allocations: 4 kB / 427.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.3756, allocations: 19.98 kB / 427.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.3756, allocations: 4 kB / 427.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3756, allocations: 48 / 427.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.3771, allocations: 0.8202 MB / 428.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.3772, allocations: 120.7 kB / 428.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.018e-05/0.3773, allocations: 20 kB / 428.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.3776, allocations: 23.98 kB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3777, allocations: 19.97 kB / 428.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.3777, allocations: 19.94 kB / 428.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.3779, allocations: 178 kB / 428.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3779, allocations: 8 kB / 428.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005623/0.3785, allocations: 107.8 kB / 428.7 MB, free: 12.92 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.001925/0.3804, allocations: 1.39 MB / 430.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.3815, allocations: 452.3 kB / 430.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3815, allocations: 0 / 430.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.3818, allocations: 135.9 kB / 430.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007243/0.3825, allocations: 181.6 kB / 430.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006148/0.3887, allocations: 4.222 MB / 435.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.3893, allocations: 0.8436 MB / 435.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000234/0.3895, allocations: 47.27 kB / 436 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003071/0.3898, allocations: 155.3 kB / 436.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3898, allocations: 0 / 436.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.4262, allocations: 8.534 MB / 444.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.942/9.368, allocations: 4 kB / 444.6 MB, free: 12.74 MB / 366.1 MB (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.00044 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)