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.001405/0.001405, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001665/0.001665, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 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.9944/0.9944, allocations: 177 MB / 205.1 MB, free: 5.5 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.884e-06/1.884e-06, allocations: 0 / 273.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.183e-05/2.372e-05, allocations: 2.312 kB / 273.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003586/0.00361, allocations: 3.142 MB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.005001, allocations: 0.7474 MB / 277.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/0.005286, allocations: 11.94 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.005614, allocations: 79.12 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.005782, allocations: 75.25 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006748/0.006457, allocations: 299.3 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005937/0.007051, allocations: 0.6127 MB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003251/0.007376, allocations: 230.2 kB / 278.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.007719, allocations: 355.4 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002953/0.008015, allocations: 195.4 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.071e-05/0.008095, allocations: 72 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.293e-05/0.008168, allocations: 72 kB / 279.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.008288, allocations: 143.6 kB / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.008423, allocations: 191.5 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005682/0.008991, allocations: 454.2 kB / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.008995, allocations: 0 / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.008996, allocations: 0 / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.009006, allocations: 0 / 279.9 MB, free: 10.62 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.0009352/0.009941, allocations: 0.8525 MB / 280.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.009981, allocations: 15.98 kB / 280.8 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.0101, allocations: 100.6 kB / 280.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.01046, allocations: 355.2 kB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.984e-05/0.01054, allocations: 89.28 kB / 281.3 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.0106, allocations: 56.33 kB / 281.4 MB, free: 9.082 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007808/0.01138, allocations: 0.6909 MB / 282.1 MB, free: 8.332 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.0114, allocations: 4.172 kB / 282.1 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.01143, allocations: 24.38 kB / 282.1 MB, free: 8.305 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.01144, allocations: 12.12 kB / 282.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002251/0.01167, allocations: 155.7 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.01314, allocations: 1.673 MB / 283.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005946/0.01373, allocations: 393.4 kB / 284.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.01389, allocations: 139.1 kB / 284.5 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.01393, allocations: 24.2 kB / 284.5 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.01409, allocations: 182.1 kB / 284.7 MB, free: 5.574 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.214e-06/0.01409, allocations: 4 kB / 284.7 MB, free: 5.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0006115/0.0147, allocations: 365.1 kB / 285 MB, free: 5.207 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.01482, allocations: 182.1 kB / 285.2 MB, free: 4.992 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.015, allocations: 292.1 kB / 285.5 MB, free: 4.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.01503, allocations: 37.7 kB / 285.5 MB, free: 4.648 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.01514, allocations: 260.3 kB / 285.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.01522, allocations: 131 kB / 285.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.01531, allocations: 87.81 kB / 286 MB, free: 4.168 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.01544, allocations: 0.5078 MB / 286.5 MB, free: 3.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.78e-05/0.0155, allocations: 44.95 kB / 286.5 MB, free: 3.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.01567, allocations: 260.6 kB / 286.8 MB, free: 3.262 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.01592, allocations: 298 kB / 287.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.01593, allocations: 0 / 287.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003374/0.01627, allocations: 308.3 kB / 287.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.01628, allocations: 11.92 kB / 287.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.01629, allocations: 4 kB / 287.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.01631, allocations: 8.469 kB / 287.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.01653, allocations: 91.84 kB / 287.5 MB, free: 2.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.01653, allocations: 11.98 kB / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.01665, allocations: 39.73 kB / 287.5 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.01667, allocations: 12 kB / 287.6 MB, free: 2.414 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,engine.cylinderAirCharge.integrator.local_reset,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y) * 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.0001434/0.01681, allocations: 192.4 kB / 287.7 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.01701, allocations: 187.2 kB / 287.9 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.01726, allocations: 204.7 kB / 288.1 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.01726, allocations: 12.03 kB / 288.1 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.706e-06/0.01727, allocations: 0 / 288.1 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.01727, allocations: 11.92 kB / 288.1 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005921/0.01786, allocations: 0.5879 MB / 288.7 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.01787, allocations: 0 / 288.7 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.01813, allocations: 107.8 kB / 288.8 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.01813, allocations: 4 kB / 288.8 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.01816, allocations: 19.98 kB / 288.9 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.01816, allocations: 4 kB / 288.9 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01816, allocations: 0 / 288.9 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.0185, allocations: 405.3 kB / 289.3 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.695e-05/0.01853, allocations: 43.58 kB / 289.3 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.01858, allocations: 20 kB / 289.3 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.0187, allocations: 11.98 kB / 289.3 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.01876, allocations: 27.89 kB / 289.4 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.01878, allocations: 12 kB / 289.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.297e-05/0.01886, allocations: 189.1 kB / 289.6 MB, free: 324 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01886, allocations: 0 / 289.6 MB, free: 324 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.000297/0.01916, allocations: 103.8 kB / 289.7 MB, free: 220 kB / 266.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.0001248/0.01928, allocations: 133.3 kB / 289.8 MB, free: 76 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.01961, allocations: 223.9 kB / 290 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01962, allocations: 0 / 290 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.074e-05/0.01971, allocations: 84.44 kB / 290.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.02013, allocations: 142.9 kB / 290.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.02118, allocations: 0.8613 MB / 291.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.853e-05/0.02127, allocations: 133.7 kB / 291.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.02139, allocations: 38.95 kB / 291.3 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.02155, allocations: 130.2 kB / 291.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of SimCode: time 1.011e-06/0.02155, allocations: 0 / 291.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of Templates: time 0.007115/0.02867, allocations: 4.355 MB / 295.7 MB, free: 10.09 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.869275108911097]