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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 107.3 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 192 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 47.94 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3111, allocations: 49.43 MB / 401.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005394/0.3165, allocations: 3.205 MB / 404.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.3184, allocations: 0.7476 MB / 405.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005407/0.319, allocations: 11.94 kB / 405.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005613/0.3196, allocations: 83.11 kB / 405.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.32, allocations: 71.25 kB / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000896/0.321, allocations: 279.5 kB / 405.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008822/0.3218, allocations: 0.6283 MB / 406.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005856/0.3224, allocations: 337.6 kB / 406.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003609/0.3228, allocations: 227.3 kB / 406.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005027/0.3233, allocations: 262.8 kB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.3235, allocations: 72 kB / 407.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.3236, allocations: 72 kB / 407.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.3238, allocations: 147.5 kB / 407.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003158/0.3241, allocations: 278.7 kB / 407.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009536/0.3251, allocations: 0.8498 MB / 408.6 MB, free: 1.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3251, allocations: 0 / 408.6 MB, free: 1.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3251, allocations: 0 / 408.6 MB, free: 1.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.511e-05/0.3252, allocations: 0 / 408.6 MB, free: 1.645 MB / 318.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.001785/0.327, allocations: 0.8129 MB / 409.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.327, allocations: 12.03 kB / 409.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.3272, allocations: 56.28 kB / 409.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006655/0.3279, allocations: 402.3 kB / 409.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-05/0.328, allocations: 67.58 kB / 409.9 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.451e-05/0.3281, allocations: 56.28 kB / 410 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.3298, allocations: 0.8638 MB / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/0.3298, allocations: 7.875 kB / 410.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.441e-05/0.3299, allocations: 24 kB / 410.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.3299, allocations: 12 kB / 410.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008474/0.3308, allocations: 363 kB / 411.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.3334, allocations: 1.743 MB / 413 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3348, allocations: 0.5231 MB / 413.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004986/0.3353, allocations: 254.6 kB / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.415e-05/0.3354, allocations: 27.89 kB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003733/0.3358, allocations: 201.9 kB / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 3.586e-06/0.3358, allocations: 3.938 kB / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001336/0.3371, allocations: 0.5999 MB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.3373, allocations: 186.6 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.3376, allocations: 254.6 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.3376, allocations: 37.7 kB / 415.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.3378, allocations: 209 kB / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.3379, allocations: 130.5 kB / 415.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.3381, allocations: 106.3 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3383, allocations: 346.8 kB / 415.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.3386, allocations: 149.2 kB / 416 MB, free: 9.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.3391, allocations: 414.8 kB / 416.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008103/0.3399, allocations: 0.5633 MB / 417 MB, free: 8.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.34, allocations: 0 / 417 MB, free: 8.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001099/0.3411, allocations: 0.5937 MB / 417.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.3411, allocations: 12.03 kB / 417.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.3411, allocations: 11.98 kB / 417.6 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/0.3412, allocations: 12 kB / 417.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004767/0.3417, allocations: 139.8 kB / 417.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.266e-05/0.3417, allocations: 15.94 kB / 417.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.3421, allocations: 59.52 kB / 417.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.622e-05/0.3421, allocations: 28 kB / 417.8 MB, free: 7.809 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.0003603/0.3425, allocations: 224.5 kB / 418 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004464/0.3429, allocations: 233.1 kB / 418.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006587/0.3436, allocations: 308.4 kB / 418.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.3436, allocations: 7.938 kB / 418.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3437, allocations: 4 kB / 418.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3437, allocations: 0 / 418.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.345, allocations: 0.881 MB / 419.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.345, allocations: 7.875 kB / 419.5 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.3455, allocations: 103.9 kB / 419.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.3455, allocations: 0 / 419.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.895e-05/0.3456, allocations: 12 kB / 419.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.3456, allocations: 7.984 kB / 419.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3456, allocations: 4 kB / 419.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.347, allocations: 0.8167 MB / 420.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.3471, allocations: 120.6 kB / 420.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.795e-05/0.3472, allocations: 16 kB / 420.5 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.3475, allocations: 23.98 kB / 420.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.3476, allocations: 19.97 kB / 420.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.591e-05/0.3476, allocations: 19.98 kB / 420.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.3478, allocations: 185.9 kB / 420.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3478, allocations: 0 / 420.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005656/0.3484, allocations: 103.8 kB / 420.9 MB, free: 4.609 MB / 334.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.0001829/0.3486, allocations: 145.4 kB / 421 MB, free: 4.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009964/0.3496, allocations: 453.4 kB / 421.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3496, allocations: 0 / 421.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.3499, allocations: 131.8 kB / 421.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000773/0.3507, allocations: 179.5 kB / 421.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.3528, allocations: 1.053 MB / 422.8 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.3532, allocations: 0.8397 MB / 423.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.3534, allocations: 43.42 kB / 423.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3534, allocations: 0 / 423.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of Templates: time 0.01088/0.3643, allocations: 5.786 MB / 429.5 MB, free: 11.94 MB / 350.1 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/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_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches