Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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.0008458/0.0008458, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0009841/0.0009841, 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.8708/0.8708, allocations: 177.2 MB / 202.8 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 master/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 master/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 master/package.mo): time 0.7446/0.7446, allocations: 154.9 MB / 414.2 MB, free: 0.4961 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 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(IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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.0008988/0.0008988, allocations: 72.83 kB / 0.6186 GB, free: 13.3 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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.5154/0.5163, allocations: 102 MB / 0.7182 GB, free: 23.21 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.001373/0.5176, allocations: 0.6529 MB / 0.7188 GB, free: 22.81 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0007104/0.5183, allocations: 0.848 MB / 0.7197 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.616e-05/0.5184, allocations: 3.938 kB / 0.7197 GB, free: 22.17 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 9.556e-05/0.5185, allocations: 5.25 kB / 0.7197 GB, free: 22.17 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 1.946e-05/0.5185, allocations: 9 kB / 0.7197 GB, free: 22.16 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.5187, allocations: 24.31 kB / 0.7197 GB, free: 22.15 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 7.751e-05/0.5188, allocations: 25.08 kB / 0.7197 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.5189, allocations: 17.5 kB / 0.7197 GB, free: 22.13 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 6.127e-05/0.5189, allocations: 17.67 kB / 0.7198 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.519, allocations: 18.31 kB / 0.7198 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.519, allocations: 2.406 kB / 0.7198 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 9.889e-06/0.519, allocations: 3.281 kB / 0.7198 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 5.281e-05/0.5191, allocations: 13.31 kB / 0.7198 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.5191, allocations: 16.61 kB / 0.7198 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.5192, allocations: 44.17 kB / 0.7198 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5192, allocations: 4 kB / 0.7199 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.264e-06/0.5192, allocations: 0 / 0.7199 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.5192, allocations: 1.156 kB / 0.7199 GB, free: 22.07 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000319/0.5195, allocations: 275.3 kB / 0.7201 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.5196, allocations: 10.62 kB / 0.7201 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.563e-05/0.5196, allocations: 36.86 kB / 0.7202 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.399e-05/0.5196, allocations: 3 kB / 0.7202 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.882e-05/0.5197, allocations: 117.9 kB / 0.7203 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.5197, allocations: 1.844 kB / 0.7203 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.5197, allocations: 7.281 kB / 0.7203 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.5199, allocations: 66.69 kB / 0.7203 GB, free: 21.58 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.5199, allocations: 9.375 kB / 0.7204 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.5199, allocations: 0 / 0.7204 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.5199, allocations: 1.406 kB / 0.7204 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.52, allocations: 47.75 kB / 0.7204 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00026/0.5203, allocations: 234.4 kB / 0.7206 GB, free: 21.32 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.772e-05/0.5204, allocations: 51.17 kB / 0.7207 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.242e-05/0.5204, allocations: 29.5 kB / 0.7207 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.5204, allocations: 0.7031 kB / 0.7207 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.5205, allocations: 36.59 kB / 0.7207 GB, free: 21.22 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.5205, allocations: 0 / 0.7207 GB, free: 21.22 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002317/0.5207, allocations: 92.56 kB / 0.7208 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.091e-05/0.5207, allocations: 61.38 kB / 0.7209 GB, free: 21.1 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.887e-05/0.5208, allocations: 103.1 kB / 0.721 GB, free: 21 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.292e-06/0.5208, allocations: 26.5 kB / 0.721 GB, free: 20.97 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.607e-05/0.5208, allocations: 82.88 kB / 0.7211 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.5208, allocations: 5.75 kB / 0.7211 GB, free: 20.88 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.5208, allocations: 19.44 kB / 0.7211 GB, free: 20.86 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.004e-05/0.5209, allocations: 316.9 kB / 0.7214 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.346e-05/0.5209, allocations: 19.06 kB / 0.7214 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.414e-05/0.521, allocations: 20 kB / 0.7215 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.66e-05/0.521, allocations: 45.44 kB / 0.7215 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.521, allocations: 0 / 0.7215 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00011/0.5212, allocations: 74.41 kB / 0.7216 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.5212, allocations: 5.078 kB / 0.7216 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.5212, allocations: 1.156 kB / 0.7216 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.5212, allocations: 0 / 0.7216 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.794e-05/0.5212, allocations: 13.39 kB / 0.7216 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.5213, allocations: 6.016 kB / 0.7216 GB, free: 20.47 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.633e-05/0.5213, allocations: 14.67 kB / 0.7216 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.5213, allocations: 3.984 kB / 0.7216 GB, free: 20.46 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.869e-05/0.5214, allocations: 115.3 kB / 0.7217 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.5214, allocations: 2.25 kB / 0.7217 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.594e-05/0.5214, allocations: 12.2 kB / 0.7217 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.5214, allocations: 1.156 kB / 0.7217 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.5214, allocations: 0 / 0.7217 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.5214, allocations: 5.562 kB / 0.7217 GB, free: 20.33 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.777e-05/0.5215, allocations: 133.4 kB / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.5215, allocations: 1.188 kB / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.184e-05/0.5215, allocations: 8.938 kB / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.5215, allocations: 1.156 kB / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.5215, allocations: 0.7969 kB / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.5215, allocations: 1.125 kB / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.5215, allocations: 0 / 0.7219 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.5216, allocations: 174.9 kB / 0.722 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.733e-06/0.5217, allocations: 6.938 kB / 0.7221 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.659e-06/0.5217, allocations: 0.7031 kB / 0.7221 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.998e-05/0.5217, allocations: 6.484 kB / 0.7221 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.5217, allocations: 8.578 kB / 0.7221 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.5218, allocations: 9.516 kB / 0.7221 GB, free: 20.01 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.741e-05/0.5218, allocations: 85.28 kB / 0.7222 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.5218, allocations: 0 / 0.7222 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001421/0.5219, allocations: 4.625 kB / 0.7222 GB, free: 19.93 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002339/0.5221, allocations: 0.7027 MB / 0.7228 GB, free: 19.25 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001307/0.5223, allocations: 38.92 kB / 0.7229 GB, free: 19.25 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.5223, allocations: 1.031 kB / 0.7229 GB, free: 19.25 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.814e-05/0.5223, allocations: 22.08 kB / 0.7229 GB, free: 19.25 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.5225, allocations: 11.42 kB / 0.7229 GB, free: 19.24 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007556/0.5233, allocations: 1.253 MB / 0.7241 GB, free: 18.06 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.026e-05/0.5233, allocations: 68.38 kB / 0.7242 GB, free: 17.98 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.244e-05/0.5233, allocations: 8.094 kB / 0.7242 GB, free: 17.98 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.5234, allocations: 16.55 kB / 0.7242 GB, free: 17.97 MB / 0.6355 GB Notification: Performance of SimCode: time 6.11e-07/0.5234, allocations: 0 / 0.7242 GB, free: 17.97 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01495/0.5383, allocations: 2.19 MB / 0.7264 GB, free: 17.07 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.806/7.344, allocations: 6.578 kB / 0.7264 GB, free: 17.07 MB / 0.6355 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.181596955051646] Failed to read output from testmodel.py, exit status != 0: 7.4203315660124645 7.429319621 6.908382734 Calling exit ...