Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001453, allocations: 177.4 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008008/0.0008009, allocations: 90.3 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09019/0.09019, allocations: 12.6 MB / 331.2 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004608/0.0004608, allocations: 13.22 kB / 392.1 MB, free: 54.84 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 50.38 MB / 442.5 MB, free: 10.88 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.003229/0.1142, allocations: 2.703 MB / 445.2 MB, free: 8.156 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.1154, allocations: 0.6972 MB / 445.9 MB, free: 7.457 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002544/0.1157, allocations: 11.94 kB / 445.9 MB, free: 7.445 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1159, allocations: 47.56 kB / 446 MB, free: 7.398 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.116, allocations: 39.62 kB / 446 MB, free: 7.359 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005733/0.1166, allocations: 203.7 kB / 446.2 MB, free: 7.16 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005237/0.1171, allocations: 0.5779 MB / 446.8 MB, free: 6.578 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.1175, allocations: 285.5 kB / 447 MB, free: 6.289 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.1177, allocations: 155.3 kB / 447.2 MB, free: 6.137 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.1179, allocations: 194.9 kB / 447.4 MB, free: 5.945 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.118, allocations: 16 kB / 447.4 MB, free: 5.93 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.656e-05/0.118, allocations: 20 kB / 447.4 MB, free: 5.91 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 6.284e-05/0.1181, allocations: 87.59 kB / 447.5 MB, free: 5.824 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 9.033e-05/0.1182, allocations: 117.4 kB / 447.6 MB, free: 5.703 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004298/0.1186, allocations: 0.6554 MB / 448.3 MB, free: 5.047 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1187, allocations: 0 / 448.3 MB, free: 5.047 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1187, allocations: 0 / 448.3 MB, free: 5.047 MB / 282.8 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.1187, allocations: 0 / 448.3 MB, free: 5.047 MB / 282.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001365/0.12, allocations: 0.7794 MB / 449.1 MB, free: 4.207 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.1201, allocations: 12.02 kB / 449.1 MB, free: 4.195 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.1202, allocations: 102.5 kB / 449.2 MB, free: 4.086 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.1204, allocations: 67.25 kB / 449.2 MB, free: 4.02 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.1209, allocations: 409 kB / 449.6 MB, free: 3.582 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.121, allocations: 104.7 kB / 449.7 MB, free: 3.469 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.362e-05/0.1211, allocations: 60 kB / 449.8 MB, free: 3.41 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.1228, allocations: 1.013 MB / 450.8 MB, free: 2.359 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.1228, allocations: 7.984 kB / 450.8 MB, free: 2.352 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.1229, allocations: 24 kB / 450.8 MB, free: 2.328 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1229, allocations: 12 kB / 450.9 MB, free: 2.316 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007991/0.1237, allocations: 411.7 kB / 451.3 MB, free: 1.914 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.1261, allocations: 1.704 MB / 453 MB, free: 124 kB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.1277, allocations: 0.6018 MB / 453.6 MB, free: 15.48 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006369/0.1284, allocations: 295.2 kB / 453.8 MB, free: 15.18 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-05/0.1284, allocations: 20.52 kB / 453.9 MB, free: 15.16 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.1289, allocations: 234.6 kB / 454.1 MB, free: 14.91 MB / 298.8 MB Notification: Performance of pre-optimization done (n=68): time 2.685e-06/0.1289, allocations: 4 kB / 454.1 MB, free: 14.91 MB / 298.8 MB Notification: Performance of matching and sorting (n=68): time 0.001665/0.1306, allocations: 0.6929 MB / 454.8 MB, free: 14.21 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.1308, allocations: 215.8 kB / 455 MB, free: 13.95 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.1311, allocations: 270.9 kB / 455.3 MB, free: 13.68 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.1312, allocations: 41.7 kB / 455.3 MB, free: 13.64 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1313, allocations: 209 kB / 455.5 MB, free: 13.43 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.1314, allocations: 142.2 kB / 455.7 MB, free: 13.29 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.1315, allocations: 12 kB / 455.7 MB, free: 13.28 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1317, allocations: 362.8 kB / 456 MB, free: 12.91 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003483/0.132, allocations: 169.9 kB / 456.2 MB, free: 12.75 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.1326, allocations: 466.6 kB / 456.6 MB, free: 12.16 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005748/0.1332, allocations: 239.7 kB / 456.9 MB, free: 11.93 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.1332, allocations: 4 kB / 456.9 MB, free: 11.92 MB / 298.8 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001138/0.1344, allocations: 0.6452 MB / 457.5 MB, free: 11.27 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.1344, allocations: 8 kB / 457.5 MB, free: 11.26 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.1344, allocations: 8 kB / 457.5 MB, free: 11.25 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/0.1345, allocations: 23.97 kB / 457.6 MB, free: 11.23 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.135, allocations: 147.7 kB / 457.7 MB, free: 11.09 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-05/0.135, allocations: 16.41 kB / 457.7 MB, free: 11.07 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.1355, allocations: 79.42 kB / 457.8 MB, free: 10.99 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.1356, allocations: 31.98 kB / 457.8 MB, free: 10.96 MB / 298.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 20 (rotationalClock.rotationalClock.changed.y,rotationalClock.rotationalClock.changed.u,$CLKPRE.rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction,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,rotationalClock.rotationalClock.less.y,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 6 (rotationalClock.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des,engine.inductionToPowerDelay.m_a_sampled,engine.crankshaftPositionEvent.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0003661/0.136, allocations: 233.6 kB / 458.1 MB, free: 10.73 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004733/0.1364, allocations: 265 kB / 458.3 MB, free: 10.46 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007051/0.1372, allocations: 348.5 kB / 458.7 MB, free: 10.11 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.1372, allocations: 8 kB / 458.7 MB, free: 10.1 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1372, allocations: 0 / 458.7 MB, free: 10.1 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.1372, allocations: 3.984 kB / 458.7 MB, free: 10.1 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.1387, allocations: 0.978 MB / 459.7 MB, free: 9.062 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.1387, allocations: 4 kB / 459.7 MB, free: 9.059 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.1393, allocations: 115.9 kB / 459.8 MB, free: 8.945 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.1393, allocations: 11.94 kB / 459.8 MB, free: 8.934 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.1393, allocations: 15.98 kB / 459.8 MB, free: 8.918 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.1394, allocations: 4 kB / 459.8 MB, free: 8.914 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1394, allocations: 4 kB / 459.8 MB, free: 8.91 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.141, allocations: 0.9129 MB / 460.7 MB, free: 7.973 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1412, allocations: 132.5 kB / 460.8 MB, free: 7.824 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.664e-05/0.1412, allocations: 19.94 kB / 460.9 MB, free: 7.805 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.1415, allocations: 31.98 kB / 460.9 MB, free: 7.773 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.1416, allocations: 31.89 kB / 460.9 MB, free: 7.742 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.854e-05/0.1417, allocations: 16 kB / 460.9 MB, free: 7.727 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.00022/0.1419, allocations: 194 kB / 461.1 MB, free: 7.535 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1419, allocations: 0 / 461.1 MB, free: 7.535 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0005882/0.1425, allocations: 119.7 kB / 461.2 MB, free: 7.418 MB / 298.8 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.m_a_total,engine.inertia1.w,derivative.u) * Number of discrete variables: 18 (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,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.m_a_sampled,speedControl.N_des,speedControl.N,speedControl.x_d,rotationalClock.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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.002158/0.1447, allocations: 1.495 MB / 462.7 MB, free: 5.887 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.1459, allocations: 0.5092 MB / 463.3 MB, free: 5.375 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1459, allocations: 0 / 463.3 MB, free: 5.375 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002936/0.1462, allocations: 155.8 kB / 463.4 MB, free: 5.223 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007537/0.147, allocations: 205.6 kB / 463.6 MB, free: 5.02 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/0.1517, allocations: 2.851 MB / 466.5 MB, free: 1.992 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.1522, allocations: 0.8561 MB / 467.3 MB, free: 1.109 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.000353/0.1525, allocations: 51.41 kB / 467.4 MB, free: 1.059 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.1528, allocations: 175.4 kB / 467.5 MB, free: 0.8867 MB / 298.8 MB Notification: Performance of SimCode: time 1.954e-06/0.1528, allocations: 112 / 467.5 MB, free: 0.8867 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.1775, allocations: 8.374 MB / 475.9 MB, free: 8.508 MB / 314.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/0.1778, allocations: 209.5 kB / 476.1 MB, free: 8.262 MB / 314.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.402/2.579, allocations: 0 / 476.1 MB, free: 8.262 MB / 314.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_EngineThrottleControl_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_EngineThrottleControl.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat does not exist to compare? outputFormat=mat