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.001462/0.001462, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 60.23 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09791/0.09921, allocations: 50.53 MB / 358.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005402/0.1047, allocations: 3.212 MB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.1066, allocations: 0.7399 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.107, allocations: 11.94 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004035/0.1074, allocations: 79.19 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.1076, allocations: 71.25 kB / 362.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008193/0.1084, allocations: 287.5 kB / 362.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006913/0.1091, allocations: 0.6128 MB / 363.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/0.1097, allocations: 341.6 kB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.1099, allocations: 231.2 kB / 363.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.1103, allocations: 262.8 kB / 364 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.336e-05/0.1104, allocations: 68 kB / 364 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.422e-05/0.1105, allocations: 76 kB / 364.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1106, allocations: 143.6 kB / 364.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.1109, allocations: 282.7 kB / 364.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007796/0.1117, allocations: 0.8142 MB / 365.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1117, allocations: 0 / 365.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1117, allocations: 4 kB / 365.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.1117, allocations: 0 / 365.3 MB, free: 6.883 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.001527/0.1132, allocations: 0.8169 MB / 366.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1133, allocations: 8.031 kB / 366.2 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1134, allocations: 64.19 kB / 366.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.1139, allocations: 386.3 kB / 366.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.838e-05/0.114, allocations: 71.58 kB / 366.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-05/0.1141, allocations: 52.38 kB / 366.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.1157, allocations: 0.8789 MB / 367.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.1157, allocations: 7.875 kB / 367.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.267e-05/0.1158, allocations: 20 kB / 367.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1158, allocations: 16 kB / 367.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008052/0.1166, allocations: 364.6 kB / 368 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.1191, allocations: 1.744 MB / 369.7 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.1205, allocations: 0.5314 MB / 370.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.121, allocations: 255.7 kB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/0.1211, allocations: 8.219 kB / 370.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000468/0.1216, allocations: 219.2 kB / 370.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.444e-06/0.1216, allocations: 0 / 370.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001285/0.1229, allocations: 0.5924 MB / 371.3 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.123, allocations: 190.2 kB / 371.5 MB, free: 360 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.1233, allocations: 254.7 kB / 371.8 MB, free: 96 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.1233, allocations: 33.7 kB / 371.8 MB, free: 56 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1788/0.3022, allocations: 212.2 kB / 372 MB, free: 20.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.3024, allocations: 126.9 kB / 372.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.3026, allocations: 106.4 kB / 372.2 MB, free: 20.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.636e-05/0.3026, allocations: 349.4 kB / 372.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/0.303, allocations: 156.9 kB / 372.7 MB, free: 19.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004667/0.3035, allocations: 405.2 kB / 373.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/0.3042, allocations: 0.566 MB / 373.7 MB, free: 19.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.3043, allocations: 2.656 kB / 373.7 MB, free: 19.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001111/0.3054, allocations: 0.5914 MB / 374.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3054, allocations: 9.156 kB / 374.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.3054, allocations: 12.42 kB / 374.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/0.3055, allocations: 13 kB / 374.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005306/0.306, allocations: 134.4 kB / 374.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/0.306, allocations: 16.84 kB / 374.5 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.3063, allocations: 61.06 kB / 374.5 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.3064, allocations: 29.41 kB / 374.6 MB, free: 19.12 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.0002759/0.3067, allocations: 219.6 kB / 374.8 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004177/0.3071, allocations: 232.8 kB / 375 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006447/0.3078, allocations: 308.2 kB / 375.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.3078, allocations: 11.33 kB / 375.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.3078, allocations: 1.125 kB / 375.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.3078, allocations: 8.609 kB / 375.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.309, allocations: 0.8742 MB / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.3091, allocations: 6.547 kB / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.3096, allocations: 102.1 kB / 376.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.3096, allocations: 4.438 kB / 376.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.3096, allocations: 14.53 kB / 376.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3096, allocations: 6.656 kB / 376.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.3096, allocations: 6.547 kB / 376.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3109, allocations: 0.8044 MB / 377.1 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.311, allocations: 126.7 kB / 377.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.821e-05/0.311, allocations: 15.47 kB / 377.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.3113, allocations: 19.81 kB / 377.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.066e-05/0.3114, allocations: 21.11 kB / 377.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.3114, allocations: 19.61 kB / 377.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001591/0.3116, allocations: 181.4 kB / 377.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3116, allocations: 0 / 377.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.3122, allocations: 112.9 kB / 377.6 MB, free: 17.37 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.0001437/0.3123, allocations: 131 kB / 377.8 MB, free: 17.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3134, allocations: 484.4 kB / 378.2 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3134, allocations: 4 kB / 378.2 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000262/0.3136, allocations: 137.2 kB / 378.4 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006708/0.3143, allocations: 175.6 kB / 378.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.316, allocations: 1.063 MB / 379.6 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.3163, allocations: 0.8445 MB / 380.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.3165, allocations: 38.33 kB / 380.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3165, allocations: 0 / 380.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Templates: time 0.009572/0.326, allocations: 5.651 MB / 386.1 MB, free: 14.38 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches