Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 114.5 kB / 17.13 MB, free: 6.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002049/0.002049, allocations: 207.2 kB / 20.1 MB, free: 3.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.577/1.577, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 1/1, allocations: 150 MB / 459.5 MB, free: 5.352 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 73.67 kB / 0.6361 GB, free: 30.42 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1505, allocations: 89.13 MB / 0.7231 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.00213/0.1526, allocations: 0.8609 MB / 0.724 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1545, allocations: 1.355 MB / 0.7253 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.827e-05/0.1546, allocations: 3.938 kB / 0.7253 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.544e-05/0.1547, allocations: 7.875 kB / 0.7253 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.1548, allocations: 35.72 kB / 0.7254 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000762/0.1556, allocations: 271.1 kB / 0.7256 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.156, allocations: 291.4 kB / 0.7259 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.833e-05/0.156, allocations: 25.05 kB / 0.7259 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000268/0.1563, allocations: 131.7 kB / 0.726 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.1566, allocations: 131.6 kB / 0.7262 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.1566, allocations: 24 kB / 0.7262 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.897e-05/0.1567, allocations: 43.98 kB / 0.7262 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.949e-05/0.1568, allocations: 43.83 kB / 0.7263 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.1569, allocations: 103.6 kB / 0.7264 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.1573, allocations: 271.3 kB / 0.7266 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1573, allocations: 4 kB / 0.7266 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.342e-06/0.1573, allocations: 0 / 0.7266 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.1573, allocations: 0 / 0.7266 GB, free: 0.5156 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001012/0.1583, allocations: 0.5376 MB / 0.7272 GB, free: 15.91 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1583, allocations: 15.97 kB / 0.7272 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.187e-05/0.1584, allocations: 50.73 kB / 0.7272 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.1586, allocations: 28.83 kB / 0.7273 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.1588, allocations: 228.1 kB / 0.7275 GB, free: 15.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.1589, allocations: 16.38 kB / 0.7275 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.1589, allocations: 16.36 kB / 0.7275 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.1593, allocations: 186.8 kB / 0.7277 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1593, allocations: 3.938 kB / 0.7277 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.1594, allocations: 7.984 kB / 0.7277 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1594, allocations: 0 / 0.7277 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.1596, allocations: 96.17 kB / 0.7278 GB, free: 15.22 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006653/0.1603, allocations: 476.6 kB / 0.7282 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.1605, allocations: 115.8 kB / 0.7284 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.1607, allocations: 76.81 kB / 0.7284 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.1607, allocations: 7.938 kB / 0.7284 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003682/0.1611, allocations: 216 kB / 0.7286 GB, free: 14.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.1611, allocations: 0 / 0.7286 GB, free: 14.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.0009204/0.162, allocations: 453.8 kB / 0.7291 GB, free: 13.83 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.162, allocations: 55.39 kB / 0.7291 GB, free: 13.76 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.1622, allocations: 143 kB / 0.7293 GB, free: 13.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.811e-05/0.1622, allocations: 53.62 kB / 0.7293 GB, free: 13.55 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.041e-05/0.1623, allocations: 104.6 kB / 0.7294 GB, free: 13.45 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.714e-05/0.1624, allocations: 67.53 kB / 0.7295 GB, free: 13.38 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.1626, allocations: 89.98 kB / 0.7296 GB, free: 13.29 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1627, allocations: 326.8 kB / 0.7299 GB, free: 12.96 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.163, allocations: 148.6 kB / 0.73 GB, free: 12.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.1634, allocations: 209.2 kB / 0.7302 GB, free: 12.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005808/0.164, allocations: 366.3 kB / 0.7306 GB, free: 12.19 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.164, allocations: 0 / 0.7306 GB, free: 12.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009582/0.1649, allocations: 0.5033 MB / 0.7311 GB, free: 11.67 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.635e-05/0.165, allocations: 67.41 kB / 0.7311 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.165, allocations: 3.984 kB / 0.7311 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.165, allocations: 7.938 kB / 0.7311 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.1653, allocations: 47.92 kB / 0.7312 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.1653, allocations: 7.969 kB / 0.7312 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/0.1657, allocations: 83.84 kB / 0.7313 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.674e-05/0.1657, allocations: 19.98 kB / 0.7313 GB, free: 11.43 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001954/0.1659, allocations: 157.8 kB / 0.7314 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.166, allocations: 19.89 kB / 0.7315 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.166, allocations: 17.97 kB / 0.7315 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.166, allocations: 3.984 kB / 0.7315 GB, free: 11.22 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.166, allocations: 0 / 0.7315 GB, free: 11.22 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.166, allocations: 7.938 kB / 0.7315 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000947/0.167, allocations: 0.6628 MB / 0.7321 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.167, allocations: 3.938 kB / 0.7321 GB, free: 10.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.383e-05/0.167, allocations: 4 kB / 0.7321 GB, free: 10.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.167, allocations: 0 / 0.7321 GB, free: 10.49 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.1671, allocations: 23.91 kB / 0.7322 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1671, allocations: 0 / 0.7322 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1671, allocations: 4 kB / 0.7322 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006773/0.1677, allocations: 451.2 kB / 0.7326 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/0.1678, allocations: 92.95 kB / 0.7327 GB, free: 9.895 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.1679, allocations: 27.92 kB / 0.7327 GB, free: 9.867 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.168, allocations: 7.984 kB / 0.7327 GB, free: 9.859 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.379e-05/0.168, allocations: 19.98 kB / 0.7327 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.502e-05/0.1681, allocations: 19.97 kB / 0.7328 GB, free: 9.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.258e-05/0.1682, allocations: 105 kB / 0.7329 GB, free: 9.719 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1682, allocations: 0 / 0.7329 GB, free: 9.719 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004089/0.1686, allocations: 67.95 kB / 0.7329 GB, free: 9.652 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.001085/0.1697, allocations: 1.011 MB / 0.7339 GB, free: 8.617 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007534/0.1704, allocations: 423 kB / 0.7343 GB, free: 8.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/0.1704, allocations: 0 / 0.7343 GB, free: 8.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.1707, allocations: 103.9 kB / 0.7344 GB, free: 8.078 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003754/0.171, allocations: 35.5 kB / 0.7344 GB, free: 8.047 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003758/0.1748, allocations: 2.66 MB / 0.737 GB, free: 5.262 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.1751, allocations: 0.7281 MB / 0.7377 GB, free: 4.504 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.221e-05/0.1752, allocations: 17.55 kB / 0.7378 GB, free: 4.484 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.199e-05/0.1753, allocations: 51.36 kB / 0.7378 GB, free: 4.434 MB / 0.545 GB Notification: Performance of SimCode: time 7.92e-07/0.1753, allocations: 0 / 0.7378 GB, free: 4.434 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.2048, allocations: 5.195 MB / 0.7429 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.279/8.484, allocations: 0 / 0.7429 GB, free: 15.39 MB / 0.5606 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0062 IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.631561088142917] Failed to read output from testmodel.py, exit status != 0: 8.55497295805253 8.571948214 8.41140919 Calling exit ...