Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.007997/0.007997, allocations: 108.4 kB / 21.98 MB, free: 5.223 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.001594/0.001594, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.54/1.54, allocations: 230.6 MB / 259 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 67.88 kB / 379.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3283, allocations: 53.37 MB / 433.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005225/0.3336, allocations: 3.261 MB / 436.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.3353, allocations: 0.7632 MB / 437.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003052/0.3356, allocations: 11.94 kB / 437.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003938/0.336, allocations: 75.12 kB / 437.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.3361, allocations: 79.25 kB / 437.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007339/0.3369, allocations: 283.6 kB / 437.6 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000771/0.3376, allocations: 0.6205 MB / 438.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004611/0.3381, allocations: 246.2 kB / 438.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003007/0.3384, allocations: 231.3 kB / 438.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003873/0.3388, allocations: 266.8 kB / 439 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.3389, allocations: 72 kB / 439 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.759e-05/0.339, allocations: 72 kB / 439.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.3392, allocations: 147.5 kB / 439.2 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.3394, allocations: 278.7 kB / 439.5 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009924/0.3404, allocations: 0.8535 MB / 440.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3404, allocations: 0 / 440.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3404, allocations: 0 / 440.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.3404, allocations: 0 / 440.4 MB, free: 15.71 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.00144/0.3419, allocations: 0.7488 MB / 441.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3419, allocations: 8.031 kB / 441.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.342, allocations: 64.56 kB / 441.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005948/0.3426, allocations: 332.6 kB / 441.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.446e-05/0.3427, allocations: 75.56 kB / 441.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.984e-05/0.3428, allocations: 60.33 kB / 441.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.3444, allocations: 0.8753 MB / 442.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.3445, allocations: 7.875 kB / 442.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/0.3445, allocations: 24 kB / 442.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.3445, allocations: 12 kB / 442.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007989/0.3453, allocations: 355.1 kB / 442.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002519/0.3478, allocations: 1.672 MB / 444.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.3493, allocations: 0.5114 MB / 445.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004937/0.3498, allocations: 235.8 kB / 445.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.333e-05/0.3498, allocations: 20.69 kB / 445.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004154/0.3503, allocations: 210.3 kB / 445.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.064e-06/0.3503, allocations: 0 / 445.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001427/0.3517, allocations: 0.6039 MB / 446.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.3518, allocations: 174.9 kB / 446.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003389/0.3522, allocations: 265.7 kB / 446.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.94e-05/0.3522, allocations: 37.7 kB / 446.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.3524, allocations: 209.4 kB / 446.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.3526, allocations: 135 kB / 447 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.3528, allocations: 102.3 kB / 447.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3529, allocations: 350.8 kB / 447.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.3533, allocations: 153.2 kB / 447.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.3539, allocations: 407 kB / 448 MB, free: 7.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009323/0.3548, allocations: 0.5661 MB / 448.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.3548, allocations: 4 kB / 448.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00117/0.356, allocations: 0.5985 MB / 449.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.356, allocations: 8 kB / 449.1 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.356, allocations: 8 kB / 449.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/0.3561, allocations: 12 kB / 449.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.3566, allocations: 131.8 kB / 449.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.396e-05/0.3566, allocations: 20.39 kB / 449.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.3569, allocations: 63.59 kB / 449.4 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/0.357, allocations: 32 kB / 449.4 MB, free: 6.129 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.0003834/0.3573, allocations: 212.6 kB / 449.6 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004673/0.3578, allocations: 233.4 kB / 449.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006926/0.3585, allocations: 308.4 kB / 450.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.3585, allocations: 12.03 kB / 450.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3585, allocations: 0 / 450.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3585, allocations: 3.984 kB / 450.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.3599, allocations: 0.8493 MB / 451 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3599, allocations: 0 / 451 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005045/0.3604, allocations: 107.8 kB / 451.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.3604, allocations: 8 kB / 451.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3605, allocations: 15.98 kB / 451.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.3605, allocations: 4 kB / 451.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3605, allocations: 0 / 451.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.362, allocations: 0.8185 MB / 451.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.3621, allocations: 43.59 kB / 452 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.966e-05/0.3621, allocations: 24.05 kB / 452 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.3624, allocations: 19.98 kB / 452 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.884e-05/0.3625, allocations: 19.97 kB / 452 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.3625, allocations: 19.98 kB / 452.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000317/0.3628, allocations: 185.2 kB / 452.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3628, allocations: 0 / 452.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005461/0.3634, allocations: 107.8 kB / 452.4 MB, free: 3.062 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.0002077/0.3636, allocations: 136.8 kB / 452.5 MB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.3646, allocations: 431.5 kB / 452.9 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3646, allocations: 4 kB / 452.9 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.3649, allocations: 125.2 kB / 453 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.3657, allocations: 182.8 kB / 453.2 MB, free: 2.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.3679, allocations: 1.056 MB / 454.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005898/0.3685, allocations: 0.8514 MB / 455.1 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/0.3687, allocations: 39.42 kB / 455.2 MB, free: 192 kB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3687, allocations: 0 / 455.2 MB, free: 192 kB / 350.1 MB Notification: Performance of Templates: time 0.01113/0.3798, allocations: 5.731 MB / 460.9 MB, free: 10.47 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.996637693140656]