Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=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.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0016/0.0016, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 227.7 MB / 247.7 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 68.05 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1166, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005246/0.1219, allocations: 3.204 MB / 361.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.1234, allocations: 0.7399 MB / 362.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/0.1237, allocations: 11.94 kB / 362.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003515/0.124, allocations: 79.19 kB / 362.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.1242, allocations: 75.25 kB / 362.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006228/0.1248, allocations: 279.5 kB / 362.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006505/0.1255, allocations: 0.6089 MB / 363.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004994/0.126, allocations: 345.6 kB / 363.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.1263, allocations: 231.2 kB / 364 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003762/0.1267, allocations: 262.8 kB / 364.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.738e-05/0.1268, allocations: 72 kB / 364.3 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.621e-05/0.1269, allocations: 72 kB / 364.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.127, allocations: 139.6 kB / 364.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002776/0.1273, allocations: 290.6 kB / 364.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007998/0.1281, allocations: 0.8142 MB / 365.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1281, allocations: 0 / 365.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1282, allocations: 0 / 365.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1282, allocations: 0 / 365.6 MB, free: 6.734 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.00151/0.1297, allocations: 0.8129 MB / 366.4 MB, free: 5.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.1297, allocations: 16.02 kB / 366.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1299, allocations: 60.19 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004998/0.1304, allocations: 390.4 kB / 366.9 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.105e-05/0.1305, allocations: 67.58 kB / 366.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.867e-05/0.1306, allocations: 52.38 kB / 367 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.1322, allocations: 0.8866 MB / 367.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.1322, allocations: 7.922 kB / 367.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.379e-05/0.1323, allocations: 23.94 kB / 367.9 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.1323, allocations: 12 kB / 367.9 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008265/0.1332, allocations: 364.7 kB / 368.3 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/0.1357, allocations: 1.747 MB / 370 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.1371, allocations: 0.5269 MB / 370.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.1376, allocations: 255 kB / 370.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.1376, allocations: 12.22 kB / 370.8 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004801/0.1381, allocations: 222.6 kB / 371 MB, free: 1.012 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.244e-06/0.1381, allocations: 0 / 371 MB, free: 1.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001361/0.1395, allocations: 0.5926 MB / 371.6 MB, free: 424 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.1396, allocations: 182.1 kB / 371.8 MB, free: 204 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.184/0.3236, allocations: 250.6 kB / 372.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/0.3238, allocations: 36.83 kB / 372.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.324, allocations: 213 kB / 372.3 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.3241, allocations: 124.8 kB / 372.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.3243, allocations: 110.7 kB / 372.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.3245, allocations: 345.7 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.3248, allocations: 155.2 kB / 373 MB, free: 19.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.3253, allocations: 410 kB / 373.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007303/0.3261, allocations: 0.5639 MB / 374 MB, free: 19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.3261, allocations: 3.125 kB / 374 MB, free: 19 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001096/0.3272, allocations: 0.5924 MB / 374.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.3272, allocations: 9.031 kB / 374.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.3272, allocations: 8.312 kB / 374.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.424e-05/0.3273, allocations: 19.86 kB / 374.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.3278, allocations: 127.7 kB / 374.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.3278, allocations: 20.45 kB / 374.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.3281, allocations: 59.98 kB / 374.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.564e-05/0.3282, allocations: 29.17 kB / 374.8 MB, free: 18.83 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.0002997/0.3285, allocations: 219.9 kB / 375.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000435/0.329, allocations: 232.2 kB / 375.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006886/0.3297, allocations: 308.9 kB / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.3297, allocations: 6.562 kB / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3297, allocations: 1.062 kB / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.3297, allocations: 4.047 kB / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.331, allocations: 0.8842 MB / 376.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.331, allocations: 3.531 kB / 376.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.3315, allocations: 104.3 kB / 376.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.3315, allocations: 4.922 kB / 376.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.3315, allocations: 10 kB / 376.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3315, allocations: 3.453 kB / 376.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3315, allocations: 1.375 kB / 376.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.3328, allocations: 0.817 MB / 377.4 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.888e-05/0.3329, allocations: 126.5 kB / 377.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.723e-05/0.333, allocations: 14.06 kB / 377.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.3332, allocations: 21.19 kB / 377.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.799e-05/0.3333, allocations: 25.3 kB / 377.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.3334, allocations: 18.05 kB / 377.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001724/0.3336, allocations: 178.2 kB / 377.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3336, allocations: 0 / 377.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005273/0.3341, allocations: 109.8 kB / 377.9 MB, free: 17.09 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.0001499/0.3342, allocations: 128.7 kB / 378 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.3353, allocations: 484.8 kB / 378.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3353, allocations: 3.438 kB / 378.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002852/0.3356, allocations: 144 kB / 378.6 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007394/0.3364, allocations: 173.6 kB / 378.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.3382, allocations: 1.053 MB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3385, allocations: 0.84 MB / 380.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.3387, allocations: 43.83 kB / 380.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3387, allocations: 0 / 380.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Templates: time 0.01073/0.3494, allocations: 5.651 MB / 386.4 MB, free: 14.13 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches