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.001513/0.001512, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.001689, allocations: 210.4 kB / 18.58 MB, free: 4.555 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.518/1.518, allocations: 227.7 MB / 247.1 MB, free: 10.32 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.001908/0.001908, allocations: 59.22 kB / 307.3 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1147, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005208/0.12, allocations: 3.214 MB / 361.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.122, allocations: 0.7515 MB / 361.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002698/0.1223, allocations: 11.94 kB / 361.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003991/0.1228, allocations: 75.12 kB / 361.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.1229, allocations: 71.25 kB / 362 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007355/0.1237, allocations: 287.6 kB / 362.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006892/0.1244, allocations: 0.6127 MB / 362.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005107/0.1249, allocations: 337.6 kB / 363.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.1251, allocations: 227.3 kB / 363.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003632/0.1255, allocations: 262.8 kB / 363.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1256, allocations: 68 kB / 363.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.977e-05/0.1257, allocations: 76 kB / 363.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.1259, allocations: 143.5 kB / 364 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002722/0.1262, allocations: 282.7 kB / 364.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008208/0.127, allocations: 0.8219 MB / 365.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.127, allocations: 0 / 365.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1271, allocations: 4 kB / 365.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1271, allocations: 0 / 365.1 MB, free: 6.59 MB / 302.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.001505/0.1286, allocations: 0.8052 MB / 365.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.1286, allocations: 8.031 kB / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.1288, allocations: 94.7 kB / 366 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.1289, allocations: 60.27 kB / 366 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00052/0.1294, allocations: 382.4 kB / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.536e-05/0.1295, allocations: 75.56 kB / 366.5 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.612e-05/0.1296, allocations: 52.31 kB / 366.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.1312, allocations: 0.8863 MB / 367.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.1313, allocations: 0 / 367.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-05/0.1313, allocations: 35.86 kB / 367.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.1314, allocations: 12 kB / 367.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007965/0.1322, allocations: 355.1 kB / 367.8 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.1347, allocations: 1.755 MB / 369.6 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.1362, allocations: 0.5321 MB / 370.1 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/0.1367, allocations: 251.2 kB / 370.3 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.059e-05/0.1367, allocations: 8.781 kB / 370.4 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000446/0.1372, allocations: 214.7 kB / 370.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 1.923e-06/0.1372, allocations: 0 / 370.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001322/0.1385, allocations: 0.5963 MB / 371.2 MB, free: 188 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1466/0.2851, allocations: 185.2 kB / 371.3 MB, free: 20.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004128/0.2856, allocations: 251.9 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.2857, allocations: 34.83 kB / 371.6 MB, free: 20.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.2859, allocations: 214.6 kB / 371.8 MB, free: 19.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.286, allocations: 121.1 kB / 371.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.2862, allocations: 102.5 kB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.2863, allocations: 348.8 kB / 372.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.2867, allocations: 158.1 kB / 372.5 MB, free: 19.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.2871, allocations: 405.6 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007389/0.2879, allocations: 0.5706 MB / 373.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.2879, allocations: 3.656 kB / 373.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001137/0.289, allocations: 0.5902 MB / 374.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.2891, allocations: 13.56 kB / 374.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.2891, allocations: 14.38 kB / 374.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.245e-05/0.2891, allocations: 14.88 kB / 374.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.2897, allocations: 135.5 kB / 374.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-05/0.2897, allocations: 17.83 kB / 374.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.29, allocations: 61.8 kB / 374.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.2901, allocations: 28.06 kB / 374.4 MB, free: 18.7 MB / 302.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.0002927/0.2904, allocations: 209.4 kB / 374.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004481/0.2908, allocations: 233.7 kB / 374.8 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006649/0.2915, allocations: 313 kB / 375.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.2915, allocations: 8.312 kB / 375.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.2915, allocations: 2.594 kB / 375.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.2916, allocations: 3.75 kB / 375.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.2928, allocations: 0.8793 MB / 376 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2928, allocations: 0 / 376 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000492/0.2933, allocations: 110.3 kB / 376.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.2933, allocations: 2.75 kB / 376.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.2934, allocations: 14.89 kB / 376.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.2934, allocations: 4.922 kB / 376.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2934, allocations: 3.312 kB / 376.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.2947, allocations: 0.8164 MB / 377 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.748e-05/0.2948, allocations: 124.8 kB / 377.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.2949, allocations: 14.98 kB / 377.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.2951, allocations: 19.39 kB / 377.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/0.2952, allocations: 26.2 kB / 377.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.2953, allocations: 18.08 kB / 377.2 MB, free: 17.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.2955, allocations: 182.1 kB / 377.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2955, allocations: 0 / 377.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005372/0.296, allocations: 109.5 kB / 377.4 MB, free: 16.96 MB / 302.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.001615/0.2976, allocations: 1.384 MB / 378.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.2988, allocations: 479.3 kB / 379.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2988, allocations: 0 / 379.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002746/0.2991, allocations: 137.8 kB / 379.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007122/0.2998, allocations: 172.2 kB / 379.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003758/0.3035, allocations: 2.573 MB / 382.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.3039, allocations: 0.844 MB / 383 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.3042, allocations: 42.73 kB / 383.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.3044, allocations: 156.7 kB / 383.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3044, allocations: 1.094 kB / 383.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03613/0.3405, allocations: 8.225 MB / 391.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.312/8.652, allocations: 12.69 kB / 391.5 MB, free: 10.82 MB / 302.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 & /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)