Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid.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.0008754/0.0008754, allocations: 80.45 kB / 19.15 MB, free: 0.7773 MB / 13.93 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.0009474/0.0009474, allocations: 162 kB / 22.43 MB, free: 2.145 MB / 18.57 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 0.892/0.892, allocations: 177.2 MB / 202.8 MB, free: 5.781 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.702/0.702, allocations: 154.7 MB / 413.9 MB, free: 0.7812 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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(IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid,fileNamePrefix="IDEAS_IDEAS_Fluid_CHPs_OrganicRankine_BaseClasses_Validation_WetFluid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid,fileNamePrefix="IDEAS_IDEAS_Fluid_CHPs_OrganicRankine_BaseClasses_Validation_WetFluid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.001013/0.001013, allocations: 64.09 kB / 0.6183 GB, free: 13.61 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4932/0.4942, allocations: 101.9 MB / 0.7179 GB, free: 23.29 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid): time 0.00359/0.4978, allocations: 2.072 MB / 0.7199 GB, free: 21.88 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.002/0.4998, allocations: 1.313 MB / 0.7212 GB, free: 21.03 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.4999, allocations: 1.094 kB / 0.7212 GB, free: 21.03 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0005943/0.5005, allocations: 237.8 kB / 0.7214 GB, free: 20.95 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.0009834/0.5015, allocations: 454.9 kB / 0.7219 GB, free: 20.74 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 8.365e-06/0.5015, allocations: 0 / 0.7219 GB, free: 20.74 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0003479/0.5018, allocations: 388.8 kB / 0.7222 GB, free: 20.58 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 5.01e-05/0.5019, allocations: 10.53 kB / 0.7222 GB, free: 20.57 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.5021, allocations: 198.6 kB / 0.7224 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.5023, allocations: 199.9 kB / 0.7226 GB, free: 20.41 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.5023, allocations: 26.64 kB / 0.7226 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000481/0.5028, allocations: 279.2 kB / 0.7229 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.5031, allocations: 395 kB / 0.7233 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0002548/0.5034, allocations: 337.1 kB / 0.7236 GB, free: 20.06 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.5046, allocations: 1.216 MB / 0.7248 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.5046, allocations: 0.5625 kB / 0.7248 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5046, allocations: 0 / 0.7248 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.558e-05/0.5046, allocations: 1.438 kB / 0.7248 GB, free: 19.66 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001402/0.506, allocations: 1.21 MB / 0.726 GB, free: 18.84 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.5061, allocations: 10.38 kB / 0.726 GB, free: 18.84 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.504e-05/0.5061, allocations: 47.47 kB / 0.726 GB, free: 18.79 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003876/0.5065, allocations: 159.8 kB / 0.7262 GB, free: 18.73 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/0.5095, allocations: 4.223 MB / 0.7303 GB, free: 17.05 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.5095, allocations: 15.62 kB / 0.7303 GB, free: 17.05 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.5095, allocations: 13 kB / 0.7303 GB, free: 17.04 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.5102, allocations: 0.6347 MB / 0.731 GB, free: 16.87 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.5102, allocations: 0 / 0.731 GB, free: 16.87 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.5102, allocations: 5.344 kB / 0.731 GB, free: 16.86 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.5102, allocations: 8.5 kB / 0.731 GB, free: 16.86 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009434/0.5111, allocations: 1.106 MB / 0.732 GB, free: 16.61 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003024/0.5142, allocations: 3.022 MB / 0.735 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.5148, allocations: 334.6 kB / 0.7353 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.5151, allocations: 218.7 kB / 0.7355 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 6.611e-05/0.5152, allocations: 28.25 kB / 0.7356 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.5152, allocations: 40.58 kB / 0.7356 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=19): time 3.016e-06/0.5152, allocations: 0 / 0.7356 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=19): time 0.001277/0.5165, allocations: 0.728 MB / 0.7363 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.5165, allocations: 53.78 kB / 0.7364 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008353/0.5249, allocations: 6.5 MB / 0.7427 GB, free: 12.93 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.673e-05/0.5249, allocations: 26.92 kB / 0.7427 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.5252, allocations: 425.1 kB / 0.7431 GB, free: 12.55 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.667e-05/0.5252, allocations: 69.31 kB / 0.7432 GB, free: 12.5 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.721e-05/0.5253, allocations: 57.22 kB / 0.7433 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.5253, allocations: 319.5 kB / 0.7436 GB, free: 12.15 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005029/0.5258, allocations: 0.528 MB / 0.7441 GB, free: 12.03 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.5263, allocations: 0.5533 MB / 0.7446 GB, free: 11.89 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006982/0.527, allocations: 0.7726 MB / 0.7454 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.527, allocations: 0 / 0.7454 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001136/0.5282, allocations: 1.24 MB / 0.7466 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.5282, allocations: 8.094 kB / 0.7466 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.5282, allocations: 0 / 0.7466 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.5282, allocations: 6.484 kB / 0.7466 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.5284, allocations: 65.08 kB / 0.7467 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.5284, allocations: 1.375 kB / 0.7467 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.5288, allocations: 45.55 kB / 0.7467 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.5288, allocations: 12.66 kB / 0.7467 GB, free: 11.29 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.0002446/0.529, allocations: 278.5 kB / 0.747 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.555e-05/0.5291, allocations: 105.9 kB / 0.7471 GB, free: 11.06 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006049/0.5297, allocations: 0.5684 MB / 0.7476 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.5297, allocations: 1.844 kB / 0.7476 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5297, allocations: 4.969 kB / 0.7476 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.5298, allocations: 1.734 kB / 0.7476 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/0.5321, allocations: 2.666 MB / 0.7502 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.5321, allocations: 4.75 kB / 0.7502 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.5322, allocations: 54.75 kB / 0.7503 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5322, allocations: 5.156 kB / 0.7503 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.5323, allocations: 13.06 kB / 0.7503 GB, free: 9.781 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.5323, allocations: 5.531 kB / 0.7503 GB, free: 9.781 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5323, allocations: 8.531 kB / 0.7503 GB, free: 9.777 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006016/0.5329, allocations: 0.6815 MB / 0.751 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002317/0.5331, allocations: 194.2 kB / 0.7512 GB, free: 9.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.459e-05/0.5332, allocations: 13.62 kB / 0.7512 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.5334, allocations: 29.28 kB / 0.7512 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.5334, allocations: 28.89 kB / 0.7512 GB, free: 9.277 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.5334, allocations: 15.44 kB / 0.7513 GB, free: 9.273 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.003629/0.5371, allocations: 5.154 MB / 0.7563 GB, free: 7.418 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5371, allocations: 0 / 0.7563 GB, free: 7.418 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000637/0.5377, allocations: 193.6 kB / 0.7565 GB, free: 7.402 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.001045/0.5387, allocations: 1.288 MB / 0.7577 GB, free: 6.465 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0008844/0.5396, allocations: 0.7725 MB / 0.7585 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.5396, allocations: 1 kB / 0.7585 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.5399, allocations: 227.6 kB / 0.7587 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.5406, allocations: 203.1 kB / 0.7589 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01803/0.5586, allocations: 22.96 MB / 0.7813 GB, free: 496 kB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.5589, allocations: 407.1 kB / 0.7817 GB, free: 56 kB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004197/0.5594, allocations: 145.5 kB / 0.7819 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/0.5596, allocations: 308.4 kB / 0.7822 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of SimCode: time 1.724e-06/0.5597, allocations: 0 / 0.7822 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03974/0.5994, allocations: 25.36 MB / 0.8069 GB, free: 6.688 MB / 0.6824 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.889/7.489, allocations: 19.55 kB / 0.8069 GB, free: 6.672 MB / 0.6824 GB " [Timeout remaining time 652] (rm -f IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid.pipe ; mkfifo IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid.pipe >> ../files/IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_CHPs_OrganicRankine_BaseClasses_Validation_WetFluid.fmu > IDEAS_IDEAS.Fluid.CHPs.OrganicRankine.BaseClasses.Validation.WetFluid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.286257514031604] Failed to read output from testmodel.py, exit status != 0: 7.577708863071166 7.585867597 7.079511472 Calling exit ...