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.001782/0.001782, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.002133/0.002133, allocations: 211.5 kB / 24.48 MB, free: 3.938 MB / 14.72 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 1.516/1.516, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001653/0.001653, allocations: 51.94 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2367, allocations: 53.36 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004968/0.2416, allocations: 3.024 MB / 435.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2433, allocations: 0.7437 MB / 436.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000232/0.2435, allocations: 19.88 kB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003328/0.2438, allocations: 71.19 kB / 436.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.244, allocations: 75.25 kB / 436.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.2446, allocations: 291.2 kB / 436.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006854/0.2453, allocations: 0.6206 MB / 437.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004007/0.2457, allocations: 225.9 kB / 437.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002742/0.246, allocations: 243.2 kB / 437.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.2463, allocations: 226.9 kB / 437.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.895e-05/0.2464, allocations: 72 kB / 437.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.614e-05/0.2465, allocations: 72 kB / 438 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.2467, allocations: 147.6 kB / 438.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.2469, allocations: 219 kB / 438.3 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009646/0.2479, allocations: 0.859 MB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2479, allocations: 0 / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2479, allocations: 0 / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.2479, allocations: 4 kB / 439.2 MB, free: 15.86 MB / 350.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.001434/0.2494, allocations: 0.7449 MB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2494, allocations: 8.031 kB / 439.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.2495, allocations: 68.5 kB / 440 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.2501, allocations: 340.6 kB / 440.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.2502, allocations: 93.28 kB / 440.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.22e-05/0.2503, allocations: 60.33 kB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.252, allocations: 0.9004 MB / 441.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.252, allocations: 3.938 kB / 441.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.169e-05/0.252, allocations: 24 kB / 441.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.2521, allocations: 12 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.2529, allocations: 355 kB / 441.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.2552, allocations: 1.47 MB / 443.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.2566, allocations: 0.5131 MB / 443.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.2571, allocations: 231.8 kB / 444 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-05/0.2572, allocations: 12.22 kB / 444 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003981/0.2575, allocations: 239.9 kB / 444.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.214e-06/0.2576, allocations: 0 / 444.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001367/0.2589, allocations: 0.6001 MB / 444.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.2591, allocations: 186.6 kB / 445 MB, free: 9.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.2593, allocations: 246.1 kB / 445.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.2594, allocations: 41.7 kB / 445.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.2595, allocations: 213.3 kB / 445.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.2597, allocations: 131.5 kB / 445.6 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.2598, allocations: 114.3 kB / 445.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.26, allocations: 346.8 kB / 446.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.2603, allocations: 149.2 kB / 446.2 MB, free: 8.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005592/0.2609, allocations: 437.4 kB / 446.7 MB, free: 7.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008848/0.2618, allocations: 0.5706 MB / 447.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.2618, allocations: 4 kB / 447.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001115/0.2629, allocations: 0.5907 MB / 447.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2629, allocations: 8 kB / 447.8 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.2629, allocations: 8.078 kB / 447.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.878e-05/0.263, allocations: 12 kB / 447.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005023/0.2635, allocations: 132.4 kB / 448 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.627e-05/0.2635, allocations: 27.91 kB / 448 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.2638, allocations: 55.72 kB / 448.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.2638, allocations: 28 kB / 448.1 MB, free: 6.383 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.0002904/0.2641, allocations: 212.5 kB / 448.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004312/0.2646, allocations: 241.2 kB / 448.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006577/0.2652, allocations: 300.5 kB / 448.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.2652, allocations: 12.03 kB / 448.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2652, allocations: 4 kB / 448.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.2652, allocations: 3.984 kB / 448.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.2664, allocations: 0.7133 MB / 449.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.2664, allocations: 4 kB / 449.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.2669, allocations: 99.88 kB / 449.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/0.267, allocations: 7.984 kB / 449.7 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.082e-05/0.267, allocations: 12 kB / 449.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.267, allocations: 11.94 kB / 449.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.267, allocations: 0 / 449.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.2685, allocations: 0.8068 MB / 450.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.241e-05/0.2685, allocations: 47.78 kB / 450.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.371e-05/0.2686, allocations: 12 kB / 450.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.2688, allocations: 27.92 kB / 450.6 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/0.2689, allocations: 31.89 kB / 450.6 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.269, allocations: 12 kB / 450.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.2691, allocations: 173.2 kB / 450.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2691, allocations: 0 / 450.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.2696, allocations: 115.7 kB / 450.9 MB, free: 3.473 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.0001438/0.2698, allocations: 117.2 kB / 451 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009068/0.2707, allocations: 448.7 kB / 451.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2707, allocations: 0 / 451.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.271, allocations: 123.9 kB / 451.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006766/0.2717, allocations: 180.3 kB / 451.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.2735, allocations: 1.06 MB / 452.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.2738, allocations: 244.7 kB / 453.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.2739, allocations: 43.42 kB / 453.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2739, allocations: 4 kB / 453.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of Templates: time 0.009033/0.2829, allocations: 5.844 MB / 458.9 MB, free: 11.38 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/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: 7.366924577858299]