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.001107/0.001107, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 227.2 MB / 245 MB, free: 7.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008627/0.0008627, allocations: 102.4 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002302, allocations: 4 kB / 357.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1719, allocations: 51.49 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08697/0.2589, allocations: 85.45 MB / 494.9 MB, free: 5.184 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.2591, allocations: 79.95 kB / 494.9 MB, free: 5.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02121/0.2803, allocations: 8.775 MB / 0.4919 GB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2803, allocations: 0 / 0.4919 GB, free: 12.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.2804, allocations: 19.92 kB / 0.4919 GB, free: 12.29 MB / 378.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.001132/0.2815, allocations: 0.7312 MB / 0.4926 GB, free: 11.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.2816, allocations: 8.031 kB / 0.4926 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.2817, allocations: 59.28 kB / 0.4927 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.2822, allocations: 406.4 kB / 0.4931 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.608e-05/0.2823, allocations: 70.95 kB / 0.4932 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.515e-05/0.2824, allocations: 59.94 kB / 0.4932 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.2838, allocations: 0.8591 MB / 0.494 GB, free: 9.957 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.2838, allocations: 3.938 kB / 0.4941 GB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.2839, allocations: 23.98 kB / 0.4941 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2839, allocations: 12 kB / 0.4941 GB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007256/0.2846, allocations: 367.1 kB / 0.4944 GB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.2869, allocations: 1.779 MB / 0.4962 GB, free: 7.688 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.2881, allocations: 0.5375 MB / 0.4967 GB, free: 7.113 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/0.2882, allocations: 16.17 kB / 0.4967 GB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.2885, allocations: 215.7 kB / 0.4969 GB, free: 6.867 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.014e-06/0.2885, allocations: 3.938 kB / 0.4969 GB, free: 6.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.001178/0.2897, allocations: 0.6079 MB / 0.4975 GB, free: 6.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.9e-05/0.2898, allocations: 186.4 kB / 0.4977 GB, free: 6.031 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.2901, allocations: 229.8 kB / 0.4979 GB, free: 5.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.2901, allocations: 37.7 kB / 0.4979 GB, free: 5.758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2902, allocations: 212.9 kB / 0.4982 GB, free: 5.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.668e-05/0.2903, allocations: 122.4 kB / 0.4983 GB, free: 5.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.2904, allocations: 8 kB / 0.4983 GB, free: 5.418 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.2905, allocations: 350.8 kB / 0.4986 GB, free: 5.066 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/0.2908, allocations: 161.2 kB / 0.4988 GB, free: 4.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004211/0.2913, allocations: 403 kB / 0.4991 GB, free: 4.398 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.2916, allocations: 226.7 kB / 0.4994 GB, free: 4.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2916, allocations: 4 kB / 0.4994 GB, free: 4.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009473/0.2926, allocations: 0.5945 MB / 0.4999 GB, free: 3.574 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.2926, allocations: 11.95 kB / 0.5 GB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.2927, allocations: 12 kB / 0.5 GB, free: 3.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.2927, allocations: 12 kB / 0.5 GB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.2931, allocations: 132.2 kB / 0.5001 GB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.2932, allocations: 23.92 kB / 0.5001 GB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.2935, allocations: 59.52 kB / 0.5002 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.2935, allocations: 31.94 kB / 0.5002 GB, free: 3.297 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002245/0.2937, allocations: 216.5 kB / 0.5004 GB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003588/0.2941, allocations: 237.3 kB / 0.5007 GB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005728/0.2947, allocations: 316.4 kB / 0.501 GB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2947, allocations: 4 kB / 0.501 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.2947, allocations: 4 kB / 0.501 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2947, allocations: 3.984 kB / 0.501 GB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.2958, allocations: 0.8883 MB / 0.5018 GB, free: 1.562 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.2958, allocations: 3.953 kB / 0.5018 GB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.2963, allocations: 107.8 kB / 0.5019 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/0.2963, allocations: 4 kB / 0.5019 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.2964, allocations: 23.98 kB / 0.502 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.2964, allocations: 0 / 0.502 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2964, allocations: 4 kB / 0.502 GB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.2976, allocations: 0.8561 MB / 0.5028 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.2977, allocations: 120.6 kB / 0.5029 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.057e-05/0.2978, allocations: 16 kB / 0.5029 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.298, allocations: 27.92 kB / 0.503 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.761e-05/0.2981, allocations: 19.97 kB / 0.503 GB, free: 332 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.2981, allocations: 16 kB / 0.503 GB, free: 316 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001495/0.2983, allocations: 189.9 kB / 0.5032 GB, free: 124 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2983, allocations: 4 kB / 0.5032 GB, free: 120 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004989/0.2988, allocations: 119.6 kB / 0.5033 GB, free: 0 / 378.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 () * 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 (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.1402/0.439, allocations: 131.5 kB / 0.5034 GB, free: 93.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.4402, allocations: 463.5 kB / 0.5039 GB, free: 93.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.4402, allocations: 1.438 kB / 0.5039 GB, free: 93.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.4405, allocations: 139.1 kB / 0.504 GB, free: 93.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006038/0.4411, allocations: 168.1 kB / 0.5042 GB, free: 93.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.4429, allocations: 1.3 MB / 0.5054 GB, free: 93.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.4432, allocations: 0.852 MB / 0.5063 GB, free: 92.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002455/0.4435, allocations: 47.14 kB / 0.5063 GB, free: 92.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.4436, allocations: 38.48 kB / 0.5063 GB, free: 92.38 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.4436, allocations: 0 / 0.5063 GB, free: 92.38 MB / 378.7 MB Notification: Performance of Templates: time 0.007437/0.451, allocations: 3.768 MB / 0.51 GB, free: 92.15 MB / 378.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.abs2.u,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.trigger_interval,engine.crankshaftPositionEvent.rotationalClock.useSolver,engine.crankshaftPositionEvent.rotationalClock.y_clock.useSolver,engine.crankshaftPositionEvent.threshold.k,engine.crankshaftPositionEvent.threshold.y,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