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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002423/0.002423, allocations: 107.5 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003046/0.003046, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.292/2.292, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 38.09 kB / 300.6 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1677, allocations: 49.46 MB / 350.1 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.008671/0.1765, allocations: 3.218 MB / 353.3 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002985/0.1795, allocations: 0.7047 MB / 354 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.1806, allocations: 19.88 kB / 354 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007084/0.1815, allocations: 55.5 kB / 354 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000678/0.1822, allocations: 51.56 kB / 354.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.1836, allocations: 259.7 kB / 354.4 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.1849, allocations: 0.5659 MB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008614/0.1858, allocations: 309.7 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.1863, allocations: 183.3 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006333/0.1869, allocations: 234.8 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.1871, allocations: 28 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.1873, allocations: 35.94 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.1876, allocations: 103.6 kB / 355.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000458/0.1881, allocations: 238.6 kB / 356 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009622/0.189, allocations: 0.6705 MB / 356.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1891, allocations: 4 kB / 356.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1891, allocations: 0 / 356.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.759e-05/0.1891, allocations: 4 kB / 356.7 MB, free: 14.2 MB / 302.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.00269/0.1918, allocations: 0.8053 MB / 357.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.1919, allocations: 8.031 kB / 357.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002626/0.1922, allocations: 56.28 kB / 357.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008787/0.1931, allocations: 398.2 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.1932, allocations: 67.58 kB / 358 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.1934, allocations: 60.31 kB / 358.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.1962, allocations: 0.8751 MB / 359 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.456e-05/0.1963, allocations: 11.94 kB / 359 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-05/0.1964, allocations: 24 kB / 359 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.1964, allocations: 15.94 kB / 359 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.1978, allocations: 355.1 kB / 359.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004062/0.2018, allocations: 1.751 MB / 361.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.2039, allocations: 0.5309 MB / 361.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007528/0.2047, allocations: 249.6 kB / 361.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.015e-05/0.2048, allocations: 19.91 kB / 361.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005981/0.2054, allocations: 209.8 kB / 362.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 5.18e-06/0.2054, allocations: 4 kB / 362.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.002095/0.2076, allocations: 0.592 MB / 362.7 MB, free: 7.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001973/0.2078, allocations: 190.8 kB / 362.9 MB, free: 7.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/0.2083, allocations: 254.7 kB / 363.1 MB, free: 7.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.237e-05/0.2084, allocations: 33.7 kB / 363.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.2087, allocations: 216.8 kB / 363.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/0.2089, allocations: 118.5 kB / 363.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.2092, allocations: 106.3 kB / 363.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.2094, allocations: 350.7 kB / 363.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005495/0.21, allocations: 157.2 kB / 364.1 MB, free: 6.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008184/0.2108, allocations: 407 kB / 364.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.2122, allocations: 0.5652 MB / 365.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.2122, allocations: 0 / 365.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001837/0.214, allocations: 0.6019 MB / 365.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.2141, allocations: 15.98 kB / 365.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.2141, allocations: 8.75 kB / 365.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.139e-05/0.2142, allocations: 12 kB / 365.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008062/0.215, allocations: 135.8 kB / 365.8 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.456e-05/0.215, allocations: 15.94 kB / 365.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006173/0.2157, allocations: 63.42 kB / 365.9 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.683e-05/0.2158, allocations: 28 kB / 365.9 MB, free: 4.352 MB / 302.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.0006335/0.2164, allocations: 216.5 kB / 366.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008191/0.2173, allocations: 233.2 kB / 366.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.2183, allocations: 304.5 kB / 366.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.2183, allocations: 4 kB / 366.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.2183, allocations: 4 kB / 366.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.2183, allocations: 7.922 kB / 366.7 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.2206, allocations: 0.8805 MB / 367.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/0.2206, allocations: 4 kB / 367.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008795/0.2215, allocations: 107.8 kB / 367.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-05/0.2216, allocations: 0 / 367.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.964e-05/0.2217, allocations: 19.98 kB / 367.7 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.398e-06/0.2217, allocations: 0 / 367.7 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/0.2217, allocations: 4 kB / 367.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002997/0.2247, allocations: 0.8158 MB / 368.5 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/0.2251, allocations: 120.6 kB / 368.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.2253, allocations: 16 kB / 368.7 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000504/0.2258, allocations: 19.98 kB / 368.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.226, allocations: 31.84 kB / 368.7 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.685e-05/0.2261, allocations: 19.98 kB / 368.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004564/0.2265, allocations: 185.9 kB / 368.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.52e-07/0.2266, allocations: 0 / 368.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00127/0.2278, allocations: 107.7 kB / 369 MB, free: 1.152 MB / 302.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.0003777/0.2282, allocations: 132.6 kB / 369.1 MB, free: 1.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.23, allocations: 453 kB / 369.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.2301, allocations: 0 / 369.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004532/0.2305, allocations: 140.2 kB / 369.7 MB, free: 452 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.2318, allocations: 177.6 kB / 369.9 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2573/0.4891, allocations: 1.234 MB / 371.1 MB, free: 24.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007229/0.4899, allocations: 0.8436 MB / 372 MB, free: 24.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/0.4902, allocations: 41.67 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4903, allocations: 1.344 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of Templates: time 0.02083/0.5111, allocations: 5.645 MB / 377.7 MB, free: 23.69 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (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) 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) Reference file matches