Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.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.001362/0.001362, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001494/0.001494, allocations: 218.1 kB / 23.01 MB, free: 4.605 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.444/1.444, allocations: 230.6 MB / 256.8 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06444/0.06444, allocations: 11.34 MB / 324.5 MB, free: 8.277 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.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: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") [Timeout 660] "Notification: IndustrialControlSystems 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.00203/0.00203, allocations: 63.91 kB / 452.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1098, allocations: 56.07 MB / 0.4964 GB, free: 1.898 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004061/0.1138, allocations: 2.575 MB / 0.499 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.1154, allocations: 0.7499 MB / 0.4997 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002488/0.1157, allocations: 35.62 kB / 0.4997 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.1159, allocations: 91.06 kB / 0.4998 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.1161, allocations: 47.42 kB / 0.4999 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1171, allocations: 431.2 kB / 0.5003 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.1182, allocations: 0.8323 MB / 0.5011 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.1184, allocations: 81.7 kB / 0.5012 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/0.1187, allocations: 267 kB / 0.5014 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003475/0.1191, allocations: 266.6 kB / 0.5017 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.976e-05/0.1192, allocations: 43.94 kB / 0.5017 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.1193, allocations: 63.97 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.1195, allocations: 171.4 kB / 0.5019 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.1197, allocations: 250.3 kB / 0.5022 GB, free: 12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006199/0.1203, allocations: 0.5247 MB / 0.5027 GB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1203, allocations: 4 kB / 0.5027 GB, free: 11.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1203, allocations: 0 / 0.5027 GB, free: 11.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.1203, allocations: 0 / 0.5027 GB, free: 11.46 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001538/0.1219, allocations: 0.8448 MB / 0.5035 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.1219, allocations: 11.97 kB / 0.5035 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.122, allocations: 76.47 kB / 0.5036 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000713/0.1227, allocations: 418.7 kB / 0.504 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.1228, allocations: 37.38 kB / 0.504 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-05/0.1229, allocations: 56.36 kB / 0.5041 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009233/0.1238, allocations: 0.61 MB / 0.5047 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.1238, allocations: 8.078 kB / 0.5047 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.901e-05/0.1239, allocations: 27.94 kB / 0.5047 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.1239, allocations: 12 kB / 0.5047 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006594/0.1245, allocations: 367.6 kB / 0.5051 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.1277, allocations: 2.642 MB / 0.5077 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/0.1283, allocations: 247.3 kB / 0.5079 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.1285, allocations: 109.2 kB / 0.508 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.1285, allocations: 4.219 kB / 0.508 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003726/0.1289, allocations: 211.4 kB / 0.5082 GB, free: 5.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.1289, allocations: 0 / 0.5082 GB, free: 5.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009175/0.1298, allocations: 489 kB / 0.5087 GB, free: 5.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.1299, allocations: 67.39 kB / 0.5087 GB, free: 4.984 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000597/0.1305, allocations: 0.534 MB / 0.5093 GB, free: 4.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.1305, allocations: 37.7 kB / 0.5093 GB, free: 4.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.1308, allocations: 355.8 kB / 0.5096 GB, free: 4.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.1309, allocations: 111.2 kB / 0.5097 GB, free: 3.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.131, allocations: 134.2 kB / 0.5099 GB, free: 3.797 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.1312, allocations: 374.8 kB / 0.5102 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.1315, allocations: 125.6 kB / 0.5103 GB, free: 3.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005248/0.132, allocations: 0.4885 MB / 0.5108 GB, free: 2.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.1336, allocations: 0.9146 MB / 0.5117 GB, free: 1.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.1336, allocations: 4 kB / 0.5117 GB, free: 1.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001179/0.1348, allocations: 0.7191 MB / 0.5124 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.1348, allocations: 22.56 kB / 0.5124 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.1348, allocations: 16 kB / 0.5125 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.1348, allocations: 16 kB / 0.5125 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004457/0.1353, allocations: 151.7 kB / 0.5126 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.628e-05/0.1353, allocations: 23.88 kB / 0.5126 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.1356, allocations: 91.39 kB / 0.5127 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.912e-05/0.1357, allocations: 39.94 kB / 0.5128 GB, free: 472 kB / 382.1 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real R.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real R_outer.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real R_outer.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real R_outer.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real R_inner.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real R_inner.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real P_outer.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] R_inner.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real R.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real P1.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 38 (R.FBout,$PRE.R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,R_outer.FBout,$PRE.R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,R_inner.FBout,$PRE.R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition2,$whenCondition1,$PRE.R_inner.CS,$PRE.R.CS,R_inner.CS,R.CS,R_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.satLOW_in,R_inner.satHIGH_in,R_inner.ATreq_in,R_outer.satLOW_in,R_outer.satHIGH_in,R_outer.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0003989/0.1361, allocations: 264 kB / 0.513 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.723e-05/0.1362, allocations: 59.56 kB / 0.5131 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.1363, allocations: 57.5 kB / 0.5131 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1363, allocations: 4 kB / 0.5131 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1363, allocations: 0 / 0.5131 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.1363, allocations: 7.984 kB / 0.5131 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2068/0.3431, allocations: 413 kB / 0.5135 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3431, allocations: 1.844 kB / 0.5135 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.3434, allocations: 49.98 kB / 0.5136 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.3434, allocations: 5.688 kB / 0.5136 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/0.3434, allocations: 16.23 kB / 0.5136 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3434, allocations: 3.109 kB / 0.5136 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3434, allocations: 1.125 kB / 0.5136 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000865/0.3443, allocations: 0.5525 MB / 0.5141 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.199e-05/0.3444, allocations: 56.34 kB / 0.5142 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.174e-05/0.3445, allocations: 14.83 kB / 0.5142 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.3446, allocations: 13.45 kB / 0.5142 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.3447, allocations: 19.11 kB / 0.5142 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.3447, allocations: 17.33 kB / 0.5143 GB, free: 22.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003106/0.345, allocations: 350.2 kB / 0.5146 GB, free: 22.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.345, allocations: 0 / 0.5146 GB, free: 22.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005258/0.3455, allocations: 106.9 kB / 0.5147 GB, free: 22.65 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (P1.w,P2.Y[3],P2.U[2],P2.w,P_inner.w,P_outer.Y[3],P_outer.U[2],P_outer.w) * Number of discrete variables: 14 ($whenCondition2,$whenCondition1,R.CS,R.FBout,R.cs,R.satin,R_outer.CS,R_outer.FBout,R_outer.cs,R_outer.satin,R_inner.CS,R_inner.FBout,R_inner.cs,R_inner.satin) * Number of discrete states: 6 (R_inner.FBout,R_inner.cs,R_outer.FBout,R_outer.cs,R.FBout,R.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0001606/0.3457, allocations: 129.5 kB / 0.5148 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006692/0.3464, allocations: 415.2 kB / 0.5152 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3464, allocations: 0 / 0.5152 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.3466, allocations: 133.3 kB / 0.5153 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.3469, allocations: 56.09 kB / 0.5154 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.3482, allocations: 1.023 MB / 0.5164 GB, free: 22.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3485, allocations: 0.8969 MB / 0.5173 GB, free: 21.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.988e-05/0.3486, allocations: 40.44 kB / 0.5173 GB, free: 21.36 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3486, allocations: 0 / 0.5173 GB, free: 21.36 MB / 382.1 MB Notification: Performance of Templates: time 0.01129/0.3599, allocations: 6.248 MB / 0.5234 GB, free: 20.95 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.888672517845407] Failed to read output from testmodel.py, exit status != 0: 0.36856313701719046 0.381391435 0.258285461 Calling exit ...