Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001641/0.001641, allocations: 199 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000774/0.000774, allocations: 101.5 kB / 297.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002223/0.0002223, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1949, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09489/0.2899, allocations: 85.38 MB / 494 MB, free: 6.203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.2902, allocations: 75.95 kB / 494.1 MB, free: 6.129 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02224/0.3124, allocations: 8.751 MB / 0.4911 GB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3125, allocations: 4 kB / 0.4911 GB, free: 13.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.508e-05/0.3125, allocations: 12 kB / 0.4911 GB, free: 13.34 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.001135/0.3136, allocations: 0.7279 MB / 0.4918 GB, free: 12.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.3137, allocations: 8.031 kB / 0.4918 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.984e-05/0.3138, allocations: 56.28 kB / 0.4919 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005135/0.3143, allocations: 411.5 kB / 0.4923 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.92e-05/0.3144, allocations: 75.58 kB / 0.4923 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.808e-05/0.3145, allocations: 48.38 kB / 0.4924 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.3159, allocations: 0.8867 MB / 0.4932 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.316, allocations: 7.875 kB / 0.4932 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/0.316, allocations: 16 kB / 0.4933 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.316, allocations: 15.98 kB / 0.4933 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007564/0.3168, allocations: 367.1 kB / 0.4936 GB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.3191, allocations: 1.779 MB / 0.4954 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.3204, allocations: 0.5269 MB / 0.4959 GB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004373/0.3209, allocations: 251.8 kB / 0.4961 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.3209, allocations: 8.219 kB / 0.4961 GB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003573/0.3213, allocations: 222.2 kB / 0.4963 GB, free: 7.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 3.727e-06/0.3213, allocations: 3.984 kB / 0.4963 GB, free: 7.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.001259/0.3226, allocations: 0.6116 MB / 0.4969 GB, free: 7.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.3227, allocations: 186.9 kB / 0.4971 GB, free: 6.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.3229, allocations: 262.6 kB / 0.4974 GB, free: 6.555 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.323, allocations: 33.7 kB / 0.4974 GB, free: 6.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.3231, allocations: 209 kB / 0.4976 GB, free: 6.305 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.3232, allocations: 125.3 kB / 0.4977 GB, free: 6.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.3233, allocations: 15.94 kB / 0.4977 GB, free: 6.168 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3234, allocations: 346.8 kB / 0.4981 GB, free: 5.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003171/0.3237, allocations: 165.2 kB / 0.4982 GB, free: 5.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/0.3242, allocations: 407 kB / 0.4986 GB, free: 5.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007411/0.3249, allocations: 0.5848 MB / 0.4992 GB, free: 4.449 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.3249, allocations: 4 kB / 0.4992 GB, free: 4.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009833/0.3259, allocations: 0.6021 MB / 0.4998 GB, free: 3.836 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3259, allocations: 8 kB / 0.4998 GB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.326, allocations: 8.625 kB / 0.4998 GB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.326, allocations: 12 kB / 0.4998 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004542/0.3265, allocations: 135.8 kB / 0.4999 GB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.042e-05/0.3265, allocations: 15.94 kB / 0.4999 GB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.3268, allocations: 63.52 kB / 0.5 GB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.112e-05/0.3268, allocations: 28 kB / 0.5 GB, free: 3.57 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.0002741/0.3271, allocations: 224.5 kB / 0.5002 GB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003829/0.3275, allocations: 233.1 kB / 0.5005 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006321/0.3281, allocations: 308.4 kB / 0.5008 GB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.3282, allocations: 4 kB / 0.5008 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3282, allocations: 0 / 0.5008 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3282, allocations: 8.016 kB / 0.5008 GB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.3294, allocations: 0.8922 MB / 0.5016 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3294, allocations: 0 / 0.5016 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004863/0.3299, allocations: 111.8 kB / 0.5018 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3299, allocations: 0 / 0.5018 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.3299, allocations: 19.98 kB / 0.5018 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.3299, allocations: 0 / 0.5018 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.33, allocations: 4 kB / 0.5018 GB, free: 1.707 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.3313, allocations: 0.8315 MB / 0.5026 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-05/0.3314, allocations: 116.6 kB / 0.5027 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.446e-05/0.3315, allocations: 12 kB / 0.5027 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.3317, allocations: 27.98 kB / 0.5027 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.493e-05/0.3318, allocations: 19.97 kB / 0.5028 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.3319, allocations: 19.98 kB / 0.5028 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001697/0.332, allocations: 181.9 kB / 0.5029 GB, free: 472 kB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.332, allocations: 0 / 0.5029 GB, free: 472 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.00052/0.3326, allocations: 131.6 kB / 0.5031 GB, free: 340 kB / 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.0002285/0.3328, allocations: 133.4 kB / 0.5032 GB, free: 200 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.156/0.4888, allocations: 454.7 kB / 0.5036 GB, free: 95.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/0.4888, allocations: 1.094 kB / 0.5036 GB, free: 95.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.4892, allocations: 140.7 kB / 0.5038 GB, free: 95.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008382/0.49, allocations: 175.5 kB / 0.5039 GB, free: 95.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.492, allocations: 1.329 MB / 0.5052 GB, free: 94.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.4923, allocations: 0.8426 MB / 0.5061 GB, free: 93.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.4925, allocations: 42.62 kB / 0.5061 GB, free: 93.68 MB / 378.7 MB Notification: Performance of SimCode: time 6.42e-07/0.4925, allocations: 0 / 0.5061 GB, free: 93.68 MB / 378.7 MB Notification: Performance of Templates: time 0.007425/0.4999, allocations: 5.596 MB / 0.5116 GB, free: 93.24 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches