Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007726/0.0007726, allocations: 91.62 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002281/0.0002286, allocations: 4 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2244, allocations: 51.43 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.002641/0.2271, allocations: 2.721 MB / 414.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009971/0.2281, allocations: 0.7708 MB / 415.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.2283, allocations: 11.94 kB / 415.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002476/0.2286, allocations: 47.52 kB / 415.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.2287, allocations: 59.11 kB / 415.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004758/0.2292, allocations: 255.7 kB / 415.9 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.2295, allocations: 0.5618 MB / 416.5 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000337/0.2299, allocations: 307.5 kB / 416.8 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.23, allocations: 151.2 kB / 416.9 MB, free: 21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.2302, allocations: 190.9 kB / 417.1 MB, free: 20.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.227e-05/0.2303, allocations: 12 kB / 417.1 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.105e-05/0.2303, allocations: 16 kB / 417.1 MB, free: 20.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.189e-05/0.2304, allocations: 83.55 kB / 417.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.2306, allocations: 228.4 kB / 417.4 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004472/0.231, allocations: 0.7566 MB / 418.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.231, allocations: 4 kB / 418.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.231, allocations: 0 / 418.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2311, allocations: 0 / 418.2 MB, free: 19.71 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.00093/0.232, allocations: 0.7078 MB / 418.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.232, allocations: 8.031 kB / 418.9 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.2321, allocations: 56.28 kB / 419 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.2324, allocations: 398.2 kB / 419.4 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.757e-05/0.2325, allocations: 71.58 kB / 419.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.318e-05/0.2326, allocations: 48.38 kB / 419.5 MB, free: 18.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.2338, allocations: 0.8714 MB / 420.3 MB, free: 17.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.2338, allocations: 11.84 kB / 420.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.2339, allocations: 23.98 kB / 420.4 MB, free: 17.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.2339, allocations: 12 kB / 420.4 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000646/0.2346, allocations: 371 kB / 420.8 MB, free: 17.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.2364, allocations: 1.755 MB / 422.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.2375, allocations: 0.5277 MB / 423 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003666/0.2379, allocations: 262 kB / 423.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.2379, allocations: 15.95 kB / 423.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.2382, allocations: 210.4 kB / 423.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 2.355e-06/0.2383, allocations: 0 / 423.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.001073/0.2393, allocations: 0.6196 MB / 424.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.2394, allocations: 182.1 kB / 424.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.2396, allocations: 258.7 kB / 424.6 MB, free: 13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.2397, allocations: 33.7 kB / 424.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.2398, allocations: 217.1 kB / 424.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.155e-05/0.2399, allocations: 118.5 kB / 424.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-05/0.2399, allocations: 12 kB / 424.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.505e-05/0.24, allocations: 346.8 kB / 425.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.2402, allocations: 157.2 kB / 425.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.2406, allocations: 415 kB / 425.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005844/0.2412, allocations: 0.5796 MB / 426.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.2412, allocations: 3.984 kB / 426.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007988/0.242, allocations: 0.6024 MB / 427 MB, free: 10.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.242, allocations: 8 kB / 427 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.242, allocations: 8 kB / 427 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.242, allocations: 12 kB / 427 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.2425, allocations: 135.8 kB / 427.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.2425, allocations: 16.06 kB / 427.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.2428, allocations: 71.67 kB / 427.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.2428, allocations: 31.98 kB / 427.3 MB, free: 10.01 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.0002342/0.2431, allocations: 220.4 kB / 427.5 MB, free: 9.781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003029/0.2434, allocations: 229.1 kB / 427.7 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005174/0.2439, allocations: 315 kB / 428 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.2439, allocations: 8 kB / 428.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2439, allocations: 0 / 428.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2439, allocations: 7.984 kB / 428.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009428/0.2449, allocations: 0.8903 MB / 428.9 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.2449, allocations: 4 kB / 429 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.2453, allocations: 107.8 kB / 429.1 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.2454, allocations: 4 kB / 429.1 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/0.2454, allocations: 11.98 kB / 429.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2454, allocations: 4 kB / 429.1 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2454, allocations: 4 kB / 429.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.2465, allocations: 0.8385 MB / 429.9 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.992e-05/0.2466, allocations: 116.7 kB / 430 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.157e-05/0.2466, allocations: 19.98 kB / 430.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.2469, allocations: 27.98 kB / 430.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.2469, allocations: 19.97 kB / 430.1 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.247, allocations: 16 kB / 430.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001328/0.2472, allocations: 181.9 kB / 430.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2472, allocations: 0 / 430.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004489/0.2476, allocations: 115.7 kB / 430.4 MB, free: 6.773 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.0001387/0.2478, allocations: 128.1 kB / 430.5 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007439/0.2485, allocations: 461 kB / 431 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2485, allocations: 0 / 431 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.2488, allocations: 146.4 kB / 431.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.2494, allocations: 169.1 kB / 431.3 MB, free: 5.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.251, allocations: 1.289 MB / 432.6 MB, free: 4.562 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.2513, allocations: 0.84 MB / 433.4 MB, free: 3.699 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.2515, allocations: 51.27 kB / 433.5 MB, free: 3.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.2516, allocations: 35.44 kB / 433.5 MB, free: 3.613 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2516, allocations: 0 / 433.5 MB, free: 3.613 MB / 298.7 MB Notification: Performance of Templates: time 0.007198/0.2588, allocations: 3.892 MB / 437.4 MB, free: 15.74 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches