Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_trunk_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.0009268/0.0009267, allocations: 101.3 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009521/0.0009519, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002434, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 51.47 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003541/0.113, allocations: 2.733 MB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1144, allocations: 0.705 MB / 361.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.1146, allocations: 19.88 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.1149, allocations: 43.58 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.115, allocations: 51.55 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004868/0.1155, allocations: 195.6 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004831/0.116, allocations: 0.5345 MB / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.1164, allocations: 251.2 kB / 362.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.1165, allocations: 135.4 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.1168, allocations: 183 kB / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.239e-05/0.1168, allocations: 16 kB / 363.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.062e-05/0.1169, allocations: 12 kB / 363.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.117, allocations: 79.61 kB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.1171, allocations: 113.4 kB / 363.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005049/0.1176, allocations: 0.6431 MB / 364 MB, free: 8.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1176, allocations: 4 kB / 364 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1176, allocations: 0 / 364 MB, free: 8.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1176, allocations: 0 / 364 MB, free: 8.285 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.001088/0.1187, allocations: 0.7192 MB / 364.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1188, allocations: 8.031 kB / 364.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.1189, allocations: 98.52 kB / 364.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.003e-05/0.119, allocations: 63.19 kB / 364.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.1194, allocations: 377.2 kB / 365.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.337e-05/0.1195, allocations: 74.95 kB / 365.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.859e-05/0.1196, allocations: 52 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.1213, allocations: 0.8708 MB / 366.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.1213, allocations: 3.938 kB / 366.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.03e-05/0.1214, allocations: 20 kB / 366.3 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.1214, allocations: 16 kB / 366.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007525/0.1222, allocations: 363.1 kB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.1245, allocations: 1.763 MB / 368.4 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.1258, allocations: 0.5315 MB / 368.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004309/0.1263, allocations: 259.2 kB / 369.2 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.077e-05/0.1263, allocations: 16.77 kB / 369.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003757/0.1267, allocations: 212.1 kB / 369.4 MB, free: 2.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 3.467e-06/0.1267, allocations: 0 / 369.4 MB, free: 2.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001249/0.128, allocations: 0.6228 MB / 370 MB, free: 1.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.1281, allocations: 182.1 kB / 370.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.1284, allocations: 250.7 kB / 370.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.1284, allocations: 37.7 kB / 370.5 MB, free: 1.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.1286, allocations: 204.9 kB / 370.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1287, allocations: 134.4 kB / 370.8 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/0.1288, allocations: 8 kB / 370.8 MB, free: 1.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1289, allocations: 358.8 kB / 371.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003198/0.1292, allocations: 149.2 kB / 371.3 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.1297, allocations: 415 kB / 371.7 MB, free: 44 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1819/0.3117, allocations: 212.6 kB / 371.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.3117, allocations: 1.906 kB / 371.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001208/0.3129, allocations: 0.6001 MB / 372.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.313, allocations: 12.09 kB / 372.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.313, allocations: 9.125 kB / 372.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-05/0.3131, allocations: 16.16 kB / 372.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005127/0.3136, allocations: 132.5 kB / 372.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.557e-05/0.3136, allocations: 17.8 kB / 372.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.3139, allocations: 58.39 kB / 372.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-05/0.314, allocations: 31.08 kB / 372.8 MB, free: 18.96 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 (engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.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,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003226/0.3143, allocations: 216.6 kB / 373 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004176/0.3147, allocations: 230.5 kB / 373.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006892/0.3154, allocations: 316 kB / 373.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.3154, allocations: 7.094 kB / 373.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.3155, allocations: 1.906 kB / 373.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.3155, allocations: 7.5 kB / 373.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.3169, allocations: 0.8893 MB / 374.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3169, allocations: 4.969 kB / 374.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.3174, allocations: 111 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.3174, allocations: 4.031 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.23e-05/0.3175, allocations: 15.41 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.3175, allocations: 7.141 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3175, allocations: 3.375 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.3188, allocations: 0.822 MB / 375.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.726e-05/0.3189, allocations: 122.3 kB / 375.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.244e-05/0.319, allocations: 17.84 kB / 375.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.3192, allocations: 25.78 kB / 375.6 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.726e-05/0.3193, allocations: 25.91 kB / 375.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/0.3193, allocations: 17.06 kB / 375.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001637/0.3195, allocations: 181.5 kB / 375.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3195, allocations: 0 / 375.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005181/0.32, allocations: 110.6 kB / 375.9 MB, free: 18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001529/0.3216, allocations: 1.389 MB / 377.3 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008909/0.3225, allocations: 460.1 kB / 377.7 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3225, allocations: 4.125 kB / 377.7 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.3228, allocations: 139.6 kB / 377.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006638/0.3234, allocations: 182.7 kB / 378.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003983/0.3274, allocations: 2.789 MB / 380.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.3278, allocations: 0.8449 MB / 381.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.3281, allocations: 45.03 kB / 381.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.3283, allocations: 153.1 kB / 381.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3283, allocations: 0 / 381.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03191/0.3602, allocations: 7.706 MB / 389.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.3605, allocations: 201.1 kB / 389.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.275, allocations: 1.375 kB / 389.8 MB, free: 11.92 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_EngineThrottleControl_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_EngineThrottleControl.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat does not exist to compare? outputFormat=mat