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.001047/0.001047, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001015/0.001015, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 18.57 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 0.9884/0.9884, allocations: 173.3 MB / 201.5 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] 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 1.713e-06/1.713e-06, allocations: 0 / 268 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.451e-05, allocations: 6.25 kB / 268 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003676/0.0037, allocations: 3.157 MB / 271.2 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.004837, allocations: 0.7435 MB / 271.9 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.00503, allocations: 19.88 kB / 272 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.005329, allocations: 71.19 kB / 272 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.005447, allocations: 79.17 kB / 272.1 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.005974, allocations: 291.3 kB / 272.4 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004688/0.006443, allocations: 0.6244 MB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002912/0.006734, allocations: 222.2 kB / 273.2 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.007002, allocations: 351.4 kB / 273.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.00726, allocations: 203.4 kB / 273.8 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.856e-05/0.007328, allocations: 72 kB / 273.9 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.385e-05/0.007382, allocations: 72 kB / 273.9 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.007495, allocations: 143.6 kB / 274.1 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.007631, allocations: 195.5 kB / 274.3 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004098/0.008041, allocations: 450.3 kB / 274.7 MB, free: 56 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.008044, allocations: 0 / 274.7 MB, free: 56 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.008045, allocations: 0 / 274.7 MB, free: 56 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.008052, allocations: 0 / 274.7 MB, free: 56 kB / 250.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.0009276/0.008979, allocations: 0.8411 MB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.009021, allocations: 12.92 kB / 275.5 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.009139, allocations: 96.61 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.009518, allocations: 359.1 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.912e-05/0.009597, allocations: 89.28 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.162e-05/0.009659, allocations: 60.33 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000917/0.01058, allocations: 0.7377 MB / 276.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.0106, allocations: 4.172 kB / 276.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.01063, allocations: 20.38 kB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.01064, allocations: 20.12 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003259/0.01097, allocations: 184.4 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.0124, allocations: 1.723 MB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007016/0.0131, allocations: 416.6 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.01331, allocations: 156.8 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.01334, allocations: 19.98 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001724/0.01351, allocations: 189.7 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.774e-06/0.01351, allocations: 0 / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.000619/0.01413, allocations: 413.1 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.441e-05/0.01421, allocations: 186.4 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001808/0.01439, allocations: 292.2 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.01442, allocations: 33.7 kB / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.01453, allocations: 268 kB / 280.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.663e-05/0.0146, allocations: 119 kB / 280.9 MB, free: 9.484 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-05/0.01469, allocations: 83.84 kB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.01482, allocations: 0.5118 MB / 281.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.01492, allocations: 52.95 kB / 281.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.01511, allocations: 272.6 kB / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.0154, allocations: 321.1 kB / 282.1 MB, free: 8.082 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.01541, allocations: 11.94 kB / 282.1 MB, free: 8.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003839/0.01579, allocations: 325.3 kB / 282.4 MB, free: 7.746 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.01581, allocations: 12.06 kB / 282.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.01581, allocations: 4 kB / 282.4 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.01583, allocations: 8 kB / 282.4 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.01605, allocations: 91.83 kB / 282.5 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.01606, allocations: 7.938 kB / 282.5 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.01617, allocations: 47.7 kB / 282.6 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.01619, allocations: 16 kB / 282.6 MB, free: 7.562 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.0001325/0.01632, allocations: 188.5 kB / 282.8 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002268/0.01655, allocations: 207.1 kB / 283 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.01683, allocations: 228.6 kB / 283.2 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.01684, allocations: 4 kB / 283.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01684, allocations: 4 kB / 283.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.01685, allocations: 3.984 kB / 283.2 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006299/0.01748, allocations: 0.6537 MB / 283.9 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.01748, allocations: 0 / 283.9 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.01774, allocations: 99.83 kB / 284 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.01775, allocations: 4 kB / 284 MB, free: 6.121 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.01777, allocations: 20.02 kB / 284 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.01778, allocations: 4 kB / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01778, allocations: 0 / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006514/0.01843, allocations: 0.6201 MB / 284.6 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.01846, allocations: 39.64 kB / 284.7 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.01851, allocations: 19.98 kB / 284.7 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.01863, allocations: 16 kB / 284.7 MB, free: 5.371 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.01869, allocations: 23.95 kB / 284.7 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.01871, allocations: 20.06 kB / 284.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.769e-05/0.0188, allocations: 193.1 kB / 284.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0188, allocations: 0 / 284.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002715/0.01908, allocations: 107.7 kB / 285 MB, free: 5.031 MB / 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.000108/0.01918, allocations: 129.8 kB / 285.2 MB, free: 4.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.01954, allocations: 248.4 kB / 285.4 MB, free: 4.652 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01954, allocations: 3.938 kB / 285.4 MB, free: 4.648 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.01965, allocations: 92.03 kB / 285.5 MB, free: 4.555 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.02007, allocations: 151 kB / 285.6 MB, free: 4.414 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.02113, allocations: 0.8773 MB / 286.5 MB, free: 3.488 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.987e-05/0.02121, allocations: 129.7 kB / 286.7 MB, free: 3.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.02132, allocations: 42.91 kB / 286.7 MB, free: 3.301 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.312e-05/0.02141, allocations: 36.48 kB / 286.7 MB, free: 3.266 MB / 266.7 MB Notification: Performance of SimCode: time 9.81e-07/0.02141, allocations: 4 kB / 286.7 MB, free: 3.262 MB / 266.7 MB Notification: Performance of Templates: time 0.09568/0.1171, allocations: 4.067 MB / 290.8 MB, free: 32.63 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] 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","",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.9524136420805007]