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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001392/0.001392, allocations: 77.94 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 159.7 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 177.1 MB / 204.7 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 61.22 kB / 325.5 MB, free: 196 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1276, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005328/0.133, allocations: 3.034 MB / 381.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.1346, allocations: 0.7398 MB / 382.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.1349, allocations: 15.88 kB / 382.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.1353, allocations: 75.19 kB / 382.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.1355, allocations: 83.23 kB / 382.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007266/0.1362, allocations: 291.5 kB / 383.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000782/0.137, allocations: 0.6168 MB / 383.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000504/0.1375, allocations: 234.1 kB / 384 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.1378, allocations: 235.2 kB / 384.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003636/0.1381, allocations: 226.9 kB / 384.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.1382, allocations: 76 kB / 384.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.1383, allocations: 72 kB / 384.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.1385, allocations: 147.6 kB / 384.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.1388, allocations: 223 kB / 384.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009678/0.1397, allocations: 0.8484 MB / 385.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1397, allocations: 0 / 385.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1397, allocations: 0 / 385.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.1397, allocations: 0 / 385.8 MB, free: 8.566 MB / 350.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.001504/0.1413, allocations: 0.7449 MB / 386.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1413, allocations: 19.98 kB / 386.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.1414, allocations: 60.56 kB / 386.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006193/0.142, allocations: 337.1 kB / 386.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.1422, allocations: 101.2 kB / 387 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.54e-05/0.1423, allocations: 52.33 kB / 387.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.1439, allocations: 0.8969 MB / 388 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.1439, allocations: 11.94 kB / 388 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.548e-05/0.144, allocations: 16 kB / 388 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.144, allocations: 12 kB / 388 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008221/0.1448, allocations: 363 kB / 388.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.1473, allocations: 1.478 MB / 389.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.1486, allocations: 0.5138 MB / 390.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/0.1491, allocations: 223.8 kB / 390.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.522e-05/0.1491, allocations: 16.22 kB / 390.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003946/0.1495, allocations: 243.9 kB / 390.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.014e-06/0.1495, allocations: 0 / 390.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001292/0.1508, allocations: 0.5962 MB / 391.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.151, allocations: 186.6 kB / 391.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.1512, allocations: 245.9 kB / 391.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/0.1513, allocations: 37.7 kB / 391.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1514, allocations: 217.3 kB / 392.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.1515, allocations: 131.5 kB / 392.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.1517, allocations: 98.59 kB / 392.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1519, allocations: 354.8 kB / 392.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004193/0.1523, allocations: 157.2 kB / 392.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006032/0.1529, allocations: 428.8 kB / 393.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008988/0.1538, allocations: 0.5778 MB / 393.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.874e-06/0.1538, allocations: 0 / 393.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001095/0.1549, allocations: 0.5948 MB / 394.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1549, allocations: 8 kB / 394.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.1549, allocations: 8 kB / 394.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.1549, allocations: 12 kB / 394.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.1554, allocations: 135.8 kB / 394.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.955e-05/0.1554, allocations: 15.94 kB / 394.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.1557, allocations: 55.66 kB / 394.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.1558, allocations: 36.27 kB / 394.7 MB, free: 15.07 MB / 366.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.0002729/0.1561, allocations: 217.2 kB / 394.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004008/0.1565, allocations: 233.3 kB / 395.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006618/0.1571, allocations: 308.5 kB / 395.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.1571, allocations: 4 kB / 395.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1571, allocations: 4 kB / 395.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1572, allocations: 3.984 kB / 395.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.1583, allocations: 0.7247 MB / 396.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.1583, allocations: 0 / 396.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005035/0.1588, allocations: 103.9 kB / 396.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.1588, allocations: 3.938 kB / 396.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.785e-05/0.1589, allocations: 15.98 kB / 396.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1589, allocations: 4 kB / 396.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.1589, allocations: 7.938 kB / 396.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.1604, allocations: 0.8113 MB / 397.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.124e-05/0.1605, allocations: 39.64 kB / 397.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.021e-05/0.1606, allocations: 24.05 kB / 397.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.1608, allocations: 19.98 kB / 397.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.524e-05/0.1609, allocations: 15.97 kB / 397.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.1609, allocations: 19.98 kB / 397.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.1611, allocations: 173.2 kB / 397.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1611, allocations: 3.938 kB / 397.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004955/0.1616, allocations: 119.7 kB / 397.5 MB, free: 12.16 MB / 366.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.0001564/0.1618, allocations: 128.4 kB / 397.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008865/0.1627, allocations: 436 kB / 398.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1627, allocations: 4 kB / 398.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.1629, allocations: 119.9 kB / 398.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.1636, allocations: 173.4 kB / 398.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.1656, allocations: 1.03 MB / 399.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.1658, allocations: 240.9 kB / 399.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.166, allocations: 39.28 kB / 399.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.1662, allocations: 40.48 kB / 399.7 MB, free: 9.914 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1662, allocations: 0 / 399.7 MB, free: 9.914 MB / 366.1 MB Notification: Performance of Templates: time 0.01009/0.1762, allocations: 4.292 MB / 404 MB, free: 5.676 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.585649284068495]