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.001546/0.001546, allocations: 115.8 kB / 17.69 MB, free: 5.371 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.001772/0.001772, allocations: 191 kB / 18.62 MB, free: 4.449 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.36/1.36, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 50.92 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1138, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.006127/0.12, allocations: 3.184 MB / 354.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.1219, allocations: 0.7554 MB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005853/0.1225, allocations: 12 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005305/0.123, allocations: 75.12 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.1235, allocations: 79.23 kB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008703/0.1244, allocations: 283.5 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008597/0.1253, allocations: 0.6167 MB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005951/0.1259, allocations: 337.6 kB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003587/0.1263, allocations: 227.3 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004849/0.1267, allocations: 262.8 kB / 357.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.1269, allocations: 68 kB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.1271, allocations: 76 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.1273, allocations: 147.6 kB / 357.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003305/0.1276, allocations: 278.7 kB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000991/0.1286, allocations: 0.8487 MB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1286, allocations: 0 / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1286, allocations: 4 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.191e-05/0.1287, allocations: 0 / 358.7 MB, free: 12.45 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.001982/0.1307, allocations: 0.809 MB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1307, allocations: 8.031 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.1309, allocations: 64.28 kB / 359.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007038/0.1316, allocations: 398.3 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.921e-05/0.1317, allocations: 67.58 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1318, allocations: 48.38 kB / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.1336, allocations: 0.8829 MB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.622e-05/0.1336, allocations: 7.938 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.007e-05/0.1337, allocations: 20 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.1337, allocations: 12 kB / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008109/0.1345, allocations: 363 kB / 361.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002707/0.1372, allocations: 1.736 MB / 363.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.1386, allocations: 0.5303 MB / 363.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004634/0.139, allocations: 260.9 kB / 363.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/0.1391, allocations: 20.5 kB / 363.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003606/0.1395, allocations: 202.5 kB / 364.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.645e-06/0.1395, allocations: 3.938 kB / 364.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001324/0.1408, allocations: 0.6024 MB / 364.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.141, allocations: 183.9 kB / 364.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.1413, allocations: 254.7 kB / 365.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.1413, allocations: 41.69 kB / 365.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.1415, allocations: 213.1 kB / 365.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.1417, allocations: 122.4 kB / 365.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.1418, allocations: 106.3 kB / 365.6 MB, free: 5.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.142, allocations: 346.8 kB / 365.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.1423, allocations: 153.2 kB / 366.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005181/0.1428, allocations: 407 kB / 366.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/0.1436, allocations: 0.5691 MB / 367.1 MB, free: 3.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.1437, allocations: 4 kB / 367.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001089/0.1448, allocations: 0.5947 MB / 367.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.1448, allocations: 8 kB / 367.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.1448, allocations: 8 kB / 367.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.1449, allocations: 12 kB / 367.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004727/0.1453, allocations: 131.8 kB / 367.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.223e-05/0.1454, allocations: 19.92 kB / 367.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.1457, allocations: 63.42 kB / 367.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/0.1458, allocations: 28 kB / 367.9 MB, free: 2.621 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.0002836/0.1461, allocations: 220.6 kB / 368.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000398/0.1465, allocations: 225.2 kB / 368.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006651/0.1471, allocations: 312.6 kB / 368.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.1472, allocations: 8 kB / 368.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.1472, allocations: 0 / 368.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1472, allocations: 0 / 368.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.1487, allocations: 0.8887 MB / 369.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.1487, allocations: 7.938 kB / 369.6 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/0.1492, allocations: 99.88 kB / 369.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.1492, allocations: 4 kB / 369.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.691e-05/0.1493, allocations: 12 kB / 369.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.1493, allocations: 4 kB / 369.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.1493, allocations: 8.016 kB / 369.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.203/0.3523, allocations: 0.8022 MB / 370.5 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001523/0.3525, allocations: 119.7 kB / 370.6 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.3526, allocations: 16.53 kB / 370.6 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.3529, allocations: 26.09 kB / 370.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3531, allocations: 20.08 kB / 370.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.3531, allocations: 19.92 kB / 370.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002249/0.3534, allocations: 181.3 kB / 370.9 MB, free: 25.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3534, allocations: 0 / 370.9 MB, free: 25.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007341/0.3541, allocations: 108.7 kB / 371 MB, free: 25.13 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 (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.0001968/0.3543, allocations: 131.5 kB / 371.1 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.3554, allocations: 457.6 kB / 371.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3555, allocations: 0.7188 kB / 371.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.3558, allocations: 134.5 kB / 371.7 MB, free: 25.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.3565, allocations: 184 kB / 371.9 MB, free: 25.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.3584, allocations: 1.019 MB / 372.9 MB, free: 24.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.3589, allocations: 0.8479 MB / 373.7 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002267/0.3591, allocations: 42.89 kB / 373.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.3593, allocations: 35.75 kB / 373.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3593, allocations: 0 / 373.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of Templates: time 0.01091/0.3702, allocations: 4.259 MB / 378.1 MB, free: 23.6 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 -s gbode -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