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.001367/0.001367, allocations: 105.1 kB / 17.06 MB, free: 6.027 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.001468/0.001469, allocations: 195 kB / 18 MB, free: 5.109 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.284/1.284, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009356/0.0009356, allocations: 55.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.292, allocations: 49.43 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.007358/0.2994, allocations: 3.2 MB / 403.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.3011, allocations: 0.7515 MB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002445/0.3014, allocations: 11.94 kB / 404.7 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004366/0.3018, allocations: 71.19 kB / 404.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.3021, allocations: 71.25 kB / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008515/0.303, allocations: 295.4 kB / 405.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007919/0.3038, allocations: 0.6167 MB / 405.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006478/0.3044, allocations: 325.7 kB / 406 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.3047, allocations: 243.2 kB / 406.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.3052, allocations: 262.8 kB / 406.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3053, allocations: 72 kB / 406.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.3054, allocations: 72 kB / 406.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.3056, allocations: 139.6 kB / 406.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003298/0.3059, allocations: 278.7 kB / 407.1 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.307, allocations: 0.8498 MB / 407.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.307, allocations: 0 / 407.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.307, allocations: 0 / 407.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.307, allocations: 0 / 407.9 MB, free: 1.625 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.001799/0.3088, allocations: 0.8207 MB / 408.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3089, allocations: 8.031 kB / 408.7 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.309, allocations: 56.28 kB / 408.8 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007203/0.3098, allocations: 394.4 kB / 409.2 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.3099, allocations: 79.56 kB / 409.3 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.31, allocations: 56.28 kB / 409.3 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.3121, allocations: 0.8638 MB / 410.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.06e-05/0.3122, allocations: 11.94 kB / 410.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.091e-05/0.3123, allocations: 16 kB / 410.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.3123, allocations: 12 kB / 410.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.3134, allocations: 359 kB / 410.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.3168, allocations: 1.747 MB / 412.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.3187, allocations: 0.527 MB / 412.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.3194, allocations: 256.1 kB / 413.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.36e-05/0.3194, allocations: 19.97 kB / 413.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004805/0.3199, allocations: 209.8 kB / 413.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 3.396e-06/0.32, allocations: 7.938 kB / 413.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001948/0.3219, allocations: 0.5959 MB / 413.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/0.3221, allocations: 182.9 kB / 414.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.3225, allocations: 254.6 kB / 414.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.145e-05/0.3226, allocations: 33.7 kB / 414.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3228, allocations: 213 kB / 414.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.3229, allocations: 126.3 kB / 414.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.3232, allocations: 102.3 kB / 414.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.3234, allocations: 350.8 kB / 415.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004922/0.3239, allocations: 157.2 kB / 415.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007315/0.3246, allocations: 410.8 kB / 415.7 MB, free: 9.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.3258, allocations: 0.5617 MB / 416.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3259, allocations: 0 / 416.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001465/0.3273, allocations: 0.6009 MB / 416.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.3274, allocations: 12 kB / 416.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.3274, allocations: 8 kB / 416.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.3274, allocations: 12 kB / 416.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00069/0.3281, allocations: 124.4 kB / 417 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.822e-05/0.3282, allocations: 23.92 kB / 417.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.3286, allocations: 55.53 kB / 417.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.479e-05/0.3287, allocations: 35.98 kB / 417.1 MB, free: 7.785 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.0003313/0.3291, allocations: 220.5 kB / 417.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005677/0.3296, allocations: 237.1 kB / 417.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008891/0.3305, allocations: 304.5 kB / 417.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.3306, allocations: 8 kB / 417.9 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3306, allocations: 0 / 417.9 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.3306, allocations: 3.984 kB / 417.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.3323, allocations: 0.8809 MB / 418.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.3323, allocations: 3.938 kB / 418.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007392/0.3331, allocations: 111.8 kB / 418.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.3331, allocations: 4 kB / 418.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.328e-05/0.3332, allocations: 15.98 kB / 418.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.3332, allocations: 0 / 418.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3332, allocations: 4 kB / 418.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.3352, allocations: 0.8168 MB / 419.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3353, allocations: 120.5 kB / 419.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/0.3354, allocations: 24 kB / 419.9 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.3357, allocations: 19.98 kB / 419.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.3358, allocations: 19.97 kB / 419.9 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.343e-05/0.3358, allocations: 16 kB / 419.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001697/0.336, allocations: 189.9 kB / 420.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.336, allocations: 0 / 420.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005056/0.3365, allocations: 103.8 kB / 420.2 MB, free: 4.582 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.0001538/0.3367, allocations: 133.3 kB / 420.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.3379, allocations: 455.7 kB / 420.8 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3379, allocations: 1.75 kB / 420.8 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003746/0.3383, allocations: 135.8 kB / 420.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009773/0.3393, allocations: 179.9 kB / 421.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.3417, allocations: 1.02 MB / 422.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.3423, allocations: 0.8436 MB / 423 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000278/0.3426, allocations: 43.27 kB / 423 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.3428, allocations: 35.42 kB / 423 MB, free: 1.695 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3428, allocations: 4 kB / 423 MB, free: 1.691 MB / 334.1 MB Notification: Performance of Templates: time 0.01535/0.3581, allocations: 4.47 MB / 427.5 MB, free: 13.24 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/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