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.001583/0.001583, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001826/0.001826, allocations: 180.9 kB / 23.71 MB, free: 4.695 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.385/1.385, allocations: 225.6 MB / 252.5 MB, free: 13 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.001501/0.001501, allocations: 51.91 kB / 370.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2725, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.006406/0.2789, allocations: 3.253 MB / 426.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.281, allocations: 0.7555 MB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003219/0.2813, allocations: 15.94 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004233/0.2817, allocations: 71.14 kB / 427.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.2819, allocations: 79.23 kB / 427.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008623/0.2828, allocations: 291.5 kB / 427.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008069/0.2836, allocations: 0.6206 MB / 428.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004932/0.2841, allocations: 242.2 kB / 428.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.2844, allocations: 239.2 kB / 428.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004043/0.2848, allocations: 266.8 kB / 428.9 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.2849, allocations: 72 kB / 429 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.285, allocations: 72 kB / 429 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.2852, allocations: 147.6 kB / 429.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003149/0.2855, allocations: 278.7 kB / 429.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.2866, allocations: 0.8496 MB / 430.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2866, allocations: 0 / 430.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2866, allocations: 0 / 430.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.2867, allocations: 3.938 kB / 430.3 MB, free: 7.449 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.001762/0.2884, allocations: 0.7643 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.2885, allocations: 12.03 kB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.2886, allocations: 56.61 kB / 431.1 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007004/0.2893, allocations: 336.6 kB / 431.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.2894, allocations: 67.58 kB / 431.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.941e-05/0.2895, allocations: 56.38 kB / 431.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.2914, allocations: 0.8754 MB / 432.5 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.2914, allocations: 3.938 kB / 432.5 MB, free: 5.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.2915, allocations: 20 kB / 432.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.2915, allocations: 16 kB / 432.5 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008763/0.2924, allocations: 359 kB / 432.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/0.2951, allocations: 1.669 MB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.2965, allocations: 0.508 MB / 435 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004971/0.297, allocations: 239.2 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.668e-05/0.2971, allocations: 20.52 kB / 435.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003987/0.2975, allocations: 210.4 kB / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.214e-06/0.2975, allocations: 0 / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001392/0.2989, allocations: 0.6004 MB / 436.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.299, allocations: 182.4 kB / 436.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.2993, allocations: 257.8 kB / 436.5 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.2994, allocations: 37.7 kB / 436.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.2995, allocations: 217.3 kB / 436.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.2997, allocations: 127 kB / 436.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.2998, allocations: 102.3 kB / 437 MB, free: 452 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3, allocations: 350.8 kB / 437.3 MB, free: 92 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/0.3004, allocations: 153.2 kB / 437.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.3009, allocations: 410.8 kB / 437.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008989/0.3018, allocations: 0.5695 MB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.3018, allocations: 4 kB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001165/0.303, allocations: 0.5936 MB / 439.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.303, allocations: 11.94 kB / 439.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.303, allocations: 8 kB / 439.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.3031, allocations: 12 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.3036, allocations: 131.8 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.922e-05/0.3036, allocations: 20.33 kB / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.304, allocations: 59.62 kB / 439.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.645e-05/0.304, allocations: 35.98 kB / 439.3 MB, free: 13.87 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.0003725/0.3044, allocations: 212.6 kB / 439.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004773/0.3049, allocations: 237.5 kB / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007113/0.3056, allocations: 304.5 kB / 440.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.3056, allocations: 12.03 kB / 440.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.3056, allocations: 4 kB / 440.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3056, allocations: 7.984 kB / 440.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.3071, allocations: 0.8488 MB / 440.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.3071, allocations: 4 kB / 440.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005359/0.3076, allocations: 99.88 kB / 441 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/0.3076, allocations: 8 kB / 441.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.3077, allocations: 15.98 kB / 441.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.3077, allocations: 4 kB / 441.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.3077, allocations: 3.938 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.3092, allocations: 0.8144 MB / 441.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.093e-05/0.3093, allocations: 43.7 kB / 441.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.221e-05/0.3093, allocations: 15.98 kB / 441.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.3096, allocations: 19.98 kB / 442 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.3097, allocations: 19.97 kB / 442 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.3097, allocations: 19.98 kB / 442 MB, free: 11.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.3099, allocations: 185.2 kB / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3099, allocations: 0 / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005627/0.3105, allocations: 111.8 kB / 442.3 MB, free: 10.81 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.0001944/0.3107, allocations: 121.1 kB / 442.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.3118, allocations: 444.3 kB / 442.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3118, allocations: 0 / 442.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002987/0.3121, allocations: 125.2 kB / 443 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007736/0.3129, allocations: 180.4 kB / 443.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.315, allocations: 1.031 MB / 444.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.3155, allocations: 0.8514 MB / 445 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.3157, allocations: 43.27 kB / 445.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.3158, allocations: 39.44 kB / 445.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3158, allocations: 3.938 kB / 445.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of Templates: time 0.01142/0.3272, allocations: 4.761 MB / 449.9 MB, free: 3.184 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/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: 4.58852120116353]