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.0009626/0.0009626, allocations: 87.88 kB / 16.65 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.001117/0.001117, allocations: 176.7 kB / 17.56 MB, free: 6.18 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.415/1.415, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002906, allocations: 7.938 kB / 301.4 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 50.42 MB / 351.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003711/0.1098, allocations: 2.836 MB / 354.7 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.1112, allocations: 0.7009 MB / 355.4 MB, free: 180 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000204/0.1114, allocations: 11.94 kB / 355.4 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.1117, allocations: 47.58 kB / 355.4 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.1118, allocations: 51.55 kB / 355.5 MB, free: 68 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006215/0.1125, allocations: 263.7 kB / 355.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005592/0.113, allocations: 0.562 MB / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004867/0.1135, allocations: 309.7 kB / 356.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.1137, allocations: 147.2 kB / 356.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002994/0.114, allocations: 178.9 kB / 356.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.024e-05/0.1141, allocations: 16 kB / 356.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.605e-05/0.1142, allocations: 16 kB / 356.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.1143, allocations: 79.61 kB / 357 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.1145, allocations: 228.4 kB / 357.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006834/0.1152, allocations: 0.7553 MB / 358 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1152, allocations: 0 / 358 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1152, allocations: 0 / 358 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.1152, allocations: 8 kB / 358 MB, free: 13.52 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.001326/0.1166, allocations: 0.7232 MB / 358.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1166, allocations: 8.031 kB / 358.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.1168, allocations: 60.19 kB / 358.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005326/0.1173, allocations: 386.4 kB / 359.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.1174, allocations: 63.58 kB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-05/0.1175, allocations: 60.38 kB / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.1192, allocations: 0.8907 MB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.1192, allocations: 7.938 kB / 360.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.284e-05/0.1193, allocations: 20 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1193, allocations: 12 kB / 360.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007752/0.1201, allocations: 371 kB / 360.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.1227, allocations: 1.759 MB / 362.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.124, allocations: 0.5312 MB / 362.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004508/0.1245, allocations: 263.7 kB / 363.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.1245, allocations: 20.5 kB / 363.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004102/0.125, allocations: 221.7 kB / 363.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.054e-06/0.125, allocations: 0 / 363.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001273/0.1263, allocations: 0.608 MB / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.1264, allocations: 182.5 kB / 364.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.1267, allocations: 254.7 kB / 364.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.1267, allocations: 37.7 kB / 364.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.1269, allocations: 208.9 kB / 364.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.127, allocations: 130.4 kB / 364.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.663e-05/0.127, allocations: 61.69 kB / 364.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1272, allocations: 346.8 kB / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.1275, allocations: 157.2 kB / 365.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/0.128, allocations: 411 kB / 365.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007841/0.1288, allocations: 0.5794 MB / 366.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1288, allocations: 8 kB / 366.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001014/0.1298, allocations: 0.6104 MB / 366.9 MB, free: 3.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.1298, allocations: 14.91 kB / 366.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1299, allocations: 8 kB / 366.9 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.1299, allocations: 12 kB / 367 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.1304, allocations: 131.8 kB / 367.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.476e-05/0.1304, allocations: 15.94 kB / 367.1 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.1307, allocations: 67.52 kB / 367.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.1308, allocations: 32.06 kB / 367.2 MB, free: 3.711 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.0002963/0.1311, allocations: 220.5 kB / 367.4 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003921/0.1315, allocations: 229.1 kB / 367.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006215/0.1321, allocations: 320.4 kB / 367.9 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1321, allocations: 4.047 kB / 368 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.1321, allocations: 7.984 kB / 368 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1321, allocations: 7.922 kB / 368 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.1333, allocations: 0.896 MB / 368.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.1334, allocations: 0 / 368.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004855/0.1339, allocations: 107.9 kB / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.1339, allocations: 0 / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/0.1339, allocations: 11.98 kB / 369 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1339, allocations: 4 kB / 369 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1339, allocations: 7.938 kB / 369 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.1353, allocations: 0.8354 MB / 369.8 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.75e-05/0.1354, allocations: 116.7 kB / 369.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.08e-05/0.1355, allocations: 16 kB / 370 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.1357, allocations: 23.98 kB / 370 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.792e-05/0.1358, allocations: 23.97 kB / 370 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.388e-05/0.1359, allocations: 19.98 kB / 370 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.1361, allocations: 181.9 kB / 370.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1361, allocations: 0 / 370.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.1366, allocations: 111.7 kB / 370.3 MB, free: 480 kB / 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.0001589/0.1367, allocations: 129.3 kB / 370.4 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1711/0.3078, allocations: 454.1 kB / 370.9 MB, free: 24.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.3079, allocations: 0.75 kB / 370.9 MB, free: 24.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004136/0.3083, allocations: 144.5 kB / 371 MB, free: 24.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009358/0.3093, allocations: 176.7 kB / 371.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.3114, allocations: 1.304 MB / 372.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.3118, allocations: 0.8445 MB / 373.3 MB, free: 23.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000261/0.3121, allocations: 46.33 kB / 373.4 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.3122, allocations: 43.05 kB / 373.4 MB, free: 23.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.683e-06/0.3122, allocations: 0 / 373.4 MB, free: 23.23 MB / 302.1 MB Notification: Performance of Templates: time 0.00999/0.3222, allocations: 3.879 MB / 377.3 MB, free: 22.96 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/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