Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001935/0.001935, allocations: 81.11 kB / 20.49 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002419/0.002419, allocations: 142.9 kB / 23.73 MB, free: 4.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 173.4 MB / 200.3 MB, free: 12.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00292/0.00292, allocations: 46.8 kB / 318.6 MB, free: 3.676 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1664, allocations: 52.16 MB / 370.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.008476/0.1749, allocations: 3.018 MB / 373.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.1775, allocations: 0.7321 MB / 374.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004637/0.1779, allocations: 11.94 kB / 374.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005513/0.1785, allocations: 79.12 kB / 374.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004244/0.1789, allocations: 79.23 kB / 374.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1801, allocations: 287.5 kB / 375 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.1814, allocations: 0.6206 MB / 375.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006827/0.1821, allocations: 234.1 kB / 375.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007973/0.1829, allocations: 371.1 kB / 376.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005914/0.1835, allocations: 230.8 kB / 376.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.1837, allocations: 79.94 kB / 376.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.1838, allocations: 72 kB / 376.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002822/0.1841, allocations: 143.6 kB / 376.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004752/0.1846, allocations: 223 kB / 376.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001543/0.1861, allocations: 0.8484 MB / 377.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1861, allocations: 4 kB / 377.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1861, allocations: 0 / 377.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.618e-05/0.1862, allocations: 0 / 377.8 MB, free: 0.6719 MB / 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.002442/0.1886, allocations: 0.7527 MB / 378.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1887, allocations: 8.922 kB / 378.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.1889, allocations: 60.55 kB / 378.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.1899, allocations: 341.1 kB / 378.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.1901, allocations: 97.27 kB / 379 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002177/0.1903, allocations: 52.38 kB / 379.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003024/0.1933, allocations: 0.9048 MB / 380 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.044e-05/0.1934, allocations: 7.938 kB / 380 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.884e-05/0.1934, allocations: 20 kB / 380 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.1935, allocations: 8 kB / 380 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.195, allocations: 359 kB / 380.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.198, allocations: 1.478 MB / 381.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.1994, allocations: 0.5128 MB / 382.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005134/0.2, allocations: 235.8 kB / 382.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.547e-05/0.2, allocations: 15.97 kB / 382.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003976/0.2004, allocations: 227.5 kB / 382.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.245e-06/0.2004, allocations: 3.938 kB / 382.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001386/0.2018, allocations: 0.604 MB / 383.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.202, allocations: 182.6 kB / 383.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.2022, allocations: 245.9 kB / 383.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.2023, allocations: 33.7 kB / 383.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.2025, allocations: 221.2 kB / 384.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.2026, allocations: 131.8 kB / 384.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.2028, allocations: 106.3 kB / 384.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.203, allocations: 350.8 kB / 384.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.2034, allocations: 153.2 kB / 384.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/0.204, allocations: 436.8 kB / 385.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009298/0.2049, allocations: 0.5604 MB / 385.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.2049, allocations: 4 kB / 385.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001192/0.2061, allocations: 0.5973 MB / 386.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.2061, allocations: 8 kB / 386.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.2061, allocations: 8 kB / 386.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/0.2062, allocations: 12 kB / 386.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.2067, allocations: 131.8 kB / 386.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/0.2067, allocations: 15.94 kB / 386.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.207, allocations: 56.03 kB / 386.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.887e-05/0.2071, allocations: 39.98 kB / 386.7 MB, free: 7.195 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.0002881/0.2074, allocations: 208.6 kB / 386.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000451/0.2078, allocations: 237.3 kB / 387.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006633/0.2085, allocations: 304.5 kB / 387.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/0.2085, allocations: 8 kB / 387.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.2085, allocations: 4 kB / 387.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.2085, allocations: 3.984 kB / 387.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.2097, allocations: 0.7208 MB / 388.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.2097, allocations: 7.938 kB / 388.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.2103, allocations: 99.88 kB / 388.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.834e-06/0.2103, allocations: 4 kB / 388.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.2103, allocations: 11.98 kB / 388.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.2103, allocations: 4 kB / 388.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2103, allocations: 0 / 388.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.2118, allocations: 0.823 MB / 389.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.479e-05/0.2119, allocations: 47.73 kB / 389.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.212, allocations: 19.92 kB / 389.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.2122, allocations: 23.98 kB / 389.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.855e-05/0.2123, allocations: 19.97 kB / 389.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.2123, allocations: 19.98 kB / 389.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.2125, allocations: 169.2 kB / 389.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2125, allocations: 4 kB / 389.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005137/0.2131, allocations: 111.8 kB / 389.5 MB, free: 4.285 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.0001612/0.2132, allocations: 120.6 kB / 389.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009901/0.2142, allocations: 439.7 kB / 390.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2142, allocations: 0 / 390.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.2145, allocations: 131.8 kB / 390.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007151/0.2152, allocations: 177.5 kB / 390.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.2172, allocations: 1.039 MB / 391.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.2175, allocations: 244.9 kB / 391.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.2177, allocations: 39.28 kB / 391.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.2178, allocations: 40.48 kB / 391.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2178, allocations: 4 kB / 391.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of Templates: time 0.01012/0.228, allocations: 4.329 MB / 396.1 MB, free: 13.73 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.669889664277434]