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.001354/0.001354, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 212.6 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 58 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1122, allocations: 50.55 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004994/0.1173, allocations: 3.203 MB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1187, allocations: 0.7477 MB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002065/0.119, allocations: 11.94 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003327/0.1193, allocations: 79.19 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.1195, allocations: 75.23 kB / 361.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006366/0.1201, allocations: 279.6 kB / 361.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006569/0.1208, allocations: 0.6089 MB / 362.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005013/0.1213, allocations: 345.6 kB / 362.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.1215, allocations: 231.2 kB / 363.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003494/0.1219, allocations: 262.8 kB / 363.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.122, allocations: 68 kB / 363.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.571e-05/0.1221, allocations: 76 kB / 363.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.1223, allocations: 143.6 kB / 363.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003039/0.1226, allocations: 286.7 kB / 363.9 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008268/0.1235, allocations: 0.8103 MB / 364.7 MB, free: 6.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1235, allocations: 0 / 364.7 MB, free: 6.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1235, allocations: 0 / 364.7 MB, free: 6.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1235, allocations: 4 kB / 364.7 MB, free: 6.816 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.001339/0.1249, allocations: 0.8169 MB / 365.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.1249, allocations: 8.031 kB / 365.5 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.125, allocations: 64.19 kB / 365.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.1255, allocations: 386.3 kB / 366 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.581e-05/0.1256, allocations: 71.58 kB / 366.1 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.1257, allocations: 48.38 kB / 366.1 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.1272, allocations: 0.8828 MB / 367 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.1273, allocations: 7.875 kB / 367 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.164e-05/0.1273, allocations: 20 kB / 367 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1273, allocations: 12 kB / 367 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007733/0.1281, allocations: 360.7 kB / 367.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.1305, allocations: 1.759 MB / 369.1 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.1319, allocations: 0.5225 MB / 369.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004754/0.1324, allocations: 255.8 kB / 369.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.1325, allocations: 8.719 kB / 369.9 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004527/0.1329, allocations: 226.6 kB / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 1.994e-06/0.1329, allocations: 0 / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001311/0.1343, allocations: 0.5924 MB / 370.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.1344, allocations: 182.4 kB / 370.9 MB, free: 296 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002769/0.1347, allocations: 258.7 kB / 371.2 MB, free: 28 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.1557/0.2904, allocations: 32.83 kB / 371.2 MB, free: 20.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.2906, allocations: 208.1 kB / 371.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.2907, allocations: 122.5 kB / 371.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.2909, allocations: 109.1 kB / 371.6 MB, free: 20.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.291, allocations: 348.7 kB / 372 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.2913, allocations: 153.3 kB / 372.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00042/0.2918, allocations: 404.3 kB / 372.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006589/0.2924, allocations: 0.5699 MB / 373.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.2924, allocations: 3.062 kB / 373.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009695/0.2934, allocations: 0.596 MB / 373.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.2935, allocations: 8.656 kB / 373.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.2935, allocations: 8.766 kB / 373.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.649e-05/0.2935, allocations: 13.19 kB / 373.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004703/0.294, allocations: 137.7 kB / 373.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/0.294, allocations: 23.02 kB / 373.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.2943, allocations: 57.92 kB / 373.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.791e-05/0.2944, allocations: 28.66 kB / 373.9 MB, free: 19.04 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.0002767/0.2946, allocations: 215.3 kB / 374.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.295, allocations: 229 kB / 374.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006332/0.2956, allocations: 312.2 kB / 374.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.2957, allocations: 10.38 kB / 374.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.2957, allocations: 1.781 kB / 374.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.2957, allocations: 5.078 kB / 374.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.2968, allocations: 0.8754 MB / 375.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.2968, allocations: 9.5 kB / 375.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.2972, allocations: 106.2 kB / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.2972, allocations: 2.906 kB / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.2973, allocations: 13.05 kB / 375.7 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.2973, allocations: 2.688 kB / 375.7 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2973, allocations: 1.281 kB / 375.7 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.2984, allocations: 0.8121 MB / 376.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.866e-05/0.2985, allocations: 127.7 kB / 376.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/0.2985, allocations: 14.58 kB / 376.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.2988, allocations: 21.23 kB / 376.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.2989, allocations: 20.89 kB / 376.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.2989, allocations: 21.44 kB / 376.7 MB, free: 17.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.299, allocations: 178.3 kB / 376.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.299, allocations: 0 / 376.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004477/0.2995, allocations: 110.1 kB / 377 MB, free: 17.3 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.0001117/0.2996, allocations: 133.5 kB / 377.1 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008818/0.3005, allocations: 481.4 kB / 377.6 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3005, allocations: 0 / 377.6 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.3007, allocations: 141.8 kB / 377.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006032/0.3014, allocations: 178.2 kB / 377.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.3028, allocations: 1.026 MB / 378.9 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.303, allocations: 0.8422 MB / 379.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.3032, allocations: 45.25 kB / 379.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.3033, allocations: 40.09 kB / 379.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3033, allocations: 0 / 379.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Templates: time 0.008584/0.3119, allocations: 4.226 MB / 384.1 MB, free: 15.22 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.1.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