Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001542/0.002634, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001327/0.002351, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9962/0.9962, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08517/1.081, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,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.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,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.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.846e-05/1.976e-05, allocations: 8.922 kB / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004777/0.004796, allocations: 3.201 MB / 247.7 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.006367, allocations: 0.7821 MB / 248.5 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002621/0.006629, allocations: 15.94 kB / 248.5 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.006887, allocations: 83.11 kB / 248.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.007075, allocations: 71.2 kB / 248.7 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.007777, allocations: 291.4 kB / 248.9 MB, free: 9.895 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006318/0.008409, allocations: 0.6126 MB / 249.5 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004613/0.00887, allocations: 244.1 kB / 249.8 MB, free: 9.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.009305, allocations: 381 kB / 250.2 MB, free: 8.664 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.009627, allocations: 195.4 kB / 250.3 MB, free: 8.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.009731, allocations: 72 kB / 250.4 MB, free: 8.402 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.215e-05/0.009813, allocations: 72 kB / 250.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.009964, allocations: 123.6 kB / 250.6 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.01014, allocations: 147.7 kB / 250.8 MB, free: 8.066 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005032/0.01064, allocations: 402.5 kB / 251.1 MB, free: 7.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/0.01065, allocations: 0 / 251.1 MB, free: 7.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01065, allocations: 0 / 251.1 MB, free: 7.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.01067, allocations: 0 / 251.1 MB, free: 7.672 MB / 250.7 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.001275/0.01195, allocations: 0.8212 MB / 252 MB, free: 6.816 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.01197, allocations: 8.031 kB / 252 MB, free: 6.809 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.0121, allocations: 80.88 kB / 252.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.01251, allocations: 268.4 kB / 252.3 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.372e-05/0.0126, allocations: 97.28 kB / 252.4 MB, free: 6.332 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-05/0.01268, allocations: 52.38 kB / 252.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.01372, allocations: 0.675 MB / 253.1 MB, free: 5.555 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.01374, allocations: 8.141 kB / 253.1 MB, free: 5.547 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.01378, allocations: 20.38 kB / 253.2 MB, free: 5.527 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.01379, allocations: 16.12 kB / 253.2 MB, free: 5.512 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.01407, allocations: 134.5 kB / 253.3 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.01535, allocations: 1.236 MB / 254.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005047/0.01586, allocations: 345.6 kB / 254.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.01597, allocations: 118.3 kB / 255 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.016, allocations: 8.234 kB / 255 MB, free: 3.582 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001329/0.01614, allocations: 191.9 kB / 255.2 MB, free: 3.367 MB / 250.7 MB Notification: Performance of pre-optimization done (n=57): time 1.643e-06/0.01614, allocations: 0 / 255.2 MB, free: 3.367 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.0004282/0.01657, allocations: 279 kB / 255.5 MB, free: 3.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.159e-05/0.01666, allocations: 160.4 kB / 255.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.01679, allocations: 228.9 kB / 255.9 MB, free: 2.668 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.01682, allocations: 33.7 kB / 255.9 MB, free: 2.629 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.01689, allocations: 201.8 kB / 256.1 MB, free: 2.426 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.818e-05/0.01695, allocations: 123.2 kB / 256.2 MB, free: 2.305 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.762e-05/0.01703, allocations: 82.14 kB / 256.3 MB, free: 2.215 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.01711, allocations: 346.7 kB / 256.6 MB, free: 1.867 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.077e-05/0.01716, allocations: 36.98 kB / 256.7 MB, free: 1.832 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.01728, allocations: 206.8 kB / 256.9 MB, free: 1.57 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.01747, allocations: 241.9 kB / 257.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01747, allocations: 0 / 257.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002369/0.01771, allocations: 248.1 kB / 257.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.01772, allocations: 8 kB / 257.3 MB, free: 1.023 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01772, allocations: 4 kB / 257.3 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.01773, allocations: 8 kB / 257.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.01796, allocations: 100.3 kB / 257.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.01797, allocations: 19.86 kB / 257.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.01807, allocations: 39.78 kB / 257.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.01809, allocations: 12 kB / 257.5 MB, free: 0.8438 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.cylinderAirCharge.integrator.local_reset,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y) * 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 (53): * Single equations (assignments): 53 * 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.00011/0.0182, allocations: 155 kB / 257.7 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.01834, allocations: 149.8 kB / 257.8 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.01855, allocations: 168.5 kB / 258 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.01856, allocations: 8 kB / 258 MB, free: 364 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.01856, allocations: 7.969 kB / 258 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.01857, allocations: 11.92 kB / 258 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.019, allocations: 458.8 kB / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.019, allocations: 0 / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.01928, allocations: 119.8 kB / 258.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.115e-05/0.01931, allocations: 43.64 kB / 258.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.01931, allocations: 3.938 kB / 258.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.01934, allocations: 15.98 kB / 258.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.01934, allocations: 8.078 kB / 258.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01934, allocations: 3.984 kB / 258.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.0196, allocations: 311.6 kB / 259 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.01964, allocations: 23.98 kB / 259 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.01974, allocations: 15.94 kB / 259 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.01979, allocations: 23.95 kB / 259 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.0198, allocations: 12 kB / 259 MB, free: 15.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.233e-05/0.01985, allocations: 82.75 kB / 259.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01985, allocations: 0 / 259.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002247/0.02008, allocations: 99.73 kB / 259.2 MB, free: 15.09 MB / 266.7 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 8.679e-05/0.02017, allocations: 106.3 kB / 259.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002314/0.0204, allocations: 201 kB / 259.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.02041, allocations: 4 kB / 259.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.282e-05/0.02048, allocations: 77.64 kB / 259.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.0208, allocations: 171.3 kB / 259.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.0233, allocations: 0.9066 MB / 260.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.833e-05/0.02338, allocations: 133.7 kB / 260.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.02349, allocations: 38.91 kB / 260.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.02362, allocations: 107.4 kB / 260.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02362, allocations: 0 / 260.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of Templates: time 0.006931/0.03055, allocations: 4.417 MB / 265.4 MB, free: 8.918 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5777575811371207]