Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009034/0.0009036, allocations: 91.42 kB / 16.31 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 181.2 kB / 17.21 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.2 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002574, allocations: 6.547 kB / 300.9 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1061, allocations: 50.42 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003677/0.1098, allocations: 2.707 MB / 354 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1112, allocations: 0.7049 MB / 354.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.1115, allocations: 15.94 kB / 354.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.1118, allocations: 51.52 kB / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.112, allocations: 43.62 kB / 354.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005842/0.1125, allocations: 190.9 kB / 355 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005498/0.1131, allocations: 0.5269 MB / 355.6 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.1135, allocations: 255.2 kB / 355.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.1137, allocations: 143.4 kB / 355.9 MB, free: 6.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003135/0.1141, allocations: 175 kB / 356.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.1141, allocations: 16 kB / 356.1 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.404e-05/0.1142, allocations: 16 kB / 356.1 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.1143, allocations: 79.62 kB / 356.2 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1144, allocations: 105.5 kB / 356.3 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005887/0.115, allocations: 0.6506 MB / 357 MB, free: 5.906 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.115, allocations: 4 kB / 357 MB, free: 5.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.115, allocations: 0 / 357 MB, free: 5.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.115, allocations: 3.938 kB / 357 MB, free: 5.898 MB / 286.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.001318/0.1164, allocations: 0.7115 MB / 357.7 MB, free: 5.129 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.1164, allocations: 12.03 kB / 357.7 MB, free: 5.117 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.1165, allocations: 94.47 kB / 357.8 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1167, allocations: 55.34 kB / 357.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.1172, allocations: 385.1 kB / 358.2 MB, free: 4.547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.112e-05/0.1173, allocations: 70.95 kB / 358.3 MB, free: 4.473 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.092e-05/0.1174, allocations: 63.91 kB / 358.4 MB, free: 4.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.119, allocations: 0.8785 MB / 359.2 MB, free: 3.492 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.119, allocations: 7.891 kB / 359.2 MB, free: 3.484 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/0.119, allocations: 20 kB / 359.3 MB, free: 3.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1191, allocations: 12 kB / 359.3 MB, free: 3.453 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007539/0.1198, allocations: 367.1 kB / 359.6 MB, free: 3.098 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.1221, allocations: 1.759 MB / 361.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1234, allocations: 0.5363 MB / 361.9 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004458/0.1239, allocations: 249.4 kB / 362.2 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/0.1239, allocations: 12.53 kB / 362.2 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.1243, allocations: 213.8 kB / 362.4 MB, free: 176 kB / 286.1 MB Notification: Performance of pre-optimization done (n=57): time 2.374e-06/0.1243, allocations: 0 / 362.4 MB, free: 176 kB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.001246/0.1256, allocations: 0.6197 MB / 363 MB, free: 15.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.1257, allocations: 194.5 kB / 363.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.126, allocations: 250.7 kB / 363.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.1261, allocations: 37.7 kB / 363.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.1262, allocations: 212.9 kB / 363.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.1263, allocations: 114.5 kB / 363.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.1263, allocations: 12 kB / 363.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1265, allocations: 350.8 kB / 364.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003161/0.1268, allocations: 165.2 kB / 364.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/0.1273, allocations: 407 kB / 364.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003847/0.1277, allocations: 227.6 kB / 364.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.1277, allocations: 7.938 kB / 365 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009703/0.1287, allocations: 0.5971 MB / 365.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.1287, allocations: 12 kB / 365.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1287, allocations: 8 kB / 365.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.1288, allocations: 12 kB / 365.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.1292, allocations: 136.1 kB / 365.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.1293, allocations: 23.94 kB / 365.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.1295, allocations: 59.53 kB / 365.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.1296, allocations: 32.06 kB / 365.8 MB, free: 12.55 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.0002739/0.1299, allocations: 216.5 kB / 366 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003708/0.1303, allocations: 229.1 kB / 366.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006046/0.1309, allocations: 312.5 kB / 366.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.1309, allocations: 8 kB / 366.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1309, allocations: 0 / 366.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.1309, allocations: 7.938 kB / 366.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.132, allocations: 0.8849 MB / 367.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.132, allocations: 0 / 367.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004705/0.1325, allocations: 111.8 kB / 367.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1325, allocations: 0 / 367.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.1326, allocations: 19.98 kB / 367.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.1326, allocations: 7.953 kB / 367.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.1326, allocations: 4 kB / 367.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.1339, allocations: 0.8232 MB / 368.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.565e-05/0.134, allocations: 120.6 kB / 368.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/0.1341, allocations: 15.98 kB / 368.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.1343, allocations: 31.98 kB / 368.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.04e-05/0.1344, allocations: 23.92 kB / 368.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.1344, allocations: 16 kB / 368.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001639/0.1346, allocations: 182 kB / 368.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1346, allocations: 3.938 kB / 368.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000477/0.1351, allocations: 107.7 kB / 368.9 MB, free: 9.336 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.001576/0.1367, allocations: 1.396 MB / 370.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008512/0.1375, allocations: 457.4 kB / 370.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.1376, allocations: 12.06 kB / 370.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.1378, allocations: 135.9 kB / 370.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006746/0.1385, allocations: 176.3 kB / 371.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.1426, allocations: 2.795 MB / 373.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.143, allocations: 0.8361 MB / 374.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002386/0.1432, allocations: 55.19 kB / 374.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.1434, allocations: 155.4 kB / 374.9 MB, free: 3.109 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1434, allocations: 0 / 374.9 MB, free: 3.109 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.1626, allocations: 7.691 MB / 382.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.1628, allocations: 197 kB / 382.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.089, allocations: 7.375 kB / 382.8 MB, free: 11.34 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_EngineThrottleControl_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_EngineThrottleControl.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat does not exist to compare? outputFormat=mat