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.0008902/0.0008903, allocations: 92.58 kB / 17.31 MB, free: 6.535 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.0009775/0.0009775, allocations: 176.5 kB / 18.21 MB, free: 5.684 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.265/1.265, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002283, allocations: 9.469 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07234/0.07258, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003229/0.07584, allocations: 2.832 MB / 355.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.07706, allocations: 0.7009 MB / 356 MB, free: 156 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.07731, allocations: 11.94 kB / 356 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.07758, allocations: 55.56 kB / 356.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.07775, allocations: 47.56 kB / 356.1 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005699/0.07833, allocations: 262.9 kB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000523/0.07887, allocations: 0.562 MB / 356.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004119/0.07929, allocations: 309.7 kB / 357.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.07946, allocations: 147.2 kB / 357.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002632/0.07973, allocations: 190.9 kB / 357.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.07979, allocations: 16 kB / 357.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.354e-05/0.07984, allocations: 16 kB / 357.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.98e-05/0.07994, allocations: 75.61 kB / 357.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.08014, allocations: 228.4 kB / 357.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.08064, allocations: 0.6469 MB / 358.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.08065, allocations: 0 / 358.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.08066, allocations: 3.938 kB / 358.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.08068, allocations: 4 kB / 358.6 MB, free: 13.59 MB / 302.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.001149/0.08183, allocations: 0.7195 MB / 359.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.08188, allocations: 12.03 kB / 359.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.08199, allocations: 60.19 kB / 359.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.08242, allocations: 382.4 kB / 359.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.261e-05/0.0825, allocations: 67.58 kB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.62e-05/0.08259, allocations: 60.36 kB / 359.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.08409, allocations: 0.8751 MB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.08412, allocations: 11.94 kB / 360.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.063e-05/0.08418, allocations: 20 kB / 360.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.0842, allocations: 12 kB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007958/0.085, allocations: 375 kB / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002185/0.0872, allocations: 1.759 MB / 362.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.08853, allocations: 0.5396 MB / 363.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004618/0.08901, allocations: 259.8 kB / 363.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.08906, allocations: 11.98 kB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003718/0.08944, allocations: 217.7 kB / 363.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.274e-06/0.08945, allocations: 0 / 363.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001276/0.09073, allocations: 0.6158 MB / 364.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.09084, allocations: 182.5 kB / 364.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.0911, allocations: 254.7 kB / 365 MB, free: 6.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.09115, allocations: 37.7 kB / 365 MB, free: 6.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.09127, allocations: 208.9 kB / 365.2 MB, free: 6.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.09138, allocations: 122.5 kB / 365.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-05/0.09146, allocations: 65.67 kB / 365.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.09158, allocations: 350.8 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.09192, allocations: 153.2 kB / 365.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.09239, allocations: 415 kB / 366.3 MB, free: 5.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007874/0.09319, allocations: 0.5794 MB / 366.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.09321, allocations: 8 kB / 366.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001036/0.09425, allocations: 0.6026 MB / 367.5 MB, free: 4.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.09428, allocations: 15.94 kB / 367.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.0943, allocations: 12 kB / 367.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.09432, allocations: 12 kB / 367.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.0948, allocations: 131.8 kB / 367.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/0.09483, allocations: 23.86 kB / 367.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.09514, allocations: 63.52 kB / 367.7 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/0.0952, allocations: 32.06 kB / 367.8 MB, free: 3.793 MB / 302.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.0002343/0.09544, allocations: 216.5 kB / 368 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003833/0.09583, allocations: 233.1 kB / 368.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006194/0.09646, allocations: 308.5 kB / 368.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.09648, allocations: 8 kB / 368.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.09649, allocations: 0 / 368.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.0965, allocations: 7.984 kB / 368.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.09763, allocations: 0.896 MB / 369.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.09765, allocations: 0 / 369.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004967/0.09815, allocations: 103.9 kB / 369.5 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.09817, allocations: 7.984 kB / 369.5 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.09821, allocations: 15.98 kB / 369.5 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.09822, allocations: 4 kB / 369.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.09822, allocations: 3.938 kB / 369.5 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.09957, allocations: 0.8393 MB / 370.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.09965, allocations: 120.7 kB / 370.5 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.09972, allocations: 12 kB / 370.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.09999, allocations: 27.98 kB / 370.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.1001, allocations: 23.97 kB / 370.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.1001, allocations: 20.11 kB / 370.6 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000157/0.1003, allocations: 177.9 kB / 370.7 MB, free: 0.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1003, allocations: 4 kB / 370.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004647/0.1007, allocations: 107.7 kB / 370.9 MB, free: 0.5586 MB / 302.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.0001194/0.1009, allocations: 137.4 kB / 371 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1311/0.232, allocations: 461 kB / 371.4 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.232, allocations: 0 / 371.4 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003715/0.2324, allocations: 143.5 kB / 371.6 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008161/0.2332, allocations: 173.7 kB / 371.8 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.2351, allocations: 1.331 MB / 373.1 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.2354, allocations: 0.8441 MB / 373.9 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.2356, allocations: 42.81 kB / 374 MB, free: 23.2 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2356, allocations: 3.188 kB / 374 MB, free: 23.2 MB / 302.1 MB Notification: Performance of Templates: time 0.009264/0.2448, allocations: 5.569 MB / 379.5 MB, free: 22.5 MB / 302.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