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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009383/0.0009382, allocations: 98.23 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.674e-05/1.679e-05, allocations: 0 / 343.7 MB, free: 8.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 51.47 MB / 395.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3442/0.4479, allocations: 84.71 MB / 479.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.4482, allocations: 69.22 kB / 479.9 MB, free: 8.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02041/0.4686, allocations: 8.722 MB / 488.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4687, allocations: 0 / 488.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.459e-05/0.4687, allocations: 12 kB / 488.7 MB, free: 1.332 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.0009887/0.4697, allocations: 0.6986 MB / 489.4 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.4697, allocations: 16.03 kB / 489.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.739e-05/0.4698, allocations: 55.34 kB / 489.4 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.4703, allocations: 396.1 kB / 489.8 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.463e-05/0.4704, allocations: 54.77 kB / 489.9 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.4704, allocations: 35.61 kB / 489.9 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005929/0.471, allocations: 313.5 kB / 490.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.4722, allocations: 0.7501 MB / 491 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4723, allocations: 0 / 491 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.312e-05/0.4723, allocations: 7.984 kB / 491 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.4724, allocations: 12 kB / 491 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.4746, allocations: 1.699 MB / 492.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.4757, allocations: 481.5 kB / 493.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.476, allocations: 214.2 kB / 493.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.476, allocations: 8.766 kB / 493.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.4763, allocations: 185.1 kB / 493.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 1.884e-06/0.4763, allocations: 3.938 kB / 493.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.0006634/0.477, allocations: 387.2 kB / 493.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.4771, allocations: 170.2 kB / 494.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.4773, allocations: 209.3 kB / 494.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.4773, allocations: 25.7 kB / 494.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.4775, allocations: 215.1 kB / 494.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.875e-05/0.4776, allocations: 123.4 kB / 494.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/0.4776, allocations: 0 / 494.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4777, allocations: 347.3 kB / 495 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.4779, allocations: 123.4 kB / 495.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/0.4783, allocations: 370.5 kB / 495.5 MB, free: 11.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.4786, allocations: 178.5 kB / 495.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.4786, allocations: 4 kB / 495.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007327/0.4793, allocations: 0.4955 MB / 496.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.4794, allocations: 9.719 kB / 496.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.4794, allocations: 8 kB / 496.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.4794, allocations: 19.95 kB / 496.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.4799, allocations: 127.9 kB / 496.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.4799, allocations: 23.92 kB / 496.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.4802, allocations: 51.52 kB / 496.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.4803, allocations: 34.5 kB / 496.4 MB, free: 10.66 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.000143/0.4804, allocations: 131 kB / 496.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/0.4807, allocations: 213.1 kB / 496.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004625/0.4812, allocations: 262.6 kB / 497 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4812, allocations: 11.95 kB / 497 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.4812, allocations: 0 / 497 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4813, allocations: 3.984 kB / 497 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009013/0.4822, allocations: 0.7749 MB / 497.8 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4822, allocations: 0 / 497.8 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.4827, allocations: 100.8 kB / 497.9 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.4827, allocations: 8 kB / 497.9 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.4827, allocations: 11.94 kB / 497.9 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4828, allocations: 1.5 kB / 497.9 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.4828, allocations: 7.938 kB / 497.9 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009295/0.4837, allocations: 0.7413 MB / 498.7 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.895e-05/0.4838, allocations: 116.4 kB / 498.8 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.13e-05/0.4839, allocations: 4.812 kB / 498.8 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.4841, allocations: 15.98 kB / 498.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.573e-05/0.4842, allocations: 22.84 kB / 498.8 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.4842, allocations: 19.86 kB / 498.9 MB, free: 8.676 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001377/0.4844, allocations: 162.6 kB / 499 MB, free: 8.543 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4844, allocations: 0 / 499 MB, free: 8.543 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004899/0.4849, allocations: 103 kB / 499.1 MB, free: 8.445 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.0001748/0.485, allocations: 129.3 kB / 499.2 MB, free: 8.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005682/0.4856, allocations: 382.6 kB / 499.6 MB, free: 8.055 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4856, allocations: 4 kB / 499.6 MB, free: 8.051 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.4858, allocations: 106.7 kB / 499.7 MB, free: 7.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.4863, allocations: 146 kB / 499.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.4876, allocations: 0.7615 MB / 0.4889 GB, free: 7.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.4881, allocations: 0.8574 MB / 0.4897 GB, free: 6.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002455/0.4883, allocations: 47.27 kB / 0.4898 GB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.4884, allocations: 47.36 kB / 0.4898 GB, free: 6.223 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4884, allocations: 0 / 0.4898 GB, free: 6.223 MB / 362.7 MB Notification: Performance of Templates: time 0.007719/0.4962, allocations: 3.549 MB / 0.4933 GB, free: 2.754 MB / 362.7 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","../files/Modelica_trunk_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