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.001231/0.001231, allocations: 112.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 207.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2883, allocations: 50.53 MB / 409.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004557/0.2929, allocations: 3.214 MB / 413.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.2944, allocations: 0.7477 MB / 413.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.2946, allocations: 15.94 kB / 413.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.295, allocations: 71.19 kB / 413.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001562/0.2952, allocations: 75.23 kB / 414 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006479/0.2958, allocations: 283.5 kB / 414.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005819/0.2964, allocations: 0.6206 MB / 414.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004583/0.2969, allocations: 329.7 kB / 415.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.2971, allocations: 235.2 kB / 415.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003391/0.2975, allocations: 262.8 kB / 415.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.38e-05/0.2976, allocations: 68 kB / 415.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.803e-05/0.2977, allocations: 76 kB / 415.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.2978, allocations: 139.6 kB / 416 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.2981, allocations: 290.6 kB / 416.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007576/0.2988, allocations: 0.8383 MB / 417.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2989, allocations: 4 kB / 417.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2989, allocations: 0 / 417.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.2989, allocations: 0 / 417.1 MB, free: 10.52 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.001399/0.3003, allocations: 0.8169 MB / 417.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.3003, allocations: 8.031 kB / 418 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.3005, allocations: 56.28 kB / 418 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005318/0.301, allocations: 402.3 kB / 418.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.957e-05/0.3011, allocations: 63.58 kB / 418.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.3012, allocations: 60.28 kB / 418.5 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.3027, allocations: 0.8714 MB / 419.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.3027, allocations: 7.938 kB / 419.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.3028, allocations: 20 kB / 419.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.3028, allocations: 12 kB / 419.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007459/0.3035, allocations: 359 kB / 419.8 MB, free: 7.727 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.3058, allocations: 1.743 MB / 421.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.3071, allocations: 0.5264 MB / 422.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004481/0.3076, allocations: 258.8 kB / 422.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.3077, allocations: 16.75 kB / 422.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003588/0.308, allocations: 214.6 kB / 422.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.144e-06/0.308, allocations: 7.938 kB / 422.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001274/0.3093, allocations: 0.604 MB / 423.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.3095, allocations: 182.2 kB / 423.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.3097, allocations: 258.6 kB / 423.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.3098, allocations: 33.7 kB / 423.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.3099, allocations: 213 kB / 423.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.31, allocations: 122.3 kB / 423.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.3102, allocations: 110.6 kB / 424 MB, free: 3.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3103, allocations: 346.8 kB / 424.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.3106, allocations: 153.2 kB / 424.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004689/0.3111, allocations: 407 kB / 424.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007931/0.3119, allocations: 0.5579 MB / 425.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.3119, allocations: 0 / 425.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009955/0.3129, allocations: 0.5938 MB / 426.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.313, allocations: 12 kB / 426.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.313, allocations: 12.12 kB / 426.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.313, allocations: 12 kB / 426.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.3135, allocations: 127.8 kB / 426.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.151e-05/0.3135, allocations: 19.92 kB / 426.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.3138, allocations: 59.52 kB / 426.3 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.19e-05/0.3139, allocations: 28 kB / 426.3 MB, free: 0.6914 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.0002658/0.3142, allocations: 224.4 kB / 426.6 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.3145, allocations: 237.1 kB / 426.8 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006226/0.3152, allocations: 304.5 kB / 427.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-06/0.3152, allocations: 4 kB / 427.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3152, allocations: 4 kB / 427.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3152, allocations: 0 / 427.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.3164, allocations: 0.8931 MB / 428 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3164, allocations: 0 / 428 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.3169, allocations: 107.9 kB / 428.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3169, allocations: 3.938 kB / 428.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.3169, allocations: 16 kB / 428.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.3169, allocations: 0 / 428.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.317, allocations: 4 kB / 428.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.3183, allocations: 0.8082 MB / 428.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.782e-05/0.3184, allocations: 116.7 kB / 429 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.524e-05/0.3184, allocations: 12 kB / 429.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.3187, allocations: 27.98 kB / 429.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.3188, allocations: 23.91 kB / 429.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.3188, allocations: 19.98 kB / 429.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.319, allocations: 189.8 kB / 429.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.319, allocations: 0 / 429.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004804/0.3195, allocations: 107.7 kB / 429.4 MB, free: 13.5 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.0001547/0.3196, allocations: 121.5 kB / 429.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008623/0.3205, allocations: 465.3 kB / 430 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3205, allocations: 4.188 kB / 430 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.3208, allocations: 131.9 kB / 430.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007024/0.3215, allocations: 186.2 kB / 430.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.3232, allocations: 1.055 MB / 431.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.3236, allocations: 0.8435 MB / 432.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.3237, allocations: 43.42 kB / 432.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3237, allocations: 0 / 432.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Templates: time 0.008498/0.3322, allocations: 5.7 MB / 437.9 MB, free: 4.898 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/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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches