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.001044/0.001044, allocations: 114.9 kB / 17.69 MB, free: 5.312 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.001047/0.001047, allocations: 192 kB / 18.63 MB, free: 4.379 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.402/1.402, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009638/0.0009639, allocations: 43.59 kB / 302.1 MB, free: 5.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1012, allocations: 49.45 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005606/0.1069, allocations: 3.18 MB / 354.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1086, allocations: 0.7554 MB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.109, allocations: 11.94 kB / 355.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003886/0.1094, allocations: 79.19 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.1096, allocations: 71.23 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007622/0.1104, allocations: 287.5 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005841/0.111, allocations: 0.6167 MB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.1115, allocations: 341.6 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003154/0.1118, allocations: 231.2 kB / 357.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004102/0.1122, allocations: 250.9 kB / 357.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.696e-05/0.1123, allocations: 72 kB / 357.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.006e-05/0.1124, allocations: 72 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.1126, allocations: 147.6 kB / 357.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.1128, allocations: 282.7 kB / 357.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000756/0.1136, allocations: 0.8525 MB / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1136, allocations: 0 / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.1136, allocations: 3.984 kB / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.1136, allocations: 0 / 358.7 MB, free: 12.48 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.00138/0.115, allocations: 0.8052 MB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1151, allocations: 8.031 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1152, allocations: 56.28 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.1158, allocations: 402.3 kB / 360 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.932e-05/0.1159, allocations: 67.58 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.116, allocations: 52.38 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.1174, allocations: 0.8829 MB / 361 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.1174, allocations: 3.938 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.87e-05/0.1175, allocations: 20 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.1175, allocations: 15.94 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007249/0.1182, allocations: 363 kB / 361.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.1205, allocations: 1.751 MB / 363.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.1217, allocations: 0.5226 MB / 363.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004319/0.1222, allocations: 256.6 kB / 363.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.629e-05/0.1223, allocations: 24.5 kB / 363.9 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003281/0.1226, allocations: 202.5 kB / 364.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.365e-06/0.1226, allocations: 4 kB / 364.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001206/0.1238, allocations: 0.6024 MB / 364.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.124, allocations: 184 kB / 364.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.1242, allocations: 250.7 kB / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.1243, allocations: 33.7 kB / 365.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.1244, allocations: 217.1 kB / 365.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.746e-05/0.1245, allocations: 126.4 kB / 365.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.1247, allocations: 106.3 kB / 365.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1248, allocations: 350.8 kB / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.1251, allocations: 153.2 kB / 366.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004393/0.1255, allocations: 407 kB / 366.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007585/0.1263, allocations: 0.5655 MB / 367.1 MB, free: 3.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1263, allocations: 0 / 367.1 MB, free: 3.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009555/0.1273, allocations: 0.5948 MB / 367.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1273, allocations: 12 kB / 367.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1273, allocations: 8 kB / 367.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.1274, allocations: 12 kB / 367.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004568/0.1278, allocations: 127.8 kB / 367.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.1279, allocations: 19.92 kB / 367.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.1282, allocations: 63.42 kB / 367.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/0.1282, allocations: 32 kB / 367.9 MB, free: 2.648 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.0002623/0.1285, allocations: 216.5 kB / 368.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003708/0.1289, allocations: 229.2 kB / 368.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005905/0.1295, allocations: 312.7 kB / 368.7 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.1295, allocations: 8 kB / 368.7 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1295, allocations: 0 / 368.7 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1295, allocations: 3.984 kB / 368.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.1307, allocations: 0.8809 MB / 369.6 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1307, allocations: 0 / 369.6 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004586/0.1311, allocations: 103.9 kB / 369.7 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.1312, allocations: 3.984 kB / 369.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/0.1312, allocations: 20 kB / 369.7 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.1312, allocations: 3.938 kB / 369.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1312, allocations: 4 kB / 369.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2064/0.3376, allocations: 0.8071 MB / 370.5 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.3379, allocations: 118 kB / 370.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.338, allocations: 18.75 kB / 370.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.3384, allocations: 18.72 kB / 370.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.99e-05/0.3385, allocations: 23.08 kB / 370.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.3385, allocations: 25.22 kB / 370.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002329/0.3388, allocations: 182.9 kB / 370.9 MB, free: 25.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3388, allocations: 0 / 370.9 MB, free: 25.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006393/0.3394, allocations: 110.8 kB / 371 MB, free: 25.06 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.0001721/0.3396, allocations: 121.2 kB / 371.1 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.3407, allocations: 457.4 kB / 371.6 MB, free: 24.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3407, allocations: 1.562 kB / 371.6 MB, free: 24.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.341, allocations: 138.3 kB / 371.7 MB, free: 24.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007374/0.3417, allocations: 176.8 kB / 371.9 MB, free: 24.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.3436, allocations: 1.025 MB / 372.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.344, allocations: 0.8438 MB / 373.7 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.3443, allocations: 47.62 kB / 373.8 MB, free: 23.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.3444, allocations: 38.55 kB / 373.8 MB, free: 23.8 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3444, allocations: 0.5 kB / 373.8 MB, free: 23.8 MB / 302.1 MB Notification: Performance of Templates: time 0.01078/0.3552, allocations: 4.26 MB / 378.1 MB, free: 23.54 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 cvode -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