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.001867/0.001867, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 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.001892/0.001892, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 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 1.654/1.654, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001969/0.001969, allocations: 63.89 kB / 373.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1299, allocations: 53.32 MB / 427.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005444/0.1354, allocations: 3.217 MB / 430.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1373, allocations: 0.7632 MB / 431.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003043/0.1376, allocations: 15.94 kB / 431.1 MB, free: 500 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004273/0.138, allocations: 75.14 kB / 431.2 MB, free: 424 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.1382, allocations: 71.25 kB / 431.3 MB, free: 352 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008436/0.1391, allocations: 291.5 kB / 431.6 MB, free: 60 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2484/0.3875, allocations: 0.6113 MB / 432.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004946/0.388, allocations: 244.2 kB / 432.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.3883, allocations: 232.2 kB / 432.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003664/0.3886, allocations: 258.5 kB / 432.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3888, allocations: 74.19 kB / 433 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.3889, allocations: 72.03 kB / 433 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.389, allocations: 146.3 kB / 433.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.3892, allocations: 286.8 kB / 433.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008781/0.3901, allocations: 0.8373 MB / 434.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3901, allocations: 1.219 kB / 434.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3901, allocations: 0.625 kB / 434.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3901, allocations: 3.312 kB / 434.3 MB, free: 7.91 MB / 350.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.001417/0.3915, allocations: 0.829 MB / 435.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3916, allocations: 9.906 kB / 435.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3917, allocations: 62.09 kB / 435.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005727/0.3923, allocations: 397.6 kB / 435.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-05/0.3924, allocations: 66.2 kB / 435.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3925, allocations: 58.95 kB / 435.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.3941, allocations: 0.8683 MB / 436.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.3941, allocations: 10.42 kB / 436.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.626e-05/0.3942, allocations: 17.41 kB / 436.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.3942, allocations: 11.88 kB / 436.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008468/0.3951, allocations: 358.2 kB / 437 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.3975, allocations: 1.752 MB / 438.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.3989, allocations: 0.5053 MB / 439.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004854/0.3994, allocations: 238.5 kB / 439.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.593e-05/0.3995, allocations: 11.39 kB / 439.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000393/0.3999, allocations: 218.6 kB / 439.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.605e-06/0.3999, allocations: 1.062 kB / 439.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001396/0.4013, allocations: 0.6092 MB / 440.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.939e-05/0.4014, allocations: 180.4 kB / 440.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.4016, allocations: 258 kB / 440.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.4017, allocations: 36.95 kB / 440.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.4018, allocations: 208.2 kB / 441 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.4019, allocations: 133 kB / 441.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.4021, allocations: 111 kB / 441.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4022, allocations: 348.2 kB / 441.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003384/0.4025, allocations: 154.5 kB / 441.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005296/0.4031, allocations: 409.3 kB / 442.1 MB, free: 3.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009314/0.404, allocations: 0.5637 MB / 442.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.404, allocations: 2.344 kB / 442.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001451/0.4055, allocations: 0.5961 MB / 443.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.4055, allocations: 9.031 kB / 443.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.4055, allocations: 12.88 kB / 443.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.886e-05/0.4056, allocations: 12.72 kB / 443.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005757/0.4062, allocations: 131.3 kB / 443.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.441e-05/0.4062, allocations: 17.67 kB / 443.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.4065, allocations: 60.38 kB / 443.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.135e-05/0.4066, allocations: 29.98 kB / 443.5 MB, free: 2.668 MB / 350.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.0003734/0.407, allocations: 215.9 kB / 443.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005239/0.4075, allocations: 235.8 kB / 444 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007482/0.4083, allocations: 301.2 kB / 444.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4083, allocations: 6.781 kB / 444.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.4083, allocations: 1.188 kB / 444.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.4083, allocations: 4.094 kB / 444.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.4097, allocations: 0.8933 MB / 445.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.4098, allocations: 1.812 kB / 445.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.4103, allocations: 105.8 kB / 445.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.4103, allocations: 2.531 kB / 445.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.4103, allocations: 15.8 kB / 445.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.4103, allocations: 5.938 kB / 445.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4103, allocations: 3.391 kB / 445.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.4118, allocations: 0.8149 MB / 446.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.395e-05/0.4119, allocations: 126 kB / 446.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/0.4119, allocations: 14.86 kB / 446.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.4122, allocations: 24.59 kB / 446.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.583e-05/0.4123, allocations: 20.56 kB / 446.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.4123, allocations: 17.89 kB / 446.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.4125, allocations: 182.8 kB / 446.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4125, allocations: 0 / 446.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005497/0.4131, allocations: 112.8 kB / 446.6 MB, free: 0.918 MB / 350.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.0001541/0.4132, allocations: 125.8 kB / 446.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009679/0.4142, allocations: 440.2 kB / 447.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4142, allocations: 4.25 kB / 447.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.4144, allocations: 123.2 kB / 447.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007267/0.4152, allocations: 169.9 kB / 447.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.417, allocations: 1.033 MB / 448.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006487/0.4177, allocations: 0.8477 MB / 449.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002331/0.4179, allocations: 47.39 kB / 449.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.418, allocations: 35.61 kB / 449.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.418, allocations: 0 / 449.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of Templates: time 0.01211/0.4301, allocations: 4.4 MB / 453.8 MB, free: 14.67 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.110080671496689]