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.001122/0.001122, allocations: 112 kB / 17.07 MB, free: 5.945 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.001032/0.001032, allocations: 196 kB / 18.01 MB, free: 5.035 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001028, allocations: 51.91 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2955, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005278/0.3008, allocations: 3.197 MB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3024, allocations: 0.7476 MB / 404.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.3027, allocations: 11.94 kB / 404.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003537/0.3031, allocations: 83.17 kB / 404.7 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.3033, allocations: 75.25 kB / 404.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007282/0.304, allocations: 287.5 kB / 405.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006828/0.3047, allocations: 0.6244 MB / 405.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005422/0.3052, allocations: 329.7 kB / 406 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.3055, allocations: 227.3 kB / 406.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003532/0.3059, allocations: 266.8 kB / 406.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.824e-05/0.306, allocations: 76 kB / 406.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.3061, allocations: 72 kB / 406.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.3062, allocations: 139.6 kB / 406.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000245/0.3065, allocations: 278.7 kB / 407.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008075/0.3073, allocations: 0.8498 MB / 407.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3073, allocations: 0 / 407.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3073, allocations: 0 / 407.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3073, allocations: 0 / 407.9 MB, free: 1.621 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.001333/0.3087, allocations: 0.8168 MB / 408.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3087, allocations: 12.03 kB / 408.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.3088, allocations: 56.28 kB / 408.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005668/0.3094, allocations: 394.4 kB / 409.2 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.164e-05/0.3095, allocations: 75.52 kB / 409.3 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.239e-05/0.3096, allocations: 52.28 kB / 409.3 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.311, allocations: 0.8678 MB / 410.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.3111, allocations: 7.875 kB / 410.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.3111, allocations: 24 kB / 410.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.3111, allocations: 8 kB / 410.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007549/0.3119, allocations: 363.1 kB / 410.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.3142, allocations: 1.751 MB / 412.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.3155, allocations: 0.5269 MB / 412.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000448/0.316, allocations: 252.5 kB / 413.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.016e-05/0.316, allocations: 19.97 kB / 413.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003328/0.3164, allocations: 201.8 kB / 413.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.415e-06/0.3164, allocations: 7.938 kB / 413.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001268/0.3177, allocations: 0.5998 MB / 413.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3178, allocations: 182.7 kB / 414.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.3181, allocations: 250.9 kB / 414.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.3181, allocations: 41.7 kB / 414.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.3183, allocations: 213 kB / 414.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.3184, allocations: 126.3 kB / 414.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3185, allocations: 102.3 kB / 414.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3187, allocations: 346.8 kB / 415.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/0.319, allocations: 157.2 kB / 415.3 MB, free: 9.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.3194, allocations: 410.8 kB / 415.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007263/0.3202, allocations: 0.5579 MB / 416.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3202, allocations: 3.938 kB / 416.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009525/0.3212, allocations: 0.6051 MB / 416.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3212, allocations: 8 kB / 416.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.3212, allocations: 8 kB / 416.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.3212, allocations: 12 kB / 416.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/0.3217, allocations: 131.8 kB / 417 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.3217, allocations: 15.94 kB / 417.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/0.322, allocations: 59.89 kB / 417.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/0.3221, allocations: 32 kB / 417.1 MB, free: 7.781 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.0002654/0.3224, allocations: 224.5 kB / 417.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003801/0.3227, allocations: 233.1 kB / 417.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005956/0.3233, allocations: 304.4 kB / 417.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.3234, allocations: 7.938 kB / 417.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3234, allocations: 8.031 kB / 417.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.3234, allocations: 3.984 kB / 417.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.3245, allocations: 0.8732 MB / 418.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.3246, allocations: 3.938 kB / 418.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.325, allocations: 107.8 kB / 418.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.3251, allocations: 48 / 418.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.3251, allocations: 23.97 kB / 418.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.3251, allocations: 4 kB / 418.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3251, allocations: 4 kB / 418.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3264, allocations: 0.8244 MB / 419.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.06e-05/0.3265, allocations: 116.5 kB / 419.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.3265, allocations: 20.05 kB / 419.9 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.3268, allocations: 19.98 kB / 419.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.3269, allocations: 15.98 kB / 419.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.3269, allocations: 19.98 kB / 419.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000168/0.3271, allocations: 185.9 kB / 420.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3271, allocations: 4 kB / 420.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005082/0.3276, allocations: 103.8 kB / 420.2 MB, free: 4.574 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.000152/0.3278, allocations: 129.3 kB / 420.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008545/0.3286, allocations: 456.2 kB / 420.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3286, allocations: 0 / 420.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.3289, allocations: 135.8 kB / 420.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006743/0.3296, allocations: 180.9 kB / 421.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.3313, allocations: 1.027 MB / 422.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.3317, allocations: 0.8319 MB / 423 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.3319, allocations: 51.27 kB / 423 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.332, allocations: 39.42 kB / 423 MB, free: 1.684 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.332, allocations: 0 / 423 MB, free: 1.684 MB / 334.1 MB Notification: Performance of Templates: time 0.008595/0.3406, allocations: 4.383 MB / 427.4 MB, free: 13.32 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