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.001285/0.001285, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001392/0.001392, allocations: 160.5 kB / 24.55 MB, free: 20 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 0.9583/0.9583, allocations: 177 MB / 204.8 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] 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 1.603e-06/1.603e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.247e-05/3.407e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003809/0.003843, allocations: 3.187 MB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.005112, allocations: 0.7513 MB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.005354, allocations: 15.88 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.005699, allocations: 83.11 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.00583, allocations: 67.27 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.006505, allocations: 299.3 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.006972, allocations: 0.6166 MB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.007311, allocations: 234.1 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.007609, allocations: 347.4 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.007898, allocations: 199.4 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.924e-05/0.007977, allocations: 68 kB / 278.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.121e-05/0.008039, allocations: 72 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.008194, allocations: 147.5 kB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.00835, allocations: 191.6 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005206/0.00887, allocations: 450.3 kB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.008875, allocations: 4 kB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.008876, allocations: 4 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.008883, allocations: 0 / 279.6 MB, free: 10.76 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.001039/0.009922, allocations: 0.8447 MB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.009963, allocations: 11.98 kB / 280.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.01009, allocations: 100.6 kB / 280.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.01049, allocations: 355.2 kB / 280.9 MB, free: 9.387 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/0.01059, allocations: 93.28 kB / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.01065, allocations: 56.33 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009646/0.01161, allocations: 0.7301 MB / 281.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.01163, allocations: 192 / 281.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.01167, allocations: 24.38 kB / 281.8 MB, free: 8.414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.01169, allocations: 16.12 kB / 281.8 MB, free: 8.398 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003314/0.01202, allocations: 192.4 kB / 282 MB, free: 8.207 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.01364, allocations: 1.715 MB / 283.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/0.01442, allocations: 416.1 kB / 284.1 MB, free: 5.957 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.01463, allocations: 154.8 kB / 284.2 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.455e-05/0.01467, allocations: 20.23 kB / 284.3 MB, free: 5.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.01487, allocations: 202 kB / 284.5 MB, free: 5.543 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.294e-06/0.01487, allocations: 0 / 284.5 MB, free: 5.543 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0006476/0.01552, allocations: 409.1 kB / 284.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.01561, allocations: 182.2 kB / 285 MB, free: 4.922 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.0158, allocations: 288.2 kB / 285.3 MB, free: 4.625 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.01583, allocations: 37.7 kB / 285.4 MB, free: 4.582 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.01595, allocations: 268.3 kB / 285.6 MB, free: 4.316 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.759e-05/0.01601, allocations: 123.5 kB / 285.7 MB, free: 4.195 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.937e-05/0.01611, allocations: 79.84 kB / 285.8 MB, free: 4.109 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.01624, allocations: 0.5118 MB / 286.3 MB, free: 3.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.01634, allocations: 56.91 kB / 286.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.01654, allocations: 273.5 kB / 286.7 MB, free: 3.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.01683, allocations: 314.1 kB / 287 MB, free: 2.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.01684, allocations: 7.938 kB / 287 MB, free: 2.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003912/0.01723, allocations: 332.4 kB / 287.3 MB, free: 2.457 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.01725, allocations: 4 kB / 287.3 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.01726, allocations: 7.938 kB / 287.3 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.01728, allocations: 8.469 kB / 287.3 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.0175, allocations: 95.89 kB / 287.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.01751, allocations: 15.92 kB / 287.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.01763, allocations: 39.73 kB / 287.5 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.01765, allocations: 20 kB / 287.5 MB, free: 2.27 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.0001463/0.0178, allocations: 188.5 kB / 287.7 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002395/0.01804, allocations: 195.2 kB / 287.9 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003024/0.01834, allocations: 228.6 kB / 288.1 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.01834, allocations: 8.031 kB / 288.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.01835, allocations: 4 kB / 288.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01836, allocations: 48 / 288.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.01904, allocations: 0.6653 MB / 288.8 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.01905, allocations: 3.938 kB / 288.8 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.01931, allocations: 99.88 kB / 288.9 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.01932, allocations: 4 kB / 288.9 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.01935, allocations: 12 kB / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.01935, allocations: 4 kB / 288.9 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.01935, allocations: 0 / 288.9 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006694/0.02002, allocations: 0.624 MB / 289.5 MB, free: 164 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.02006, allocations: 43.62 kB / 289.5 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.902e-05/0.02011, allocations: 16 kB / 289.6 MB, free: 104 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.02022, allocations: 12 kB / 289.6 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.377e-05/0.02029, allocations: 27.95 kB / 289.6 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.02031, allocations: 15.98 kB / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001178/0.02042, allocations: 197.1 kB / 289.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02042, allocations: 0 / 289.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003285/0.02075, allocations: 107.7 kB / 289.9 MB, free: 15.74 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.0001367/0.02089, allocations: 131.8 kB / 290 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003752/0.02127, allocations: 256.5 kB / 290.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.02127, allocations: 0 / 290.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.02137, allocations: 92.11 kB / 290.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.02181, allocations: 148.5 kB / 290.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.0231, allocations: 0.8692 MB / 291.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.556e-05/0.02319, allocations: 137.7 kB / 291.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.0233, allocations: 38.97 kB / 291.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.02339, allocations: 40.48 kB / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.02339, allocations: 0 / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of Templates: time 0.006765/0.03015, allocations: 4.021 MB / 295.6 MB, free: 9.984 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9368260987102985]