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.002322/0.002322, 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.003045/0.003045, 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.55/1.55, 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.002001/0.002001, allocations: 68.53 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2986, allocations: 53.37 MB / 431.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.006031/0.3047, allocations: 3.256 MB / 435.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002431/0.3071, allocations: 0.7554 MB / 435.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005466/0.3076, allocations: 23.88 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005053/0.3081, allocations: 75.12 kB / 436 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003525/0.3085, allocations: 75.3 kB / 436.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.3097, allocations: 295.4 kB / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.3108, allocations: 0.6167 MB / 437 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005157/0.3113, allocations: 246.2 kB / 437.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000317/0.3117, allocations: 239.3 kB / 437.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004046/0.3121, allocations: 258.8 kB / 437.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.3122, allocations: 72 kB / 437.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.359e-05/0.3123, allocations: 72 kB / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.3125, allocations: 139.6 kB / 438 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.3127, allocations: 290.6 kB / 438.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001387/0.3141, allocations: 0.8491 MB / 439.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.3141, allocations: 0 / 439.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.656e-06/0.3141, allocations: 0 / 439.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.3142, allocations: 0 / 439.1 MB, free: 15.69 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.001844/0.316, allocations: 0.7527 MB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.3161, allocations: 8.031 kB / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001245/0.3162, allocations: 90.7 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.3163, allocations: 64.56 kB / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.317, allocations: 336.6 kB / 440.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.3171, allocations: 101.3 kB / 440.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.726e-05/0.3172, allocations: 52.33 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.319, allocations: 0.879 MB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.319, allocations: 3.938 kB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/0.3191, allocations: 16 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.3191, allocations: 15.98 kB / 441.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008555/0.32, allocations: 351.1 kB / 441.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.3228, allocations: 1.68 MB / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.3243, allocations: 0.5223 MB / 444 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.3248, allocations: 231.8 kB / 444.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.924e-05/0.3249, allocations: 16.69 kB / 444.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004427/0.3253, allocations: 210.3 kB / 444.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.965e-06/0.3253, allocations: 0 / 444.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001527/0.3269, allocations: 0.6044 MB / 445 MB, free: 9.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001717/0.327, allocations: 182.4 kB / 445.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.3274, allocations: 265.7 kB / 445.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.3275, allocations: 33.7 kB / 445.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.3276, allocations: 213.3 kB / 445.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3278, allocations: 131 kB / 445.8 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.328, allocations: 106.3 kB / 445.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.3282, allocations: 346.8 kB / 446.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.3286, allocations: 157.2 kB / 446.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.3292, allocations: 407 kB / 446.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009526/0.3301, allocations: 0.5614 MB / 447.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.3301, allocations: 7.938 kB / 447.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001184/0.3313, allocations: 0.5905 MB / 448 MB, free: 6.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3313, allocations: 8 kB / 448 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.3314, allocations: 8.781 kB / 448 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.3314, allocations: 12 kB / 448 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000528/0.3319, allocations: 135.8 kB / 448.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.644e-05/0.3319, allocations: 19.92 kB / 448.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.3323, allocations: 59.66 kB / 448.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.3323, allocations: 31.94 kB / 448.3 MB, free: 5.973 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.0003997/0.3327, allocations: 220.4 kB / 448.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004574/0.3332, allocations: 229.4 kB / 448.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007367/0.3339, allocations: 308.5 kB / 449 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3339, allocations: 8 kB / 449 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.334, allocations: 3.984 kB / 449 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.334, allocations: 0 / 449 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.3355, allocations: 0.8455 MB / 449.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3355, allocations: 4 kB / 449.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.336, allocations: 103.8 kB / 450 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.336, allocations: 4 kB / 450 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.3361, allocations: 15.98 kB / 450 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.513e-06/0.3361, allocations: 4 kB / 450 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3361, allocations: 80 / 450 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.3377, allocations: 0.8223 MB / 450.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.073e-05/0.3378, allocations: 51.64 kB / 450.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.611e-05/0.3379, allocations: 16 kB / 450.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.3381, allocations: 19.98 kB / 450.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.3382, allocations: 23.97 kB / 450.9 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/0.3383, allocations: 23.92 kB / 450.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002541/0.3385, allocations: 173.2 kB / 451.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3385, allocations: 4 kB / 451.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006156/0.3392, allocations: 111.8 kB / 451.2 MB, free: 2.906 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.001957/0.3411, allocations: 1.381 MB / 452.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.3422, allocations: 436.6 kB / 453 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3422, allocations: 0 / 453 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002968/0.3425, allocations: 136.2 kB / 453.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008135/0.3433, allocations: 179.5 kB / 453.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006654/0.35, allocations: 4.217 MB / 457.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005762/0.3506, allocations: 0.8358 MB / 458.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.3508, allocations: 47.27 kB / 458.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.3511, allocations: 155.4 kB / 458.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3511, allocations: 0 / 458.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04073/0.3918, allocations: 9.045 MB / 467.6 MB, free: 2.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.428/9.82, allocations: 0 / 467.6 MB, free: 2.234 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 --stepSize=0.000213758 --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: 12.312349991872907] 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.898878192994744 9.927446716 9.60794826 Calling exit ...