Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009759/0.0009759, allocations: 83.67 kB / 21.7 MB, free: 2.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 163 kB / 24.99 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9864/0.9864, allocations: 177 MB / 205.2 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 273 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.294e-05, allocations: 5.266 kB / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004388/0.004411, allocations: 3.159 MB / 276.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.005787, allocations: 0.7552 MB / 276.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002577/0.006045, allocations: 19.88 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000356/0.006401, allocations: 75.19 kB / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.006573, allocations: 75.19 kB / 277.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007094/0.007282, allocations: 295.3 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006143/0.007896, allocations: 0.6128 MB / 278 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003955/0.008292, allocations: 230.2 kB / 278.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003638/0.008656, allocations: 355.3 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003123/0.008968, allocations: 195.4 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.672e-05/0.009065, allocations: 72 kB / 278.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.922e-05/0.009144, allocations: 72 kB / 278.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002188/0.009363, allocations: 155.5 kB / 279 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.009549, allocations: 183.6 kB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005598/0.01011, allocations: 454.3 kB / 279.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.01011, allocations: 4 kB / 279.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01011, allocations: 0 / 279.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.01012, allocations: 4 kB / 279.6 MB, free: 11.09 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.001235/0.01136, allocations: 0.837 MB / 280.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.0114, allocations: 11.98 kB / 280.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.01157, allocations: 100.6 kB / 280.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.01207, allocations: 347.2 kB / 280.9 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.01217, allocations: 101.3 kB / 281 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.68e-05/0.01226, allocations: 56.31 kB / 281.1 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.01358, allocations: 0.7418 MB / 281.8 MB, free: 8.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.01361, allocations: 4.188 kB / 281.8 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/0.01366, allocations: 16.38 kB / 281.8 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.01368, allocations: 16.12 kB / 281.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004995/0.01417, allocations: 188.4 kB / 282 MB, free: 8.535 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.01629, allocations: 1.719 MB / 283.8 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007837/0.01708, allocations: 423.6 kB / 284.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.0173, allocations: 151.1 kB / 284.3 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.01734, allocations: 12.23 kB / 284.3 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.01756, allocations: 198.1 kB / 284.5 MB, free: 5.871 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.414e-06/0.01756, allocations: 0 / 284.5 MB, free: 5.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0006706/0.01823, allocations: 413.1 kB / 284.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/0.01832, allocations: 186.2 kB / 285.1 MB, free: 5.242 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.01851, allocations: 292.2 kB / 285.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.01854, allocations: 37.7 kB / 285.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.01865, allocations: 260.6 kB / 285.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.149e-05/0.01872, allocations: 123.2 kB / 285.8 MB, free: 4.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.174e-05/0.01881, allocations: 87.84 kB / 285.9 MB, free: 4.426 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.01895, allocations: 0.5079 MB / 286.4 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.01906, allocations: 60.95 kB / 286.5 MB, free: 3.844 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.01925, allocations: 264.7 kB / 286.7 MB, free: 3.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.01955, allocations: 322.1 kB / 287 MB, free: 3.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.01955, allocations: 3.938 kB / 287 MB, free: 3.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004134/0.01997, allocations: 344.2 kB / 287.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.01998, allocations: 4 kB / 287.4 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.01999, allocations: 4 kB / 287.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.02001, allocations: 8 kB / 287.4 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.02023, allocations: 88.36 kB / 287.5 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.02024, allocations: 15.94 kB / 287.5 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.02036, allocations: 39.72 kB / 287.5 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.02038, allocations: 20 kB / 287.5 MB, free: 2.59 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.0001457/0.02053, allocations: 192.5 kB / 287.7 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.02077, allocations: 195.2 kB / 287.9 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.02107, allocations: 232.7 kB / 288.2 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.02108, allocations: 8 kB / 288.2 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.02108, allocations: 4.031 kB / 288.2 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.02109, allocations: 3.984 kB / 288.2 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006429/0.02173, allocations: 0.6576 MB / 288.8 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.02173, allocations: 0 / 288.8 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.022, allocations: 95.89 kB / 288.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.022, allocations: 4 kB / 288.9 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.02203, allocations: 15.98 kB / 288.9 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.02203, allocations: 4 kB / 288.9 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.02203, allocations: 0 / 288.9 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006527/0.02269, allocations: 0.6201 MB / 289.6 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.52e-05/0.02272, allocations: 43.64 kB / 289.6 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.02278, allocations: 15.98 kB / 289.6 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.0229, allocations: 16 kB / 289.6 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.02295, allocations: 23.95 kB / 289.7 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.02297, allocations: 19.98 kB / 289.7 MB, free: 376 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001043/0.02308, allocations: 197.1 kB / 289.9 MB, free: 172 kB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02308, allocations: 0 / 289.9 MB, free: 172 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003138/0.02339, allocations: 103.7 kB / 290 MB, free: 68 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.0001386/0.02353, allocations: 129.2 kB / 290.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.02394, allocations: 255.6 kB / 290.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.02394, allocations: 0.9375 kB / 290.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.02405, allocations: 92.05 kB / 290.4 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.02451, allocations: 150.1 kB / 290.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.02563, allocations: 0.869 MB / 291.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.701e-05/0.02572, allocations: 133.7 kB / 291.6 MB, free: 14.37 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.02583, allocations: 38.97 kB / 291.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.254e-05/0.02591, allocations: 40.48 kB / 291.7 MB, free: 14.3 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.02591, allocations: 0 / 291.7 MB, free: 14.3 MB / 282.7 MB Notification: Performance of Templates: time 0.006476/0.03239, allocations: 4.03 MB / 295.7 MB, free: 10.31 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8963961359113455]