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.001495/0.001495, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001547/0.001547, allocations: 156.9 kB / 24.27 MB, free: 176 kB / 18.57 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.474/1.474, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 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 2.274e-06/2.274e-06, allocations: 0 / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.32e-05/3.548e-05, allocations: 2.312 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005594/0.00563, allocations: 3.029 MB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.007839, allocations: 0.7396 MB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005137/0.008353, allocations: 11.94 kB / 276 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005419/0.008895, allocations: 83.12 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004293/0.009324, allocations: 79.17 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009889/0.01031, allocations: 291.3 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.01142, allocations: 0.6167 MB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006588/0.01208, allocations: 226.2 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007267/0.01281, allocations: 359.3 kB / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004642/0.01327, allocations: 191.4 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.01344, allocations: 72 kB / 277.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.01356, allocations: 72 kB / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002093/0.01377, allocations: 147.5 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003266/0.0141, allocations: 183.6 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.01527, allocations: 0.8761 MB / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.01527, allocations: 7.984 kB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01528, allocations: 0 / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.253e-05/0.01531, allocations: 0 / 279.1 MB, free: 10.86 MB / 266.7 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.001914/0.01722, allocations: 0.7488 MB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.01726, allocations: 11.98 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002005/0.01746, allocations: 100.6 kB / 280 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007385/0.0182, allocations: 348.4 kB / 280.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.01837, allocations: 93.28 kB / 280.4 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.01848, allocations: 56.33 kB / 280.5 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.02033, allocations: 0.8892 MB / 281.4 MB, free: 8.504 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.02036, allocations: 8.125 kB / 281.4 MB, free: 8.496 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.516e-05/0.02042, allocations: 24.31 kB / 281.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/0.02045, allocations: 16.12 kB / 281.4 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008958/0.02135, allocations: 359.1 kB / 281.8 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/0.02405, allocations: 1.498 MB / 283.3 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.02554, allocations: 0.5069 MB / 283.8 MB, free: 5.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/0.02607, allocations: 234 kB / 284 MB, free: 5.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.944e-05/0.02612, allocations: 12.23 kB / 284 MB, free: 5.746 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004178/0.02654, allocations: 236 kB / 284.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.505e-06/0.02654, allocations: 0 / 284.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.001729/0.02827, allocations: 0.6269 MB / 284.9 MB, free: 4.855 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001808/0.02845, allocations: 182.2 kB / 285 MB, free: 4.641 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.02882, allocations: 253.8 kB / 285.3 MB, free: 4.387 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.02888, allocations: 37.69 kB / 285.3 MB, free: 4.344 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.02909, allocations: 209.9 kB / 285.5 MB, free: 4.137 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.02923, allocations: 119 kB / 285.6 MB, free: 4.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.02942, allocations: 82.19 kB / 285.7 MB, free: 3.934 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002496/0.02967, allocations: 342.8 kB / 286.1 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003286/0.03, allocations: 124.9 kB / 286.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004884/0.03049, allocations: 287 kB / 286.5 MB, free: 3.121 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007295/0.03121, allocations: 387.2 kB / 286.8 MB, free: 2.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.03122, allocations: 3.938 kB / 286.8 MB, free: 2.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009523/0.03217, allocations: 476.2 kB / 287.3 MB, free: 2.215 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.0322, allocations: 8 kB / 287.3 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.0322, allocations: 4 kB / 287.3 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.03223, allocations: 8 kB / 287.3 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.03263, allocations: 92.3 kB / 287.4 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/0.03265, allocations: 15.94 kB / 287.4 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.03289, allocations: 39.77 kB / 287.5 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.03294, allocations: 16 kB / 287.5 MB, free: 2.035 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,$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 (53): * Single equations (assignments): 53 * 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.0002847/0.03322, allocations: 197.6 kB / 287.7 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004902/0.03371, allocations: 249.3 kB / 287.9 MB, free: 1.582 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006978/0.03441, allocations: 305.9 kB / 288.2 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.03442, allocations: 8.031 kB / 288.2 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.03443, allocations: 4 kB / 288.2 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.03444, allocations: 3.984 kB / 288.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.03576, allocations: 0.7171 MB / 289 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.03576, allocations: 0 / 289 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005062/0.03627, allocations: 103.9 kB / 289.1 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.03628, allocations: 4 kB / 289.1 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/0.03632, allocations: 19.98 kB / 289.1 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.03632, allocations: 4 kB / 289.1 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.03633, allocations: 4 kB / 289.1 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.03796, allocations: 0.8301 MB / 289.9 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.906e-05/0.03802, allocations: 39.64 kB / 290 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.223e-05/0.03809, allocations: 20.06 kB / 290 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.03833, allocations: 15.98 kB / 290 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.454e-05/0.03843, allocations: 27.95 kB / 290 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.18e-05/0.03847, allocations: 19.98 kB / 290 MB, free: 15.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002071/0.03868, allocations: 173.2 kB / 290.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03868, allocations: 0 / 290.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004557/0.03913, allocations: 99.78 kB / 290.3 MB, free: 15.13 MB / 282.7 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.0001845/0.03932, allocations: 125.2 kB / 290.4 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008688/0.04019, allocations: 379.2 kB / 290.8 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.04019, allocations: 0 / 290.8 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.04048, allocations: 119.9 kB / 290.9 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007284/0.04121, allocations: 189.3 kB / 291.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.04311, allocations: 0.9411 MB / 292 MB, free: 13.36 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.04341, allocations: 248.2 kB / 292.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000183/0.04359, allocations: 34.97 kB / 292.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.04372, allocations: 36.5 kB / 292.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of SimCode: time 4.31e-07/0.04372, allocations: 3.938 kB / 292.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of Templates: time 0.009886/0.05361, allocations: 4.016 MB / 296.4 MB, free: 9.035 MB / 282.7 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.486639901995659]