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.001859/0.001859, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002238/0.002238, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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.56/1.56, allocations: 230.6 MB / 254.1 MB, free: 15.08 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+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 0.001597/0.001597, allocations: 51.92 kB / 373.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1126, allocations: 53.33 MB / 426.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005337/0.118, allocations: 3.222 MB / 430 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.1196, allocations: 0.7671 MB / 430.8 MB, free: 300 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.1198, allocations: 15.88 kB / 430.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003547/0.1202, allocations: 75.19 kB / 430.9 MB, free: 208 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.1203, allocations: 75.25 kB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2202/0.3406, allocations: 274.6 kB / 431.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009801/0.3415, allocations: 0.6197 MB / 431.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004413/0.342, allocations: 239.7 kB / 432.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/0.3422, allocations: 238.3 kB / 432.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003366/0.3426, allocations: 263.2 kB / 432.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.3427, allocations: 71.41 kB / 432.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.3428, allocations: 73.88 kB / 432.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.3429, allocations: 144 kB / 432.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.3431, allocations: 281.3 kB / 433.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008637/0.344, allocations: 0.844 MB / 433.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.344, allocations: 3.094 kB / 433.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.344, allocations: 1.094 kB / 433.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.344, allocations: 0 / 433.9 MB, free: 7.82 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.00142/0.3454, allocations: 0.8305 MB / 434.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3455, allocations: 9.531 kB / 434.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.3456, allocations: 61.81 kB / 434.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005206/0.3461, allocations: 393.8 kB / 435.2 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.856e-05/0.3462, allocations: 70.05 kB / 435.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/0.3463, allocations: 59.95 kB / 435.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.3479, allocations: 0.865 MB / 436.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.3479, allocations: 5.703 kB / 436.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/0.348, allocations: 24.94 kB / 436.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.348, allocations: 11.78 kB / 436.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008357/0.3488, allocations: 358.7 kB / 436.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.3512, allocations: 1.747 MB / 438.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.3526, allocations: 0.5107 MB / 438.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004593/0.3531, allocations: 230.9 kB / 439.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.3531, allocations: 14 kB / 439.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.3535, allocations: 218.5 kB / 439.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 1.953e-06/0.3535, allocations: 0 / 439.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001606/0.3551, allocations: 0.6036 MB / 439.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.3552, allocations: 184.3 kB / 440.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.3556, allocations: 257.7 kB / 440.4 MB, free: 4.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.3556, allocations: 36.27 kB / 440.4 MB, free: 4.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3558, allocations: 218 kB / 440.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.3559, allocations: 128.8 kB / 440.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.356, allocations: 103 kB / 440.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.3562, allocations: 352.2 kB / 441.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.3565, allocations: 155.2 kB / 441.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.357, allocations: 403.4 kB / 441.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007962/0.3578, allocations: 0.5628 MB / 442.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.3578, allocations: 6 kB / 442.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001213/0.3591, allocations: 0.6029 MB / 442.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.3591, allocations: 7.844 kB / 442.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.3591, allocations: 11.25 kB / 442.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.3591, allocations: 11.5 kB / 442.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.3596, allocations: 138 kB / 443.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.359e-05/0.3597, allocations: 16.58 kB / 443.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.36, allocations: 57.11 kB / 443.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-05/0.36, allocations: 29.09 kB / 443.2 MB, free: 2.441 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.0002569/0.3603, allocations: 213.9 kB / 443.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004295/0.3607, allocations: 232.1 kB / 443.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007124/0.3614, allocations: 307.3 kB / 443.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.3614, allocations: 5.812 kB / 443.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.3614, allocations: 1.219 kB / 443.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.3614, allocations: 7.281 kB / 443.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.3627, allocations: 0.8862 MB / 444.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3627, allocations: 4 kB / 444.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.3633, allocations: 104.8 kB / 444.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.766e-06/0.3633, allocations: 3.25 kB / 444.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.3633, allocations: 15.25 kB / 444.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.3633, allocations: 5.297 kB / 444.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3633, allocations: 1.188 kB / 444.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.3649, allocations: 0.8077 MB / 445.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.3649, allocations: 128.3 kB / 445.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.79e-05/0.365, allocations: 18.69 kB / 445.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.3652, allocations: 20.98 kB / 445.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.889e-05/0.3653, allocations: 25.58 kB / 445.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.3654, allocations: 18.62 kB / 445.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.3656, allocations: 186.7 kB / 446.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3656, allocations: 0 / 446.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005422/0.3661, allocations: 108.5 kB / 446.2 MB, free: 0.6953 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.0001575/0.3663, allocations: 126.5 kB / 446.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009904/0.3673, allocations: 445.2 kB / 446.8 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3673, allocations: 0 / 446.8 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.3675, allocations: 133.1 kB / 446.9 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007471/0.3683, allocations: 169.3 kB / 447.1 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.3702, allocations: 1.027 MB / 448.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.3708, allocations: 0.8509 MB / 449 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.371, allocations: 47.34 kB / 449 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.3711, allocations: 39.38 kB / 449 MB, free: 14.97 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3711, allocations: 1.781 kB / 449.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of Templates: time 0.01135/0.3825, allocations: 4.399 MB / 453.4 MB, free: 14.36 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.838432315737009]