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.001428/0.001428, allocations: 116.5 kB / 18.45 MB, free: 4.562 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.001464/0.001464, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.647/1.647, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.001537/0.001537, allocations: 47.92 kB / 374.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1205, allocations: 53.33 MB / 427.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005145/0.1256, allocations: 3.233 MB / 430.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.1272, allocations: 0.7515 MB / 431.4 MB, free: 328 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/0.1275, allocations: 19.88 kB / 431.5 MB, free: 308 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.1279, allocations: 75.17 kB / 431.5 MB, free: 232 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001735/0.128, allocations: 75.27 kB / 431.6 MB, free: 156 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2129/0.3409, allocations: 278.4 kB / 431.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.342, allocations: 0.6251 MB / 432.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005927/0.3426, allocations: 237 kB / 432.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003708/0.343, allocations: 240 kB / 433 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004594/0.3434, allocations: 258.3 kB / 433.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001697/0.3436, allocations: 71.84 kB / 433.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.3438, allocations: 73.19 kB / 433.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.3439, allocations: 147.7 kB / 433.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003118/0.3443, allocations: 282.4 kB / 433.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009585/0.3452, allocations: 0.8402 MB / 434.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3452, allocations: 2.516 kB / 434.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3452, allocations: 0 / 434.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.826e-05/0.3453, allocations: 0 / 434.6 MB, free: 7.824 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.001778/0.347, allocations: 0.8354 MB / 435.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3471, allocations: 9.031 kB / 435.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.3473, allocations: 61.53 kB / 435.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006449/0.3479, allocations: 393.1 kB / 435.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.348, allocations: 68.92 kB / 436 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.3481, allocations: 58.91 kB / 436 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.3498, allocations: 0.8671 MB / 436.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.105e-05/0.3499, allocations: 8.344 kB / 436.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-05/0.35, allocations: 23.03 kB / 436.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.35, allocations: 11.84 kB / 437 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008714/0.3508, allocations: 357.5 kB / 437.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.3533, allocations: 1.75 MB / 439.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.3547, allocations: 0.501 MB / 439.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004704/0.3552, allocations: 238.4 kB / 439.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.001e-05/0.3552, allocations: 13.11 kB / 439.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003578/0.3556, allocations: 220.7 kB / 440 MB, free: 4.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.737e-06/0.3556, allocations: 0 / 440 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001332/0.3569, allocations: 0.5999 MB / 440.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/0.357, allocations: 181 kB / 440.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.3573, allocations: 258.8 kB / 441 MB, free: 4.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.3573, allocations: 43.45 kB / 441.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.3574, allocations: 209.2 kB / 441.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3575, allocations: 137.4 kB / 441.4 MB, free: 4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.3577, allocations: 103 kB / 441.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.304e-05/0.3578, allocations: 348.4 kB / 441.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.3581, allocations: 154.2 kB / 442 MB, free: 3.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004285/0.3586, allocations: 403.8 kB / 442.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007468/0.3593, allocations: 0.5695 MB / 443 MB, free: 2.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.3593, allocations: 2.25 kB / 443 MB, free: 2.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001224/0.3606, allocations: 0.6036 MB / 443.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.3606, allocations: 10.73 kB / 443.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.3606, allocations: 9.031 kB / 443.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.448e-05/0.3606, allocations: 11.88 kB / 443.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.3612, allocations: 128.7 kB / 443.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.561e-05/0.3612, allocations: 18.12 kB / 443.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003766/0.3616, allocations: 65.3 kB / 443.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.096e-05/0.3616, allocations: 29.12 kB / 443.9 MB, free: 2.477 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.0003212/0.3619, allocations: 213.4 kB / 444.1 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004496/0.3624, allocations: 231.2 kB / 444.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006862/0.3631, allocations: 306.4 kB / 444.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3631, allocations: 6.281 kB / 444.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.3631, allocations: 2.188 kB / 444.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3631, allocations: 3.828 kB / 444.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.3644, allocations: 0.889 MB / 445.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.3644, allocations: 0 / 445.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.365, allocations: 106.4 kB / 445.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.97e-05/0.365, allocations: 6.812 kB / 445.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.695e-05/0.365, allocations: 14.86 kB / 445.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.365, allocations: 4.141 kB / 445.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.365, allocations: 1.25 kB / 445.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.3664, allocations: 0.8073 MB / 446.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3665, allocations: 130 kB / 446.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.3666, allocations: 15.12 kB / 446.6 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.3669, allocations: 24.48 kB / 446.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-05/0.367, allocations: 22.11 kB / 446.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.367, allocations: 17.97 kB / 446.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001899/0.3672, allocations: 189.5 kB / 446.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3672, allocations: 0 / 446.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006036/0.3678, allocations: 109.3 kB / 446.9 MB, free: 0.7305 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.0001617/0.368, allocations: 133 kB / 447.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009813/0.3689, allocations: 443.8 kB / 447.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3689, allocations: 1.094 kB / 447.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000285/0.3692, allocations: 129.7 kB / 447.6 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007166/0.3699, allocations: 162.8 kB / 447.8 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.3719, allocations: 1.059 MB / 448.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005581/0.3725, allocations: 0.852 MB / 449.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.3727, allocations: 42.86 kB / 449.7 MB, free: 15 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3727, allocations: 0 / 449.7 MB, free: 15 MB / 366.1 MB Notification: Performance of Templates: time 0.01316/0.3858, allocations: 5.744 MB / 455.5 MB, free: 13.49 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/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_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: 8.141914623993216]