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.001228/0.001229, allocations: 172.4 kB / 16.14 MB, free: 5.656 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.43/1.43, allocations: 205.4 MB / 222.3 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007798/0.0007799, allocations: 83.67 kB / 270.7 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07364/0.07364, allocations: 12.6 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 12 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09285, allocations: 50.37 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.003784/0.09669, allocations: 2.832 MB / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.09816, allocations: 0.7008 MB / 446.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005079/0.0987, allocations: 11.94 kB / 446.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.09899, allocations: 39.58 kB / 446.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000349/0.09935, allocations: 43.62 kB / 446.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008829/0.1002, allocations: 287.7 kB / 447 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005861/0.1008, allocations: 0.6091 MB / 447.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004455/0.1013, allocations: 382.2 kB / 448 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.1014, allocations: 159.2 kB / 448.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.1017, allocations: 206.8 kB / 448.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.045e-05/0.1017, allocations: 16 kB / 448.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.785e-05/0.1018, allocations: 16 kB / 448.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.91e-05/0.1019, allocations: 83.61 kB / 448.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.102, allocations: 252.2 kB / 448.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.1025, allocations: 0.7708 MB / 449.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1025, allocations: 0 / 449.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1025, allocations: 0 / 449.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.1026, allocations: 0 / 449.5 MB, free: 8.91 MB / 298.7 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.001182/0.1038, allocations: 0.7718 MB / 450.3 MB, free: 8.074 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1038, allocations: 8.031 kB / 450.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001003/0.1039, allocations: 110.6 kB / 450.4 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.513e-05/0.104, allocations: 72.11 kB / 450.5 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003957/0.1044, allocations: 410.3 kB / 450.9 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.618e-05/0.1045, allocations: 97.28 kB / 451 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.409e-05/0.1046, allocations: 64.31 kB / 451 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.106, allocations: 1.026 MB / 452.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.106, allocations: 7.938 kB / 452.1 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.1061, allocations: 20 kB / 452.1 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.1061, allocations: 12 kB / 452.1 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007494/0.1069, allocations: 421.1 kB / 452.5 MB, free: 5.758 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.109, allocations: 1.712 MB / 454.2 MB, free: 3.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.1105, allocations: 0.6038 MB / 454.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004516/0.1109, allocations: 287.3 kB / 455.1 MB, free: 3.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.683e-05/0.111, allocations: 16.52 kB / 455.1 MB, free: 3.008 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003529/0.1113, allocations: 242.6 kB / 455.4 MB, free: 2.746 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 2.194e-06/0.1114, allocations: 0 / 455.4 MB, free: 2.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=68): time 0.001343/0.1127, allocations: 0.6934 MB / 456 MB, free: 2.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.1128, allocations: 216 kB / 456.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.1131, allocations: 278.9 kB / 456.5 MB, free: 1.508 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.226e-05/0.1132, allocations: 37.7 kB / 456.6 MB, free: 1.465 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1133, allocations: 209 kB / 456.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1134, allocations: 146.1 kB / 456.9 MB, free: 1.109 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.1134, allocations: 12 kB / 456.9 MB, free: 1.098 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.826e-05/0.1136, allocations: 354.7 kB / 457.3 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.1139, allocations: 177.9 kB / 457.4 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004171/0.1143, allocations: 470.7 kB / 457.9 MB, free: 15.97 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009049/0.1152, allocations: 0.6313 MB / 458.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1152, allocations: 0 / 458.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001176/0.1164, allocations: 0.6567 MB / 459.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1164, allocations: 12 kB / 459.2 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.1165, allocations: 12 kB / 459.2 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.1165, allocations: 12 kB / 459.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.117, allocations: 156.3 kB / 459.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.1171, allocations: 19.88 kB / 459.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.1174, allocations: 71.42 kB / 459.5 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.1175, allocations: 39.92 kB / 459.5 MB, free: 14.23 MB / 314.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003323/0.1178, allocations: 225.6 kB / 459.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000494/0.1183, allocations: 269 kB / 460 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006925/0.119, allocations: 352.7 kB / 460.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.119, allocations: 8 kB / 460.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.119, allocations: 4 kB / 460.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.1191, allocations: 3.984 kB / 460.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.1205, allocations: 0.9741 MB / 461.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.1206, allocations: 4 kB / 461.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.1211, allocations: 123.8 kB / 461.4 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.1211, allocations: 4 kB / 461.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.1212, allocations: 19.92 kB / 461.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.1212, allocations: 4 kB / 461.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.1212, allocations: 4 kB / 461.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.1228, allocations: 0.9216 MB / 462.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.92e-05/0.1229, allocations: 128.5 kB / 462.5 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.981e-05/0.123, allocations: 15.94 kB / 462.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.1233, allocations: 32.11 kB / 462.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.1234, allocations: 27.95 kB / 462.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.411e-05/0.1235, allocations: 27.98 kB / 462.6 MB, free: 11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002028/0.1237, allocations: 189.8 kB / 462.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1237, allocations: 4 kB / 462.8 MB, free: 10.81 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005242/0.1242, allocations: 115.7 kB / 462.9 MB, free: 10.7 MB / 314.7 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 (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.00183/0.1261, allocations: 1.494 MB / 464.4 MB, free: 9.168 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1271, allocations: 0.5124 MB / 464.9 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1271, allocations: 0 / 464.9 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.1274, allocations: 156.7 kB / 465.1 MB, free: 8.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007825/0.1282, allocations: 213.2 kB / 465.3 MB, free: 8.289 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.1327, allocations: 2.919 MB / 468.2 MB, free: 5.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.1332, allocations: 0.8639 MB / 469.1 MB, free: 4.285 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002689/0.1335, allocations: 55.39 kB / 469.1 MB, free: 4.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.1338, allocations: 175.3 kB / 469.3 MB, free: 4.059 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1338, allocations: 3.938 kB / 469.3 MB, free: 4.055 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.1547, allocations: 8.41 MB / 477.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002569/0.155, allocations: 228.8 kB / 477.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.309/2.464, allocations: 112 / 477.9 MB, free: 11.36 MB / 330.7 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