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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001145/0.001145, allocations: 121.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 208.6 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001284, allocations: 51.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3208, allocations: 50.54 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004514/0.3254, allocations: 3.212 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3269, allocations: 0.7516 MB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.3271, allocations: 15.94 kB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.3275, allocations: 71.19 kB / 413.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.3277, allocations: 67.27 kB / 413.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.3283, allocations: 291.5 kB / 413.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000549/0.3289, allocations: 0.6205 MB / 414.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004384/0.3293, allocations: 337.6 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.3295, allocations: 235.2 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000313/0.3298, allocations: 254.8 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.3299, allocations: 72 kB / 415.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.832e-05/0.33, allocations: 72 kB / 415.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.3302, allocations: 143.6 kB / 415.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002136/0.3304, allocations: 278.7 kB / 415.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007751/0.3312, allocations: 0.8521 MB / 416.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.3312, allocations: 0 / 416.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3312, allocations: 4 kB / 416.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3312, allocations: 0 / 416.5 MB, free: 10.36 MB / 334.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.001333/0.3326, allocations: 0.8241 MB / 417.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.3326, allocations: 12.03 kB / 417.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.992e-05/0.3327, allocations: 60.56 kB / 417.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005143/0.3332, allocations: 394.6 kB / 417.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.39e-05/0.3333, allocations: 67.58 kB / 417.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-05/0.3334, allocations: 64.27 kB / 417.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3348, allocations: 0.8636 MB / 418.7 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.3348, allocations: 3.938 kB / 418.7 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.3349, allocations: 27.94 kB / 418.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.3349, allocations: 12 kB / 418.8 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007355/0.3356, allocations: 355.1 kB / 419.1 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.3378, allocations: 1.748 MB / 420.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.3391, allocations: 0.5407 MB / 421.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/0.3396, allocations: 262.7 kB / 421.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.535e-05/0.3396, allocations: 12.77 kB / 421.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.34, allocations: 210.7 kB / 421.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.033e-06/0.34, allocations: 0 / 421.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001224/0.3412, allocations: 0.6083 MB / 422.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.3414, allocations: 186.2 kB / 422.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.3416, allocations: 254.7 kB / 422.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.591e-05/0.3417, allocations: 37.7 kB / 423 MB, free: 3.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.3418, allocations: 213.3 kB / 423.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.3419, allocations: 127 kB / 423.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.3421, allocations: 106.3 kB / 423.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3422, allocations: 350.8 kB / 423.7 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.3425, allocations: 153.2 kB / 423.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.343, allocations: 411 kB / 424.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007214/0.3437, allocations: 0.554 MB / 424.8 MB, free: 1.363 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3437, allocations: 4 kB / 424.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009366/0.3447, allocations: 0.5971 MB / 425.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3447, allocations: 12.86 kB / 425.5 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.3447, allocations: 8 kB / 425.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.3448, allocations: 16 kB / 425.5 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/0.3452, allocations: 131.8 kB / 425.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.3452, allocations: 15.94 kB / 425.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.3455, allocations: 59.66 kB / 425.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.357e-05/0.3456, allocations: 32 kB / 425.7 MB, free: 500 kB / 334.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.0002445/0.3458, allocations: 220.5 kB / 425.9 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003635/0.3462, allocations: 229.3 kB / 426.1 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006018/0.3468, allocations: 308.5 kB / 426.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3468, allocations: 4 kB / 426.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3469, allocations: 7.938 kB / 426.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.3469, allocations: 3.984 kB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.348, allocations: 0.8932 MB / 427.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.348, allocations: 0 / 427.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000468/0.3485, allocations: 103.8 kB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.3485, allocations: 4 kB / 427.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.3485, allocations: 12 kB / 427.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.3486, allocations: 7.984 kB / 427.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3486, allocations: 0 / 427.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.3499, allocations: 0.8162 MB / 428.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.483e-05/0.35, allocations: 120.8 kB / 428.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.312e-05/0.35, allocations: 15.94 kB / 428.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.3503, allocations: 19.98 kB / 428.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.3504, allocations: 27.97 kB / 428.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.3504, allocations: 19.98 kB / 428.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.3506, allocations: 177.9 kB / 428.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3506, allocations: 0 / 428.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004877/0.3511, allocations: 115.8 kB / 428.8 MB, free: 13.29 MB / 350.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.0001479/0.3512, allocations: 129.2 kB / 428.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008752/0.3521, allocations: 464.9 kB / 429.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3521, allocations: 4.562 kB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002519/0.3524, allocations: 131.8 kB / 429.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000659/0.3531, allocations: 173.6 kB / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.3546, allocations: 1.025 MB / 430.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.355, allocations: 0.8474 MB / 431.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001837/0.3552, allocations: 47.28 kB / 431.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.3553, allocations: 35.42 kB / 431.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3553, allocations: 0 / 431.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Templates: time 0.008561/0.3639, allocations: 4.35 MB / 436 MB, free: 6.051 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches