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.001198/0.001198, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2922, 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.005025/0.2973, allocations: 3.205 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.2988, allocations: 0.7477 MB / 413.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002318/0.2991, allocations: 15.94 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004116/0.2995, allocations: 75.19 kB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2997, allocations: 75.23 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007154/0.3004, allocations: 283.5 kB / 413.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005842/0.301, allocations: 0.6244 MB / 414.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004537/0.3015, allocations: 329.7 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.3017, allocations: 235.3 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.3021, allocations: 262.8 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.3022, allocations: 72 kB / 415.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.846e-05/0.3022, allocations: 72 kB / 415.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.3024, allocations: 147.6 kB / 415.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.3027, allocations: 282.6 kB / 415.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007696/0.3034, allocations: 0.8343 MB / 416.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3035, allocations: 4 kB / 416.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3035, allocations: 0 / 416.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3035, allocations: 0 / 416.4 MB, free: 10.37 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.001402/0.3049, allocations: 0.8169 MB / 417.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3049, allocations: 8.031 kB / 417.3 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.305, allocations: 56.28 kB / 417.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006114/0.3057, allocations: 398.3 kB / 417.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.665e-05/0.3058, allocations: 79.52 kB / 417.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-05/0.3059, allocations: 56.27 kB / 417.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3073, allocations: 0.8675 MB / 418.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.3074, allocations: 11.88 kB / 418.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.802e-05/0.3074, allocations: 24 kB / 418.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.3074, allocations: 12 kB / 418.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007316/0.3082, allocations: 355.1 kB / 419.1 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.3105, allocations: 1.743 MB / 420.9 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.3119, allocations: 0.5264 MB / 421.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.3124, allocations: 266.7 kB / 421.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.53e-05/0.3125, allocations: 16.75 kB / 421.7 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.3129, allocations: 210.7 kB / 421.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.274e-06/0.3129, allocations: 0 / 421.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00127/0.3142, allocations: 0.6001 MB / 422.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.3143, allocations: 182.4 kB / 422.6 MB, free: 3.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.3146, allocations: 258.6 kB / 422.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.3146, allocations: 33.7 kB / 422.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3148, allocations: 213 kB / 423.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3149, allocations: 130.3 kB / 423.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.315, allocations: 102.3 kB / 423.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3152, allocations: 346.8 kB / 423.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/0.3155, allocations: 165.2 kB / 423.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/0.3159, allocations: 403 kB / 424.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007336/0.3167, allocations: 0.5578 MB / 424.8 MB, free: 1.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.3167, allocations: 4 kB / 424.8 MB, free: 1.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009929/0.3177, allocations: 0.5973 MB / 425.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3177, allocations: 8 kB / 425.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3177, allocations: 8 kB / 425.4 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.308e-05/0.3178, allocations: 12 kB / 425.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004584/0.3182, allocations: 132.3 kB / 425.6 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.113e-05/0.3183, allocations: 23.92 kB / 425.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.3186, allocations: 51.58 kB / 425.6 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.3186, allocations: 28 kB / 425.7 MB, free: 0.5273 MB / 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.0002586/0.3189, allocations: 220.5 kB / 425.9 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003847/0.3193, allocations: 233.1 kB / 426.1 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006215/0.3199, allocations: 312.4 kB / 426.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.3199, allocations: 11.98 kB / 426.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.3199, allocations: 0 / 426.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.32, allocations: 0 / 426.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.3211, allocations: 0.8854 MB / 427.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3211, allocations: 0 / 427.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.3216, allocations: 111.8 kB / 427.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.004e-06/0.3216, allocations: 7.984 kB / 427.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.3217, allocations: 12 kB / 427.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.3217, allocations: 8 kB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3217, allocations: 0 / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.323, allocations: 0.8159 MB / 428.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.813e-05/0.3231, allocations: 116.7 kB / 428.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.162e-05/0.3232, allocations: 16 kB / 428.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.3234, allocations: 19.98 kB / 428.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.868e-05/0.3235, allocations: 19.97 kB / 428.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.3235, allocations: 16 kB / 428.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.3237, allocations: 193.9 kB / 428.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3237, allocations: 0 / 428.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.3242, allocations: 107.7 kB / 428.7 MB, free: 13.33 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.0001551/0.3243, allocations: 117.4 kB / 428.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008608/0.3252, allocations: 455.8 kB / 429.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3252, allocations: 1.688 kB / 429.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.3255, allocations: 135.8 kB / 429.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006735/0.3262, allocations: 168.8 kB / 429.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.328, allocations: 1.026 MB / 430.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.3285, allocations: 0.8435 MB / 431.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.3287, allocations: 43.27 kB / 431.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.3288, allocations: 43.42 kB / 431.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3288, allocations: 4 kB / 431.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Templates: time 0.009178/0.338, allocations: 4.354 MB / 435.9 MB, free: 6.105 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