Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 198.9 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 226.5 MB / 244.3 MB, free: 6.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007875/0.0007874, allocations: 98.14 kB / 296.4 MB, free: 6.793 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002256/0.0002256, allocations: 7.984 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2196, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.00268/0.2224, allocations: 2.717 MB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.2234, allocations: 0.6988 MB / 410.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.2236, allocations: 11.94 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.2239, allocations: 43.58 kB / 411 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.224, allocations: 54.36 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.2245, allocations: 183.7 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.2248, allocations: 0.5398 MB / 411.7 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.2251, allocations: 257.4 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.2253, allocations: 135.4 kB / 412.1 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2255, allocations: 181 kB / 412.3 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.567e-05/0.2255, allocations: 12 kB / 412.3 MB, free: 23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.493e-05/0.2256, allocations: 16 kB / 412.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.166e-05/0.2257, allocations: 75.67 kB / 412.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.002e-05/0.2258, allocations: 113.4 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.2262, allocations: 0.6437 MB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2262, allocations: 1.188 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2262, allocations: 0 / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2262, allocations: 0 / 413.2 MB, free: 22.14 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.001063/0.2273, allocations: 0.7201 MB / 413.9 MB, free: 21.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2273, allocations: 8.031 kB / 413.9 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.183e-05/0.2274, allocations: 55.34 kB / 413.9 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.2278, allocations: 385.1 kB / 414.3 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.981e-05/0.2279, allocations: 67.02 kB / 414.4 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-05/0.2279, allocations: 59.89 kB / 414.4 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.2292, allocations: 0.8785 MB / 415.3 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.2293, allocations: 0 / 415.3 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.863e-05/0.2293, allocations: 20 kB / 415.3 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.2293, allocations: 12 kB / 415.3 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006901/0.23, allocations: 371 kB / 415.7 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.2318, allocations: 1.759 MB / 417.5 MB, free: 17.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.233, allocations: 0.5422 MB / 418 MB, free: 17.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003844/0.2334, allocations: 251.8 kB / 418.3 MB, free: 16.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.2335, allocations: 16.5 kB / 418.3 MB, free: 16.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.2338, allocations: 217.8 kB / 418.5 MB, free: 16.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 1.743e-06/0.2338, allocations: 0 / 418.5 MB, free: 16.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.001107/0.2349, allocations: 0.6157 MB / 419.1 MB, free: 15.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.235, allocations: 186.6 kB / 419.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.2352, allocations: 250.7 kB / 419.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.2353, allocations: 37.7 kB / 419.6 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.708e-05/0.2354, allocations: 212.9 kB / 419.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.932e-05/0.2355, allocations: 118.4 kB / 419.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.2355, allocations: 12 kB / 419.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.705e-05/0.2356, allocations: 350.8 kB / 420.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.2359, allocations: 161.2 kB / 420.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.2362, allocations: 407 kB / 420.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.2366, allocations: 231.5 kB / 421 MB, free: 13.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.2366, allocations: 4 kB / 421 MB, free: 13.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008287/0.2374, allocations: 0.5946 MB / 421.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.2374, allocations: 11.95 kB / 421.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.2374, allocations: 8 kB / 421.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.2375, allocations: 12 kB / 421.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004463/0.2379, allocations: 136.2 kB / 421.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.2379, allocations: 15.94 kB / 421.8 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.2382, allocations: 63.52 kB / 421.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.2383, allocations: 28.08 kB / 421.9 MB, free: 12.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002055/0.2385, allocations: 216.5 kB / 422.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003155/0.2388, allocations: 237.1 kB / 422.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005321/0.2393, allocations: 312.4 kB / 422.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.2394, allocations: 8 kB / 422.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2394, allocations: 0 / 422.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.2394, allocations: 3.984 kB / 422.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009554/0.2403, allocations: 0.8889 MB / 423.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2404, allocations: 7.938 kB / 423.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.2408, allocations: 107.9 kB / 423.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.2408, allocations: 4 kB / 423.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.2409, allocations: 15.98 kB / 423.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2409, allocations: 4 kB / 423.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.2409, allocations: 11.94 kB / 423.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.2421, allocations: 0.8277 MB / 424.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.2422, allocations: 120.5 kB / 424.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.914e-05/0.2422, allocations: 24 kB / 424.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.2425, allocations: 23.98 kB / 424.7 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.2426, allocations: 19.97 kB / 424.7 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.2426, allocations: 19.98 kB / 424.7 MB, free: 9.957 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.2427, allocations: 178 kB / 424.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2427, allocations: 3.938 kB / 424.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004131/0.2431, allocations: 107.7 kB / 425 MB, free: 9.672 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001325/0.2433, allocations: 130.2 kB / 425.1 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007181/0.244, allocations: 463.9 kB / 425.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.244, allocations: 1.375 kB / 425.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.2443, allocations: 139.9 kB / 425.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.2449, allocations: 178.5 kB / 425.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2463, allocations: 1.27 MB / 427.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.2466, allocations: 0.8439 MB / 428 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.2467, allocations: 39.42 kB / 428 MB, free: 6.555 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2467, allocations: 4 kB / 428 MB, free: 6.551 MB / 298.7 MB Notification: Performance of Templates: time 0.006351/0.2531, allocations: 5.565 MB / 433.6 MB, free: 0.9922 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches