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.002136/0.002136, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002032/0.002032, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 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 1.444/1.444, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001651/0.001651, allocations: 43.92 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2637, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005325/0.269, allocations: 3.034 MB / 426.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.2707, allocations: 0.7321 MB / 427.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.271, allocations: 15.94 kB / 427.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004014/0.2714, allocations: 75.12 kB / 427.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.2716, allocations: 79.25 kB / 427.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007395/0.2723, allocations: 285.9 kB / 428 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007205/0.273, allocations: 0.6166 MB / 428.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004197/0.2735, allocations: 233.8 kB / 428.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.2737, allocations: 235.3 kB / 429.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.2741, allocations: 234.8 kB / 429.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2742, allocations: 75.94 kB / 429.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.2743, allocations: 76 kB / 429.5 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.2745, allocations: 147.6 kB / 429.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.2747, allocations: 215 kB / 429.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009482/0.2757, allocations: 0.8513 MB / 430.7 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2757, allocations: 0 / 430.7 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2757, allocations: 0 / 430.7 MB, free: 7.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.2757, allocations: 0 / 430.7 MB, free: 7.566 MB / 334.1 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.001493/0.2772, allocations: 0.7604 MB / 431.4 MB, free: 6.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.2772, allocations: 8.031 kB / 431.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.2774, allocations: 64.55 kB / 431.5 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007016/0.2781, allocations: 336.6 kB / 431.8 MB, free: 6.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.2782, allocations: 97.28 kB / 431.9 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.849e-05/0.2783, allocations: 48.38 kB / 432 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.2799, allocations: 0.9044 MB / 432.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.28, allocations: 7.938 kB / 432.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.28, allocations: 24 kB / 432.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.28, allocations: 12 kB / 432.9 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008239/0.2809, allocations: 359 kB / 433.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.2833, allocations: 1.47 MB / 434.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.2847, allocations: 0.5067 MB / 435.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.2851, allocations: 231.2 kB / 435.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.2852, allocations: 19.97 kB / 435.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004001/0.2856, allocations: 232.6 kB / 435.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.525e-06/0.2856, allocations: 0 / 435.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001408/0.287, allocations: 0.6042 MB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/0.2872, allocations: 186.1 kB / 436.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003036/0.2875, allocations: 245.8 kB / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.2875, allocations: 33.7 kB / 436.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.2877, allocations: 221.8 kB / 437 MB, free: 0.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.2878, allocations: 134.9 kB / 437.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.288, allocations: 102.3 kB / 437.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.2881, allocations: 347 kB / 437.6 MB, free: 340 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.2885, allocations: 157.2 kB / 437.7 MB, free: 184 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/0.2891, allocations: 432.7 kB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008905/0.29, allocations: 0.5618 MB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.29, allocations: 4 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001131/0.2911, allocations: 0.6016 MB / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.2911, allocations: 8 kB / 439.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.2911, allocations: 8 kB / 439.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.059e-05/0.2912, allocations: 12 kB / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005033/0.2917, allocations: 135.8 kB / 439.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.347e-05/0.2917, allocations: 19.92 kB / 439.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.292, allocations: 51.72 kB / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-05/0.2921, allocations: 28 kB / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,$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 (76): * Single equations (assignments): 76 * 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.000368/0.2924, allocations: 224.7 kB / 439.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004544/0.2929, allocations: 233.5 kB / 440 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006755/0.2936, allocations: 308.4 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.2936, allocations: 8 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2936, allocations: 0 / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.2936, allocations: 7.984 kB / 440.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.2948, allocations: 0.7207 MB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2948, allocations: 0 / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000492/0.2953, allocations: 103.9 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/0.2953, allocations: 4 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.2954, allocations: 12 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.2954, allocations: 4 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2954, allocations: 0 / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.2968, allocations: 0.8183 MB / 442 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/0.2969, allocations: 43.67 kB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.423e-05/0.297, allocations: 24.17 kB / 442.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.2972, allocations: 23.98 kB / 442.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.2973, allocations: 23.95 kB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.2973, allocations: 12 kB / 442.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001933/0.2975, allocations: 173.2 kB / 442.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2975, allocations: 0 / 442.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005591/0.2981, allocations: 107.8 kB / 442.4 MB, free: 11.19 MB / 350.1 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.0001883/0.2983, allocations: 133 kB / 442.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009436/0.2992, allocations: 437.3 kB / 442.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2992, allocations: 0 / 442.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.2995, allocations: 131.8 kB / 443.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.3002, allocations: 176.2 kB / 443.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.3023, allocations: 1.057 MB / 444.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.3026, allocations: 240.9 kB / 444.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.3027, allocations: 43.42 kB / 444.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3027, allocations: 0 / 444.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of Templates: time 0.009928/0.3126, allocations: 5.87 MB / 450.5 MB, free: 3.066 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.493097500409931]