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.0006971/0.0006971, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.00333/0.00333, allocations: 160.2 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.845/0.845, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.482e-06/1.482e-06, allocations: 0 / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.972e-05, allocations: 6.281 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003028/0.003048, allocations: 3.046 MB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009489/0.003997, allocations: 0.7474 MB / 329.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.004193, allocations: 19.88 kB / 329.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003026/0.004495, allocations: 67.25 kB / 329.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.004607, allocations: 83.12 kB / 329.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005047/0.005111, allocations: 291.3 kB / 330 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004345/0.005546, allocations: 0.6205 MB / 330.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.005852, allocations: 226.2 kB / 330.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.006106, allocations: 355.3 kB / 331.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.006346, allocations: 195.4 kB / 331.4 MB, free: 9.816 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.529e-05/0.006411, allocations: 72 kB / 331.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.176e-05/0.006463, allocations: 72 kB / 331.6 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.006587, allocations: 143.6 kB / 331.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.006715, allocations: 183.6 kB / 331.9 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006104/0.007325, allocations: 0.884 MB / 332.8 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.007327, allocations: 0 / 332.8 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.007329, allocations: 0 / 332.8 MB, free: 8.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.007336, allocations: 0 / 332.8 MB, free: 8.469 MB / 298.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.0009409/0.008277, allocations: 0.741 MB / 333.5 MB, free: 7.688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.008312, allocations: 11.97 kB / 333.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.677e-05/0.008399, allocations: 64.55 kB / 333.6 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.008791, allocations: 344.3 kB / 333.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.239e-05/0.008873, allocations: 97.28 kB / 334 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.008935, allocations: 52.33 kB / 334.1 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.009956, allocations: 0.9011 MB / 335 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.009975, allocations: 4.188 kB / 335 MB, free: 6.137 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.01001, allocations: 20.38 kB / 335 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.01003, allocations: 20.06 kB / 335 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004827/0.01051, allocations: 359 kB / 335.4 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.01192, allocations: 1.471 MB / 336.8 MB, free: 4.203 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007935/0.01272, allocations: 0.5011 MB / 337.3 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.01299, allocations: 247.6 kB / 337.6 MB, free: 3.414 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.01303, allocations: 12.22 kB / 337.6 MB, free: 3.402 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.01326, allocations: 232 kB / 337.8 MB, free: 3.148 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 1.693e-06/0.01326, allocations: 0 / 337.8 MB, free: 3.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.0007983/0.01406, allocations: 0.6042 MB / 338.4 MB, free: 2.539 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.518e-05/0.01415, allocations: 186.1 kB / 338.6 MB, free: 2.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.01432, allocations: 249.8 kB / 338.8 MB, free: 2.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.01435, allocations: 41.95 kB / 338.9 MB, free: 2.023 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.01445, allocations: 209.9 kB / 339.1 MB, free: 1.812 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.01452, allocations: 126.9 kB / 339.2 MB, free: 1.688 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.01461, allocations: 78.19 kB / 339.3 MB, free: 1.602 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.402e-05/0.0147, allocations: 338.8 kB / 339.6 MB, free: 1.262 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.01487, allocations: 124.9 kB / 339.7 MB, free: 1.137 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.0151, allocations: 290.9 kB / 340 MB, free: 0.793 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.01548, allocations: 398.2 kB / 340.4 MB, free: 360 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.01549, allocations: 7.938 kB / 340.4 MB, free: 352 kB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004981/0.01599, allocations: 453 kB / 340.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.016, allocations: 8 kB / 340.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.01601, allocations: 4 kB / 340.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.01602, allocations: 8 kB / 340.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.01622, allocations: 91.83 kB / 341 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.01623, allocations: 15.92 kB / 341 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.01634, allocations: 44.14 kB / 341 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.01637, allocations: 20 kB / 341.1 MB, free: 15.71 MB / 314.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.0001526/0.01652, allocations: 181.8 kB / 341.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.01676, allocations: 241.5 kB / 341.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003589/0.01712, allocations: 300.5 kB / 341.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.01712, allocations: 8 kB / 341.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.01712, allocations: 0 / 341.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.01713, allocations: 3.984 kB / 341.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.0178, allocations: 0.7168 MB / 342.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.0178, allocations: 0 / 342.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.01804, allocations: 107.8 kB / 342.6 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.01805, allocations: 4 kB / 342.6 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.01807, allocations: 15.98 kB / 342.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.01808, allocations: 4 kB / 342.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01808, allocations: 0 / 342.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008143/0.01889, allocations: 0.8113 MB / 343.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.01893, allocations: 47.69 kB / 343.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.778e-05/0.01896, allocations: 12 kB / 343.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.01908, allocations: 19.98 kB / 343.5 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.01913, allocations: 19.97 kB / 343.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.01915, allocations: 20.11 kB / 343.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001042/0.01925, allocations: 177.2 kB / 343.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01925, allocations: 4 kB / 343.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002483/0.0195, allocations: 99.78 kB / 343.8 MB, free: 12.86 MB / 314.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.0001009/0.0196, allocations: 133.8 kB / 344 MB, free: 12.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.02007, allocations: 371.9 kB / 344.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.02007, allocations: 0 / 344.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.02021, allocations: 135.8 kB / 344.4 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.02063, allocations: 167.2 kB / 344.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.02166, allocations: 0.9617 MB / 345.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.02182, allocations: 240.2 kB / 345.8 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.02192, allocations: 36.5 kB / 345.8 MB, free: 10.77 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02193, allocations: 4 kB / 345.8 MB, free: 10.76 MB / 314.7 MB Notification: Performance of Templates: time 0.005091/0.02702, allocations: 5.604 MB / 351.5 MB, free: 5.184 MB / 314.7 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/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_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: 4.434259637258947]