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.001615/0.001615, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.002088/0.002088, allocations: 218.1 kB / 23 MB, free: 5.609 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.45/1.45, allocations: 230.2 MB / 256.2 MB, free: 8.535 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.001665/0.001665, allocations: 63.89 kB / 376.5 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3009, allocations: 53.32 MB / 429.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004986/0.3059, allocations: 3.264 MB / 433 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.3073, allocations: 0.7516 MB / 433.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002497/0.3076, allocations: 11.94 kB / 433.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003884/0.308, allocations: 79.17 kB / 433.9 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.3081, allocations: 71.25 kB / 433.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006453/0.3088, allocations: 295.5 kB / 434.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006591/0.3094, allocations: 0.6205 MB / 434.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.3098, allocations: 241.8 kB / 435.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.3101, allocations: 231.3 kB / 435.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.3104, allocations: 262.8 kB / 435.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.604e-05/0.3105, allocations: 68 kB / 435.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.764e-05/0.3106, allocations: 76 kB / 435.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.3108, allocations: 135.6 kB / 435.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002832/0.3111, allocations: 290.7 kB / 436.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009082/0.312, allocations: 0.8495 MB / 437 MB, free: 348 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.312, allocations: 3.938 kB / 437 MB, free: 344 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.312, allocations: 0 / 437 MB, free: 344 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.312, allocations: 0 / 437 MB, free: 344 kB / 334.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.001445/0.3134, allocations: 0.828 MB / 437.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3135, allocations: 8.031 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.3136, allocations: 60.56 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.3142, allocations: 398.6 kB / 438.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.532e-05/0.3143, allocations: 63.58 kB / 438.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.952e-05/0.3143, allocations: 60.33 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.3159, allocations: 0.8714 MB / 439.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.316, allocations: 7.938 kB / 439.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.316, allocations: 20 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.316, allocations: 12 kB / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007745/0.3168, allocations: 363 kB / 439.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.3192, allocations: 1.748 MB / 441.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.3206, allocations: 0.5107 MB / 441.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/0.321, allocations: 235 kB / 442.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.145e-05/0.3211, allocations: 20.75 kB / 442.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003653/0.3214, allocations: 206.7 kB / 442.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.024e-06/0.3214, allocations: 0 / 442.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001294/0.3227, allocations: 0.6081 MB / 443 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.3228, allocations: 182.2 kB / 443.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.3231, allocations: 258.7 kB / 443.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.3232, allocations: 33.7 kB / 443.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.3233, allocations: 217.5 kB / 443.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.3234, allocations: 127 kB / 443.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.3236, allocations: 106.3 kB / 443.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3237, allocations: 346.8 kB / 444.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.3241, allocations: 161.2 kB / 444.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.3246, allocations: 403 kB / 444.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008301/0.3254, allocations: 0.5688 MB / 445.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.3254, allocations: 0 / 445.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001034/0.3264, allocations: 0.595 MB / 445.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.3265, allocations: 12 kB / 445.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3265, allocations: 15.94 kB / 446 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.644e-05/0.3265, allocations: 12 kB / 446 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004756/0.327, allocations: 135.7 kB / 446.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.327, allocations: 12 kB / 446.1 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.3273, allocations: 59.66 kB / 446.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.47e-05/0.3273, allocations: 31.94 kB / 446.2 MB, free: 6.504 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.0003127/0.3276, allocations: 220.6 kB / 446.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004712/0.3281, allocations: 237.3 kB / 446.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007011/0.3288, allocations: 304.4 kB / 446.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3288, allocations: 4 kB / 447 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/0.3288, allocations: 4 kB / 447 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3288, allocations: 0 / 447 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.3301, allocations: 0.8934 MB / 447.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3301, allocations: 0 / 447.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/0.3306, allocations: 107.8 kB / 448 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.3306, allocations: 0 / 448 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.28e-05/0.3307, allocations: 16 kB / 448 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3307, allocations: 0 / 448 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.3307, allocations: 4 kB / 448 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.3323, allocations: 0.8201 MB / 448.8 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.922e-05/0.3324, allocations: 120.8 kB / 448.9 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.418e-05/0.3324, allocations: 16 kB / 448.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.3327, allocations: 23.98 kB / 448.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.718e-05/0.3328, allocations: 19.97 kB / 449 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-05/0.3328, allocations: 19.98 kB / 449 MB, free: 3.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.333, allocations: 185.9 kB / 449.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.333, allocations: 0 / 449.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005002/0.3335, allocations: 107.8 kB / 449.3 MB, free: 3.312 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.0002006/0.3337, allocations: 125.5 kB / 449.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000923/0.3346, allocations: 442.5 kB / 449.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3346, allocations: 4 kB / 449.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.3349, allocations: 127.8 kB / 450 MB, free: 2.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.3356, allocations: 163.1 kB / 450.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.3375, allocations: 1.041 MB / 451.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.338, allocations: 0.8397 MB / 452 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.3382, allocations: 47.22 kB / 452 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3383, allocations: 43.42 kB / 452.1 MB, free: 444 kB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3383, allocations: 0 / 452.1 MB, free: 444 kB / 350.1 MB Notification: Performance of Templates: time 0.01002/0.3483, allocations: 4.553 MB / 456.6 MB, free: 11.89 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: 4.76345671992749]