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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 98.25 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.368e-05/1.381e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.4914, allocations: 83.85 MB / 471.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.4917, allocations: 71.97 kB / 471.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03458/0.5263, allocations: 8.629 MB / 480 MB, free: 2.293 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5264, allocations: 0 / 480 MB, free: 2.293 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.574e-05/0.5264, allocations: 12 kB / 480 MB, free: 2.281 MB / 346.7 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.001944/0.5284, allocations: 0.6847 MB / 480.7 MB, free: 1.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.5284, allocations: 12.03 kB / 480.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002569/0.5287, allocations: 55.34 kB / 480.8 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009296/0.5297, allocations: 402.4 kB / 481.2 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.5298, allocations: 63 kB / 481.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.5299, allocations: 28 kB / 481.2 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001065/0.531, allocations: 318.6 kB / 481.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.5331, allocations: 0.7561 MB / 482.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.5331, allocations: 4 kB / 482.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.53e-05/0.5332, allocations: 0 / 482.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.5332, allocations: 12 kB / 482.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003821/0.5371, allocations: 1.704 MB / 484 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.5389, allocations: 482.8 kB / 484.5 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.5395, allocations: 226.4 kB / 484.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.491e-05/0.5395, allocations: 12.7 kB / 484.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.54, allocations: 180.2 kB / 484.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 4.038e-06/0.54, allocations: 0 / 484.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.00117/0.5412, allocations: 381.2 kB / 485.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001659/0.5414, allocations: 178.1 kB / 485.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/0.5417, allocations: 210 kB / 485.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/0.5418, allocations: 25.7 kB / 485.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.542, allocations: 208.9 kB / 485.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.5422, allocations: 122.3 kB / 486 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.5422, allocations: 0 / 486 MB, free: 11.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.5424, allocations: 354.8 kB / 486.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.5428, allocations: 121.6 kB / 486.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005842/0.5434, allocations: 370.8 kB / 486.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004847/0.5439, allocations: 183.8 kB / 487 MB, free: 10.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.5439, allocations: 4 kB / 487 MB, free: 10.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001303/0.5452, allocations: 490.2 kB / 487.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.5453, allocations: 8 kB / 487.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.5453, allocations: 8 kB / 487.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.245e-05/0.5454, allocations: 15.94 kB / 487.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008261/0.5462, allocations: 135.8 kB / 487.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.773e-05/0.5462, allocations: 15.94 kB / 487.7 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.5468, allocations: 51.8 kB / 487.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.077e-05/0.5469, allocations: 31.98 kB / 487.8 MB, free: 10.04 MB / 362.7 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 (engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.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,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,engine.cylinderAirCharge.integrator.local_reset) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000246/0.5471, allocations: 147.8 kB / 487.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005535/0.5477, allocations: 197.3 kB / 488.1 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007238/0.5484, allocations: 257.2 kB / 488.4 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.5485, allocations: 7.938 kB / 488.4 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5485, allocations: 4 kB / 488.4 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.5485, allocations: 4.031 kB / 488.4 MB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.5501, allocations: 0.7758 MB / 489.1 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.5501, allocations: 4 kB / 489.1 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008223/0.5509, allocations: 103.9 kB / 489.2 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/0.551, allocations: 48 / 489.2 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.583e-05/0.551, allocations: 15.97 kB / 489.3 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.5511, allocations: 8 kB / 489.3 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.5511, allocations: 0 / 489.3 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.5527, allocations: 0.7461 MB / 490 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.5528, allocations: 116.5 kB / 490.1 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.918e-05/0.5529, allocations: 16 kB / 490.1 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.5534, allocations: 15.98 kB / 490.2 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.5535, allocations: 19.97 kB / 490.2 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.438e-05/0.5535, allocations: 16 kB / 490.2 MB, free: 7.488 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002334/0.5538, allocations: 162 kB / 490.4 MB, free: 7.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5538, allocations: 4 kB / 490.4 MB, free: 7.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009328/0.5547, allocations: 99.67 kB / 490.5 MB, free: 7.227 MB / 362.7 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,engine.speedSensor.flange.phi) * 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002643/0.555, allocations: 132.1 kB / 490.6 MB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009955/0.556, allocations: 381.4 kB / 491 MB, free: 6.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.5561, allocations: 0 / 491 MB, free: 6.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.5563, allocations: 119.9 kB / 491.1 MB, free: 6.605 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008112/0.5572, allocations: 145.6 kB / 491.2 MB, free: 6.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.5594, allocations: 0.7595 MB / 492 MB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.56, allocations: 0.8554 MB / 492.8 MB, free: 4.793 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004216/0.5604, allocations: 47.27 kB / 492.9 MB, free: 4.746 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.5606, allocations: 31.44 kB / 492.9 MB, free: 4.715 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5607, allocations: 0 / 492.9 MB, free: 4.715 MB / 362.7 MB Notification: Performance of Templates: time 0.01193/0.5726, allocations: 3.551 MB / 496.5 MB, free: 1.18 MB / 362.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:add.k1,add.k2,engine.angleSensor.phi,engine.crankshaftPositionEvent.rotationalClock.abs1.generateEvent,engine.crankshaftPositionEvent.rotationalClock.abs2.generateEvent,engine.crankshaftPositionEvent.rotationalClock.angular_offset.y_start,engine.crankshaftPositionEvent.rotationalClock.direction_sign.generateEvent,engine.crankshaftPositionEvent.rotationalClock.sub.k1,engine.crankshaftPositionEvent.rotationalClock.sub.k2,engine.crankshaftPositionEvent.rotationalClock.useSolver,engine.crankshaftPositionEvent.rotationalClock.y_clock.useSolver,engine.crankshaftPositionEvent.threshold.k,engine.crankshaftPositionEvent.trigger_interval,engine.crankshaftPositionEvent.useSolver,engine.cylinderAirCharge.add.k1,engine.cylinderAirCharge.add.k2,engine.cylinderAirCharge.hold1.y_start,engine.cylinderAirCharge.integrator.initType,engine.cylinderAirCharge.integrator.k,engine.cylinderAirCharge.integrator.y,engine.cylinderAirCharge.integrator.y_start,engine.inductionToPowerDelay.delay.n,engine.inductionToPowerDelay.delay.resolution,engine.inductionToPowerDelay.delay.shift,engine.inductionToPowerDelay.hold1.y_start,engine.inertia.J,engine.inertia.phi,engine.inertia.w,engine.intakeManifold.P_0,engine.intakeManifold.P_m,engine.intakeManifold.RTVmRatio,engine.speedSensor.flange.phi,engine.speedSensor.w,engine.throttleBody.P_0,engine.throttleBody.m_ai,engine.torque.tau,engine.torqueGeneration.AFR,engine.torqueGeneration.sigma,hold1.y_start,speedControl.k_I,speedControl.k_p,speedRef.height,speedRef.offset,speedRef.startTime,step1.height,step1.offset,step1.startTime,step2.height,step2.offset,step2.startTime,time