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.001077/0.001077, allocations: 108.2 kB / 16.62 MB, free: 6.961 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.00113/0.00113, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.278/1.278, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009345/0.0009346, allocations: 51.17 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08905, allocations: 49.44 MB / 349.6 MB, free: 4.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004881/0.09397, allocations: 3.23 MB / 352.8 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.09545, allocations: 0.7086 MB / 353.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003355/0.09581, allocations: 11.94 kB / 353.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003589/0.09618, allocations: 51.52 kB / 353.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.09645, allocations: 51.55 kB / 353.6 MB, free: 484 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006581/0.09712, allocations: 264.2 kB / 353.9 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006515/0.09778, allocations: 0.6128 MB / 354.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004603/0.09825, allocations: 337.6 kB / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.09852, allocations: 235.2 kB / 355 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003588/0.09888, allocations: 258.8 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.09899, allocations: 72 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.09e-05/0.09909, allocations: 72 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.09924, allocations: 139.6 kB / 355.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002389/0.09949, allocations: 286.6 kB / 355.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006965/0.1002, allocations: 0.8219 MB / 356.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1002, allocations: 0 / 356.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1002, allocations: 4 kB / 356.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.1002, allocations: 0 / 356.7 MB, free: 13.4 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.001329/0.1016, allocations: 0.8115 MB / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.1016, allocations: 8.031 kB / 357.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.1017, allocations: 56.28 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.1021, allocations: 390.3 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.113e-05/0.1022, allocations: 75.56 kB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.779e-05/0.1023, allocations: 52.38 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.1038, allocations: 0.8635 MB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.1038, allocations: 11.94 kB / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.974e-05/0.1039, allocations: 20 kB / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1039, allocations: 15.98 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007339/0.1046, allocations: 355 kB / 359.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.1069, allocations: 1.771 MB / 361.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.1082, allocations: 0.5265 MB / 361.6 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.1086, allocations: 247.4 kB / 361.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.881e-05/0.1087, allocations: 20.52 kB / 361.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.109, allocations: 217.7 kB / 362.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.034e-06/0.109, allocations: 0 / 362.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.00121/0.1103, allocations: 0.6 MB / 362.7 MB, free: 7.086 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.1104, allocations: 182.6 kB / 362.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.1106, allocations: 250.7 kB / 363.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.1107, allocations: 33.7 kB / 363.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1108, allocations: 216.8 kB / 363.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.59e-05/0.1109, allocations: 122.4 kB / 363.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.1111, allocations: 102.3 kB / 363.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1112, allocations: 350.9 kB / 363.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.1115, allocations: 157.2 kB / 364.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.1119, allocations: 403 kB / 364.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007118/0.1127, allocations: 0.5733 MB / 365 MB, free: 4.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1127, allocations: 4 kB / 365 MB, free: 4.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009488/0.1136, allocations: 0.5901 MB / 365.6 MB, free: 3.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1137, allocations: 12.88 kB / 365.6 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.1137, allocations: 8 kB / 365.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.1137, allocations: 16 kB / 365.7 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.1142, allocations: 127.8 kB / 365.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.1142, allocations: 15.98 kB / 365.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.1145, allocations: 63.38 kB / 365.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.1145, allocations: 31.98 kB / 365.9 MB, free: 3.566 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.0002284/0.1148, allocations: 216.5 kB / 366.1 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003682/0.1151, allocations: 233.2 kB / 366.3 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005764/0.1157, allocations: 308.4 kB / 366.6 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.1158, allocations: 8 kB / 366.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.1158, allocations: 0 / 366.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.1158, allocations: 3.984 kB / 366.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.1169, allocations: 0.8843 MB / 367.5 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1169, allocations: 0 / 367.5 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/0.1174, allocations: 107.8 kB / 367.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1174, allocations: 4 kB / 367.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.1174, allocations: 15.98 kB / 367.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1174, allocations: 4 kB / 367.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1174, allocations: 4 kB / 367.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.1187, allocations: 0.8237 MB / 368.5 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.1188, allocations: 120.5 kB / 368.6 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.436e-05/0.1189, allocations: 20.06 kB / 368.6 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.1191, allocations: 23.98 kB / 368.7 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.1192, allocations: 15.97 kB / 368.7 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.1192, allocations: 19.94 kB / 368.7 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000152/0.1194, allocations: 189.9 kB / 368.9 MB, free: 476 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1194, allocations: 0 / 368.9 MB, free: 476 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004628/0.1199, allocations: 107.7 kB / 369 MB, free: 368 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.0001288/0.12, allocations: 126.8 kB / 369.1 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1359/0.2559, allocations: 475.4 kB / 369.6 MB, free: 25.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2559, allocations: 2.031 kB / 369.6 MB, free: 25.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.2562, allocations: 137.5 kB / 369.7 MB, free: 25.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.257, allocations: 178.7 kB / 369.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001736/0.2587, allocations: 1.217 MB / 371.1 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.2591, allocations: 0.8421 MB / 371.9 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.2593, allocations: 46.7 kB / 372 MB, free: 24.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.2594, allocations: 39.7 kB / 372 MB, free: 24.29 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2594, allocations: 0 / 372 MB, free: 24.29 MB / 302.1 MB Notification: Performance of Templates: time 0.008746/0.2682, allocations: 4.15 MB / 376.2 MB, free: 24.03 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