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: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001066/0.001066, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.406/1.406, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 61.98 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1173, allocations: 49.43 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005632/0.123, allocations: 3.196 MB / 353.9 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.1247, allocations: 0.7476 MB / 354.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002748/0.125, allocations: 11.94 kB / 354.7 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.1254, allocations: 79.14 kB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.1256, allocations: 71.23 kB / 354.8 MB, free: 300 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006842/0.1263, allocations: 299.5 kB / 355.1 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006126/0.1269, allocations: 0.6089 MB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000477/0.1274, allocations: 325.7 kB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.1276, allocations: 235.2 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003282/0.128, allocations: 258.8 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.053e-05/0.1281, allocations: 72 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.45e-05/0.1281, allocations: 72 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.1283, allocations: 143.6 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.1286, allocations: 282.7 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007668/0.1294, allocations: 0.8219 MB / 357.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1294, allocations: 0 / 357.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1294, allocations: 4 kB / 357.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.1294, allocations: 0 / 357.9 MB, free: 13.2 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.001429/0.1308, allocations: 0.8169 MB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1309, allocations: 8.031 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.131, allocations: 56.28 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000473/0.1315, allocations: 390.3 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.1316, allocations: 75.5 kB / 359.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.484e-05/0.1317, allocations: 56.38 kB / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1331, allocations: 0.8712 MB / 360.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.1332, allocations: 7.938 kB / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.777e-05/0.1332, allocations: 24 kB / 360.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.1332, allocations: 12 kB / 360.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000763/0.134, allocations: 359 kB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002318/0.1363, allocations: 1.767 MB / 362.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.1377, allocations: 0.5265 MB / 362.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000435/0.1381, allocations: 247.7 kB / 363.1 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.731e-05/0.1382, allocations: 20.52 kB / 363.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004376/0.1387, allocations: 207.7 kB / 363.3 MB, free: 7.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.335e-06/0.1387, allocations: 0 / 363.3 MB, free: 7.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001287/0.14, allocations: 0.5946 MB / 363.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.1401, allocations: 192.2 kB / 364.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.1404, allocations: 250.7 kB / 364.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.1404, allocations: 37.7 kB / 364.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.1406, allocations: 216.8 kB / 364.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.1407, allocations: 122.4 kB / 364.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.1408, allocations: 102.3 kB / 364.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.141, allocations: 346.8 kB / 365.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.1413, allocations: 157.2 kB / 365.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004762/0.1418, allocations: 407 kB / 365.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007857/0.1426, allocations: 0.5671 MB / 366.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1426, allocations: 0 / 366.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001016/0.1436, allocations: 0.5978 MB / 366.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.1437, allocations: 8 kB / 366.9 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.1437, allocations: 8 kB / 366.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/0.1437, allocations: 12.69 kB / 366.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.1442, allocations: 135.8 kB / 367 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.105e-05/0.1443, allocations: 23.86 kB / 367.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.1446, allocations: 63.38 kB / 367.1 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.237e-05/0.1446, allocations: 31.98 kB / 367.1 MB, free: 3.352 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.0003053/0.1449, allocations: 216.6 kB / 367.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004048/0.1454, allocations: 221.2 kB / 367.6 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006136/0.146, allocations: 316.6 kB / 367.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.146, allocations: 4 kB / 367.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.146, allocations: 4 kB / 367.9 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.146, allocations: 3.984 kB / 367.9 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.1474, allocations: 0.8843 MB / 368.8 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1474, allocations: 4 kB / 368.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/0.1479, allocations: 103.9 kB / 368.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1479, allocations: 0 / 368.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/0.1479, allocations: 20.03 kB / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.148, allocations: 0 / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.148, allocations: 7.984 kB / 368.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.1493, allocations: 0.8112 MB / 369.7 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.784e-05/0.1494, allocations: 124.6 kB / 369.8 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.629e-05/0.1494, allocations: 16 kB / 369.9 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.1497, allocations: 19.98 kB / 369.9 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.825e-05/0.1498, allocations: 23.97 kB / 369.9 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.289e-05/0.1498, allocations: 16 kB / 369.9 MB, free: 452 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001826/0.15, allocations: 189.9 kB / 370.1 MB, free: 264 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.15, allocations: 0 / 370.1 MB, free: 264 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005266/0.1506, allocations: 107.7 kB / 370.2 MB, free: 156 kB / 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.0001729/0.1507, allocations: 127.6 kB / 370.3 MB, free: 24 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1987/0.3495, allocations: 474.5 kB / 370.8 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.964e-06/0.3495, allocations: 2.719 kB / 370.8 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003346/0.3499, allocations: 138.4 kB / 370.9 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009065/0.3508, allocations: 176 kB / 371.1 MB, free: 25.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.3529, allocations: 1.059 MB / 372.2 MB, free: 25.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.3534, allocations: 0.8453 MB / 373 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.3535, allocations: 41.61 kB / 373 MB, free: 24.52 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3535, allocations: 3.828 kB / 373.1 MB, free: 24.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01216/0.3657, allocations: 5.659 MB / 378.7 MB, free: 23.82 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches