Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 177.3 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008949/0.0008953, allocations: 93.3 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002823, allocations: 8 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2141, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.002506/0.2166, allocations: 2.72 MB / 407.3 MB, free: 28.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008897/0.2175, allocations: 0.7661 MB / 408.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.2177, allocations: 11.94 kB / 408.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.218, allocations: 59.5 kB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.2181, allocations: 48.59 kB / 408.2 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.2185, allocations: 260.2 kB / 408.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000369/0.2189, allocations: 0.562 MB / 409 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.2193, allocations: 303.4 kB / 409.3 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.2194, allocations: 147.3 kB / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.2196, allocations: 186.8 kB / 409.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.2196, allocations: 16 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.325e-05/0.2197, allocations: 16 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.607e-05/0.2198, allocations: 79.61 kB / 409.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.2199, allocations: 228.4 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.2203, allocations: 0.7566 MB / 410.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2204, allocations: 0 / 410.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2204, allocations: 0 / 410.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2204, allocations: 0 / 410.7 MB, free: 25.17 MB / 298.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.0008981/0.2213, allocations: 0.7156 MB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.2213, allocations: 8.031 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.876e-05/0.2214, allocations: 56.28 kB / 411.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.2217, allocations: 402.1 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.226e-05/0.2218, allocations: 67.58 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.2219, allocations: 52.38 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.2231, allocations: 0.8752 MB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.2231, allocations: 11.78 kB / 412.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.082e-05/0.2232, allocations: 20 kB / 412.9 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.2232, allocations: 16 kB / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006711/0.2239, allocations: 363.1 kB / 413.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.2256, allocations: 1.759 MB / 415 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.2267, allocations: 0.537 MB / 415.6 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003645/0.2271, allocations: 247.8 kB / 415.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.2272, allocations: 24.52 kB / 415.8 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/0.2275, allocations: 209.8 kB / 416 MB, free: 19.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 1.954e-06/0.2275, allocations: 4 kB / 416 MB, free: 19.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.001064/0.2286, allocations: 0.6191 MB / 416.7 MB, free: 18.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.2286, allocations: 182.1 kB / 416.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.2288, allocations: 246.7 kB / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.2289, allocations: 37.7 kB / 417.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.149e-05/0.229, allocations: 212.9 kB / 417.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.229, allocations: 122.4 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.22e-05/0.2291, allocations: 12 kB / 417.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.805e-05/0.2291, allocations: 358.8 kB / 417.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002732/0.2294, allocations: 153.2 kB / 417.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.2298, allocations: 419 kB / 418.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006048/0.2304, allocations: 0.5734 MB / 418.9 MB, free: 16.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2304, allocations: 4 kB / 418.9 MB, free: 16.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008202/0.2312, allocations: 0.6026 MB / 419.5 MB, free: 15.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2312, allocations: 8.125 kB / 419.5 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.2313, allocations: 15.98 kB / 419.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2313, allocations: 12 kB / 419.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.2317, allocations: 135.7 kB / 419.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.2317, allocations: 15.94 kB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.232, allocations: 63.52 kB / 419.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.2321, allocations: 28 kB / 419.8 MB, free: 15.45 MB / 298.7 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 (engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.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,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,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.000189/0.2322, allocations: 231.1 kB / 420 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000307/0.2326, allocations: 231.9 kB / 420.3 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00052/0.2331, allocations: 312.4 kB / 420.6 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2331, allocations: 12.03 kB / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2331, allocations: 3.938 kB / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2331, allocations: 0 / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008999/0.234, allocations: 0.8916 MB / 421.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.234, allocations: 0 / 421.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.2345, allocations: 111.8 kB / 421.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.175e-06/0.2345, allocations: 0 / 421.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.2346, allocations: 12 kB / 421.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.2346, allocations: 7.984 kB / 421.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2346, allocations: 4 kB / 421.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.2357, allocations: 0.8346 MB / 422.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-05/0.2358, allocations: 108.8 kB / 422.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.2358, allocations: 20.06 kB / 422.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.2361, allocations: 27.98 kB / 422.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.642e-05/0.2362, allocations: 15.97 kB / 422.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.2362, allocations: 19.98 kB / 422.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.2363, allocations: 185.9 kB / 422.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2363, allocations: 0 / 422.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003955/0.2367, allocations: 111.7 kB / 422.9 MB, free: 12.22 MB / 298.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.0001047/0.2369, allocations: 125.4 kB / 423 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000715/0.2376, allocations: 461.4 kB / 423.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2376, allocations: 4.125 kB / 423.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.2378, allocations: 139.8 kB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005842/0.2384, allocations: 181.4 kB / 423.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2398, allocations: 1.307 MB / 425.1 MB, free: 9.984 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.24, allocations: 0.84 MB / 426 MB, free: 9.121 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.2403, allocations: 43.27 kB / 426 MB, free: 9.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.2404, allocations: 43.42 kB / 426 MB, free: 9.031 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2404, allocations: 0 / 426 MB, free: 9.031 MB / 298.7 MB Notification: Performance of Templates: time 0.006429/0.2468, allocations: 3.885 MB / 429.9 MB, free: 5.168 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches