Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008376/0.0008376, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008441/0.0008441, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002458/0.0002458, allocations: 11.98 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 51.52 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004316/0.1104, allocations: 2.84 MB / 362.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1119, allocations: 0.7009 MB / 362.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003695/0.1123, allocations: 12 kB / 362.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000356/0.1127, allocations: 47.52 kB / 362.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002735/0.113, allocations: 55.55 kB / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007051/0.1137, allocations: 259.7 kB / 363.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006738/0.1144, allocations: 0.558 MB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004905/0.1149, allocations: 317.6 kB / 364 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.1151, allocations: 147.3 kB / 364.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.1154, allocations: 186.8 kB / 364.4 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.318e-05/0.1155, allocations: 12 kB / 364.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.711e-05/0.1156, allocations: 16 kB / 364.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.1157, allocations: 79.61 kB / 364.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.1159, allocations: 232.4 kB / 364.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006804/0.1166, allocations: 0.7554 MB / 365.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1166, allocations: 0 / 365.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1166, allocations: 0 / 365.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.1167, allocations: 0 / 365.5 MB, free: 7.051 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.001348/0.118, allocations: 0.7156 MB / 366.2 MB, free: 6.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1181, allocations: 12.02 kB / 366.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.1182, allocations: 60.19 kB / 366.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.1187, allocations: 390.3 kB / 366.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.1188, allocations: 71.58 kB / 366.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.66e-05/0.1189, allocations: 48.38 kB / 366.7 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.1206, allocations: 0.8789 MB / 367.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.1206, allocations: 11.86 kB / 367.6 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.527e-05/0.1207, allocations: 16 kB / 367.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.1207, allocations: 16 kB / 367.7 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008829/0.1216, allocations: 367.1 kB / 368 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.1243, allocations: 1.771 MB / 369.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.1257, allocations: 0.5354 MB / 370.3 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004781/0.1262, allocations: 249 kB / 370.6 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.546e-05/0.1263, allocations: 20.77 kB / 370.6 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003953/0.1267, allocations: 214.6 kB / 370.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 3.807e-06/0.1267, allocations: 4 kB / 370.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001375/0.1281, allocations: 0.6224 MB / 371.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.1282, allocations: 182.3 kB / 371.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.1285, allocations: 250.7 kB / 371.8 MB, free: 316 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.696e-05/0.1286, allocations: 37.7 kB / 371.9 MB, free: 272 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.1287, allocations: 212.9 kB / 372.1 MB, free: 52 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1947/0.3234, allocations: 115.2 kB / 372.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.3236, allocations: 56.7 kB / 372.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3238, allocations: 351.1 kB / 372.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/0.3243, allocations: 164.7 kB / 372.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005742/0.3249, allocations: 414.1 kB / 373.2 MB, free: 18.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009077/0.3258, allocations: 0.5723 MB / 373.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.3259, allocations: 3.062 kB / 373.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001254/0.3271, allocations: 0.6099 MB / 374.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3272, allocations: 8.938 kB / 374.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.3272, allocations: 8.422 kB / 374.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.3272, allocations: 12.53 kB / 374.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004866/0.3277, allocations: 140.2 kB / 374.5 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-05/0.3277, allocations: 17.62 kB / 374.5 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.3281, allocations: 61.81 kB / 374.6 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.226e-05/0.3281, allocations: 30.62 kB / 374.6 MB, free: 18.13 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.000307/0.3284, allocations: 217.9 kB / 374.8 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004286/0.3289, allocations: 230 kB / 375.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007638/0.3296, allocations: 315 kB / 375.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.3297, allocations: 10.86 kB / 375.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3297, allocations: 1.625 kB / 375.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.3297, allocations: 4.188 kB / 375.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.3311, allocations: 0.8972 MB / 376.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3311, allocations: 0 / 376.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.3316, allocations: 114.4 kB / 376.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.3316, allocations: 7.25 kB / 376.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.3316, allocations: 15.03 kB / 376.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.3316, allocations: 3.547 kB / 376.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3317, allocations: 1.094 kB / 376.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.333, allocations: 0.8324 MB / 377.3 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-05/0.3331, allocations: 123 kB / 377.4 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.3331, allocations: 23.38 kB / 377.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.3334, allocations: 23.94 kB / 377.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.719e-05/0.3335, allocations: 17.83 kB / 377.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.3335, allocations: 18.3 kB / 377.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000161/0.3337, allocations: 181.6 kB / 377.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3337, allocations: 0 / 377.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004915/0.3342, allocations: 104.9 kB / 377.7 MB, free: 16.82 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.0001427/0.3343, allocations: 131.5 kB / 377.9 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008859/0.3352, allocations: 463.1 kB / 378.3 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3352, allocations: 1.344 kB / 378.3 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.3355, allocations: 152.4 kB / 378.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007212/0.3362, allocations: 176.4 kB / 378.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.338, allocations: 1.29 MB / 379.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.3383, allocations: 0.845 MB / 380.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002803/0.3386, allocations: 46 kB / 380.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3388, allocations: 35.95 kB / 380.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3388, allocations: 0 / 380.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Templates: time 0.009463/0.3482, allocations: 3.862 MB / 384.7 MB, free: 14.56 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches