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.0009726/0.0009726, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.0009921/0.0009921, allocations: 163.6 kB / 24.99 MB, free: 8.746 MB / 18.57 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 1.012/1.012, allocations: 177.1 MB / 205.3 MB, free: 5.629 MB / 186.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.563e-06/1.563e-06, allocations: 0 / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/1.968e-05, allocations: 2.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003684/0.003704, allocations: 3.17 MB / 276.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.005166, allocations: 0.7473 MB / 276.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/0.005402, allocations: 15.94 kB / 277 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.005728, allocations: 75.19 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.005868, allocations: 75.19 kB / 277.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.006472, allocations: 295.3 kB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005337/0.007006, allocations: 0.6206 MB / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.007331, allocations: 222.2 kB / 278.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.007637, allocations: 351.3 kB / 278.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.007893, allocations: 199.4 kB / 278.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.155e-05/0.007965, allocations: 72 kB / 278.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.462e-05/0.008019, allocations: 72 kB / 278.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.008143, allocations: 151.5 kB / 279.1 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.00828, allocations: 191.5 kB / 279.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.008735, allocations: 454.3 kB / 279.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.008737, allocations: 0 / 279.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.008738, allocations: 0 / 279.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.008745, allocations: 0 / 279.7 MB, free: 11.18 MB / 266.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.0009377/0.009682, allocations: 0.837 MB / 280.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.00972, allocations: 8.031 kB / 280.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.009842, allocations: 104.5 kB / 280.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.01021, allocations: 355.2 kB / 281 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.076e-05/0.01029, allocations: 93.28 kB / 281.1 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.929e-05/0.01035, allocations: 56.27 kB / 281.1 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009026/0.01125, allocations: 0.7457 MB / 281.9 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.01127, allocations: 4.188 kB / 281.9 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.01131, allocations: 20.38 kB / 281.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.01132, allocations: 20.12 kB / 281.9 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.01165, allocations: 184.4 kB / 282.1 MB, free: 8.617 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.01308, allocations: 1.708 MB / 283.8 MB, free: 6.828 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/0.01376, allocations: 423.5 kB / 284.2 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001979/0.01396, allocations: 165.2 kB / 284.4 MB, free: 6.195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.01399, allocations: 8.234 kB / 284.4 MB, free: 6.188 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001751/0.01416, allocations: 198.1 kB / 284.6 MB, free: 5.961 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.964e-06/0.01416, allocations: 0 / 284.6 MB, free: 5.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0006072/0.01477, allocations: 414.7 kB / 285 MB, free: 5.551 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.01486, allocations: 186.4 kB / 285.2 MB, free: 5.332 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.01504, allocations: 288.2 kB / 285.4 MB, free: 5.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.01507, allocations: 37.7 kB / 285.5 MB, free: 4.992 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.01517, allocations: 260 kB / 285.7 MB, free: 4.734 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.01524, allocations: 127.5 kB / 285.9 MB, free: 4.609 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-05/0.01533, allocations: 83.84 kB / 285.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.01547, allocations: 0.5079 MB / 286.5 MB, free: 4 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.01558, allocations: 60.95 kB / 286.5 MB, free: 3.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.01578, allocations: 268.6 kB / 286.8 MB, free: 3.594 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.01608, allocations: 329.4 kB / 287.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.01609, allocations: 3.938 kB / 287.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000392/0.01648, allocations: 325.4 kB / 287.4 MB, free: 2.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.0165, allocations: 8.094 kB / 287.4 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.0165, allocations: 4 kB / 287.4 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.01652, allocations: 8 kB / 287.4 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.01673, allocations: 91.83 kB / 287.5 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.01674, allocations: 12.06 kB / 287.5 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.01685, allocations: 43.72 kB / 287.6 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.01687, allocations: 16 kB / 287.6 MB, free: 2.691 MB / 266.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,$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 (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.0001406/0.01701, allocations: 194.4 kB / 287.8 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002254/0.01724, allocations: 205.5 kB / 288 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.01752, allocations: 216.5 kB / 288.2 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.01752, allocations: 8 kB / 288.2 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.01753, allocations: 0 / 288.2 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.01754, allocations: 3.984 kB / 288.2 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006013/0.01814, allocations: 0.6653 MB / 288.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.01814, allocations: 0 / 288.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.0184, allocations: 99.83 kB / 289 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.01841, allocations: 4 kB / 289 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.01843, allocations: 20.02 kB / 289 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.01844, allocations: 4 kB / 289 MB, free: 1.227 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.01844, allocations: 4 kB / 289 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006421/0.01908, allocations: 0.6162 MB / 289.6 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.523e-05/0.01912, allocations: 47.58 kB / 289.7 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.587e-05/0.01916, allocations: 15.98 kB / 289.7 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.01927, allocations: 16 kB / 289.7 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.866e-05/0.01934, allocations: 23.95 kB / 289.7 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.01936, allocations: 20 kB / 289.7 MB, free: 464 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.01947, allocations: 201.1 kB / 289.9 MB, free: 260 kB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01947, allocations: 0 / 289.9 MB, free: 260 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003038/0.01977, allocations: 103.7 kB / 290 MB, free: 156 kB / 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 0.0001137/0.01989, allocations: 117.2 kB / 290.2 MB, free: 28 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004093/0.02029, allocations: 257 kB / 290.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.0203, allocations: 0 / 290.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.02041, allocations: 95.5 kB / 290.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.02081, allocations: 139.5 kB / 290.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.02193, allocations: 0.8812 MB / 291.5 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.02203, allocations: 129.7 kB / 291.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000111/0.02214, allocations: 38.97 kB / 291.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.146e-05/0.02222, allocations: 36.5 kB / 291.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02222, allocations: 0 / 291.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of Templates: time 0.006229/0.02845, allocations: 4.052 MB / 295.8 MB, free: 10.39 MB / 282.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 -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: 3.012730435002595]