Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable.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.001931/0.001931, allocations: 105.2 kB / 18.99 MB, free: 2.75 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.002378/0.002378, allocations: 221.4 kB / 22.29 MB, free: 5.172 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.566/1.566, allocations: 230.6 MB / 256.1 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.399/3.399, allocations: 0.5097 GB / 0.8148 GB, free: 18.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithEnable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithEnable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002108/0.002108, allocations: 62.45 kB / 1.184 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3769, allocations: 181.4 MB / 1.361 GB, free: 96 kB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable): time 0.005847/0.3827, allocations: 3.839 MB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.004405/0.3871, allocations: 2.608 MB / 1.367 GB, free: 9.605 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007187/0.3878, allocations: 31.81 kB / 1.367 GB, free: 9.574 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000579/0.3884, allocations: 229.5 kB / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006294/0.3891, allocations: 254 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.3906, allocations: 0.7601 MB / 1.369 GB, free: 8.344 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.002034/0.3926, allocations: 1.908 MB / 1.37 GB, free: 6.434 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.3937, allocations: 0.6208 MB / 1.371 GB, free: 5.766 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007817/0.3945, allocations: 0.681 MB / 1.372 GB, free: 5.082 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007474/0.3952, allocations: 0.6137 MB / 1.372 GB, free: 4.465 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0002644/0.3955, allocations: 220 kB / 1.372 GB, free: 4.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002962/0.3958, allocations: 232 kB / 1.373 GB, free: 4.023 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0003088/0.3961, allocations: 394.7 kB / 1.373 GB, free: 3.637 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0005674/0.3967, allocations: 0.6024 MB / 1.374 GB, free: 3.031 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.00222/0.3989, allocations: 2.331 MB / 1.376 GB, free: 0.6914 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3989, allocations: 7.938 kB / 1.376 GB, free: 0.6836 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3989, allocations: 0 / 1.376 GB, free: 0.6836 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.766e-05/0.3989, allocations: 0 / 1.376 GB, free: 0.6836 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.003722/0.4026, allocations: 2.058 MB / 1.378 GB, free: 14.57 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.4027, allocations: 15.97 kB / 1.378 GB, free: 14.55 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002024/0.4029, allocations: 173.6 kB / 1.378 GB, free: 14.37 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.4032, allocations: 175.9 kB / 1.378 GB, free: 14.2 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.4046, allocations: 0.7773 MB / 1.379 GB, free: 13.39 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.169e-05/0.4047, allocations: 94.7 kB / 1.379 GB, free: 13.3 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.4048, allocations: 128.4 kB / 1.379 GB, free: 13.17 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.4071, allocations: 1.295 MB / 1.381 GB, free: 11.8 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.4071, allocations: 0 / 1.381 GB, free: 11.8 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.4072, allocations: 56 kB / 1.381 GB, free: 11.74 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.4072, allocations: 31.98 kB / 1.381 GB, free: 11.71 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.4091, allocations: 0.8716 MB / 1.381 GB, free: 10.83 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006205/0.4153, allocations: 3.64 MB / 1.385 GB, free: 7.09 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.4174, allocations: 0.9293 MB / 1.386 GB, free: 6.164 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008249/0.4182, allocations: 446.6 kB / 1.386 GB, free: 5.727 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 4.996e-05/0.4183, allocations: 8.656 kB / 1.386 GB, free: 5.715 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009026/0.4192, allocations: 452.7 kB / 1.387 GB, free: 5.266 MB / 1.076 GB Notification: Performance of pre-optimization done (n=85): time 3.657e-06/0.4192, allocations: 0 / 1.387 GB, free: 5.266 MB / 1.076 GB Notification: Performance of matching and sorting (n=85): time 0.002459/0.4216, allocations: 1.097 MB / 1.388 GB, free: 4.16 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.4218, allocations: 192.9 kB / 1.388 GB, free: 3.93 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/0.4232, allocations: 1.008 MB / 1.389 GB, free: 2.902 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001591/0.4234, allocations: 45.7 kB / 1.389 GB, free: 2.852 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005643/0.424, allocations: 0.5598 MB / 1.39 GB, free: 2.285 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.4242, allocations: 301.4 kB / 1.39 GB, free: 1.988 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.4245, allocations: 174.6 kB / 1.39 GB, free: 1.812 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.4247, allocations: 345.9 kB / 1.39 GB, free: 1.469 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009088/0.4256, allocations: 436.1 kB / 1.391 GB, free: 1.027 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.4268, allocations: 0.8588 MB / 1.392 GB, free: 40 kB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.4284, allocations: 0.8139 MB / 1.392 GB, free: 15.19 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.4284, allocations: 4 kB / 1.392 GB, free: 15.18 MB / 1.092 GB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002437/0.4308, allocations: 1.191 MB / 1.394 GB, free: 13.96 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 6.572e-05/0.4309, allocations: 67.39 kB / 1.394 GB, free: 13.88 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4309, allocations: 4 kB / 1.394 GB, free: 13.88 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4309, allocations: 4 kB / 1.394 GB, free: 13.88 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007462/0.4317, allocations: 183.7 kB / 1.394 GB, free: 13.7 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.4317, allocations: 4 kB / 1.394 GB, free: 13.69 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009515/0.4326, allocations: 175.2 kB / 1.394 GB, free: 13.52 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.31e-05/0.4327, allocations: 43.92 kB / 1.394 GB, free: 13.48 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001031/0.4338, allocations: 0.5834 MB / 1.395 GB, free: 12.88 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009183/0.4347, allocations: 0.7885 MB / 1.395 GB, free: 11.96 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001129/0.4358, allocations: 0.7048 MB / 1.396 GB, free: 11.21 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.338e-06/0.4358, allocations: 0 / 1.396 GB, free: 11.21 MB / 1.092 GB Notification: Performance of matching and sorting (n=106) (initialization_lambda0): time 0.001863/0.4377, allocations: 1.074 MB / 1.397 GB, free: 10.11 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 6.332e-05/0.4377, allocations: 71.39 kB / 1.397 GB, free: 10.03 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4377, allocations: 0 / 1.397 GB, free: 10.03 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.4378, allocations: 8 kB / 1.397 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/0.4384, allocations: 147.8 kB / 1.397 GB, free: 9.875 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.4384, allocations: 11.94 kB / 1.397 GB, free: 9.863 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007792/0.4391, allocations: 139.7 kB / 1.398 GB, free: 9.727 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.396e-05/0.4392, allocations: 35.98 kB / 1.398 GB, free: 9.691 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,ena.y,$PRE.ena.y,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * Array equations: 0 * 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.0002844/0.4395, allocations: 240 kB / 1.398 GB, free: 9.449 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.4397, allocations: 119.2 kB / 1.398 GB, free: 9.332 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.4414, allocations: 0.8457 MB / 1.399 GB, free: 8.473 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.4414, allocations: 8 kB / 1.399 GB, free: 8.465 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4414, allocations: 4 kB / 1.399 GB, free: 8.461 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4415, allocations: 3.984 kB / 1.399 GB, free: 8.457 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/0.4451, allocations: 2.066 MB / 1.401 GB, free: 6.316 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4451, allocations: 0 / 1.401 GB, free: 6.316 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006522/0.4457, allocations: 155.8 kB / 1.401 GB, free: 6.164 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.4457, allocations: 4 kB / 1.401 GB, free: 6.16 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.203e-05/0.4458, allocations: 24 kB / 1.401 GB, free: 6.137 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/0.4458, allocations: 8 kB / 1.401 GB, free: 6.129 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4458, allocations: 3.938 kB / 1.401 GB, free: 6.125 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.4482, allocations: 1.395 MB / 1.402 GB, free: 4.691 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.4485, allocations: 147.1 kB / 1.402 GB, free: 4.547 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.4486, allocations: 20 kB / 1.402 GB, free: 4.527 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004452/0.449, allocations: 51.89 kB / 1.403 GB, free: 4.477 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.4491, allocations: 60.48 kB / 1.403 GB, free: 4.414 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-05/0.4492, allocations: 31.98 kB / 1.403 GB, free: 4.383 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001012/0.4502, allocations: 0.6819 MB / 1.403 GB, free: 3.691 MB / 1.092 GB Notification: Performance of sort global known variables: time 9e-08/0.4502, allocations: 0 / 1.403 GB, free: 3.691 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001116/0.4513, allocations: 446.7 kB / 1.404 GB, free: 3.254 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (noLimPID.conPID.D.x,noLimPID.conPID.I.y,limPD.conPID.D.x,limPI.conPID.I.y,limPID.conPID.D.x,limPID.conPID.I.y) * Number of discrete variables: 7 ($whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,ena.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002795/0.4541, allocations: 1.969 MB / 1.406 GB, free: 1.23 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002878/0.457, allocations: 1.558 MB / 1.407 GB, free: 15.61 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.457, allocations: 7.938 kB / 1.407 GB, free: 15.6 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0007076/0.4577, allocations: 381 kB / 1.408 GB, free: 15.22 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.4592, allocations: 322.1 kB / 1.408 GB, free: 14.91 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01515/0.4743, allocations: 9.426 MB / 1.417 GB, free: 5.195 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005869/0.4749, allocations: 0.5062 MB / 1.418 GB, free: 4.656 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0006853/0.4756, allocations: 140.5 kB / 1.418 GB, free: 4.516 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007311/0.4763, allocations: 0.4915 MB / 1.418 GB, free: 4.023 MB / 1.107 GB Notification: Performance of SimCode: time 1.813e-06/0.4763, allocations: 4 kB / 1.418 GB, free: 4.02 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06729/0.5436, allocations: 27.74 MB / 1.445 GB, free: 8.727 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.47, allocations: 9.188 kB / 1.445 GB, free: 8.719 MB / 1.139 GB " [Timeout remaining time 286] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithEnable_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithEnable.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithEnable.pipe 2>&1) [Timeout 840.0] [Calling sys.exit(0), Time elapsed: 20.520746687892824] Failed to read output from testmodel.py, exit status != 0: 13.597933033015579 13.615635753 13.21340305 Calling exit ...