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.00105/0.001051, allocations: 108 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001166, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.89 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1083, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005103/0.1134, allocations: 3.245 MB / 360.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.1149, allocations: 0.7048 MB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002445/0.1152, allocations: 11.94 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000352/0.1155, allocations: 51.56 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.1157, allocations: 47.56 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.1164, allocations: 263.8 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006228/0.117, allocations: 0.6166 MB / 361.9 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005117/0.1175, allocations: 333.6 kB / 362.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.1178, allocations: 231.2 kB / 362.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.1181, allocations: 258.8 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.016e-05/0.1182, allocations: 72 kB / 362.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.923e-05/0.1183, allocations: 72 kB / 362.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.1185, allocations: 143.6 kB / 363 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.1187, allocations: 286.6 kB / 363.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007524/0.1195, allocations: 0.8142 MB / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1195, allocations: 0 / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1195, allocations: 0 / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.1195, allocations: 0 / 364.1 MB, free: 7.281 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.001376/0.1209, allocations: 0.8169 MB / 364.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.1209, allocations: 8.031 kB / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.1211, allocations: 64.19 kB / 365 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.1215, allocations: 394.3 kB / 365.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.368e-05/0.1216, allocations: 67.58 kB / 365.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.1217, allocations: 52.38 kB / 365.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.1231, allocations: 0.8866 MB / 366.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.223e-05/0.1232, allocations: 15.86 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.884e-05/0.1232, allocations: 16 kB / 366.4 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1232, allocations: 12 kB / 366.4 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007547/0.124, allocations: 359.1 kB / 366.7 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.1264, allocations: 1.751 MB / 368.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.1277, allocations: 0.5304 MB / 369 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.1282, allocations: 243.8 kB / 369.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-05/0.1283, allocations: 20.7 kB / 369.3 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004119/0.1287, allocations: 210.7 kB / 369.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 1.853e-06/0.1287, allocations: 0 / 369.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001254/0.1299, allocations: 0.6068 MB / 370.1 MB, free: 0.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.1301, allocations: 186.3 kB / 370.3 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.1304, allocations: 246.7 kB / 370.5 MB, free: 500 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.1304, allocations: 41.64 kB / 370.6 MB, free: 452 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.1306, allocations: 216.8 kB / 370.8 MB, free: 228 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.1307, allocations: 122.4 kB / 370.9 MB, free: 104 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1541/0.2848, allocations: 98.95 kB / 371 MB, free: 20.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.285, allocations: 352.5 kB / 371.3 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000397/0.2854, allocations: 150.6 kB / 371.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/0.2858, allocations: 409.5 kB / 371.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006677/0.2865, allocations: 0.5596 MB / 372.4 MB, free: 19.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.2865, allocations: 2.781 kB / 372.4 MB, free: 19.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009959/0.2875, allocations: 0.6012 MB / 373 MB, free: 19.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.2875, allocations: 12.39 kB / 373.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.2875, allocations: 7.812 kB / 373.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.2876, allocations: 12.94 kB / 373.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/0.2881, allocations: 132.2 kB / 373.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.078e-05/0.2881, allocations: 17.69 kB / 373.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.2884, allocations: 62.42 kB / 373.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.2885, allocations: 29.78 kB / 373.3 MB, free: 19.3 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.0002699/0.2887, allocations: 219.8 kB / 373.5 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003716/0.2891, allocations: 230.9 kB / 373.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006015/0.2897, allocations: 299.1 kB / 374 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.2897, allocations: 10.81 kB / 374.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.2898, allocations: 4.844 kB / 374.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.2898, allocations: 4.031 kB / 374.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.2909, allocations: 0.8823 MB / 374.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2909, allocations: 1.125 kB / 375 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004753/0.2914, allocations: 105.8 kB / 375.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.2914, allocations: 11.09 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.2915, allocations: 14.69 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.2915, allocations: 7.422 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2915, allocations: 1.312 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.2927, allocations: 0.809 MB / 375.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.2927, allocations: 128.9 kB / 376 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.219e-05/0.2928, allocations: 18.25 kB / 376 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.2931, allocations: 16.28 kB / 376.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.2931, allocations: 22.59 kB / 376.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.2932, allocations: 17.06 kB / 376.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.2933, allocations: 187.1 kB / 376.3 MB, free: 17.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2933, allocations: 0 / 376.3 MB, free: 17.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004718/0.2938, allocations: 108.4 kB / 376.4 MB, free: 17.75 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.0001144/0.2939, allocations: 124.7 kB / 376.5 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009364/0.2949, allocations: 479.9 kB / 377 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2949, allocations: 0 / 377 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.2951, allocations: 140.6 kB / 377.1 MB, free: 17.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/0.2958, allocations: 172.6 kB / 377.3 MB, free: 17.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.2974, allocations: 1.227 MB / 378.5 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.2978, allocations: 0.8399 MB / 379.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.298, allocations: 49.94 kB / 379.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.2981, allocations: 37.19 kB / 379.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2981, allocations: 0 / 379.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Templates: time 0.008427/0.3066, allocations: 4.137 MB / 383.6 MB, free: 15.49 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