Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 225.6 MB / 247.8 MB, free: 3.746 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09432/0.09432, allocations: 22.68 MB / 325.4 MB, free: 7.934 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002912/0.002912, allocations: 66.33 kB / 457.1 MB, free: 41.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1071, allocations: 58.03 MB / 0.5031 GB, free: 8.164 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003331/0.1104, allocations: 3.024 MB / 0.5061 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.112, allocations: 1.04 MB / 0.5071 GB, free: 4.074 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003752/0.1124, allocations: 19.88 kB / 0.5071 GB, free: 4.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1126, allocations: 83.06 kB / 0.5072 GB, free: 3.973 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.1128, allocations: 87.14 kB / 0.5072 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.1134, allocations: 317.8 kB / 0.5076 GB, free: 3.578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.1138, allocations: 0.5467 MB / 0.5081 GB, free: 3.031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.114, allocations: 171 kB / 0.5082 GB, free: 2.855 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.1141, allocations: 199 kB / 0.5084 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1143, allocations: 206.8 kB / 0.5086 GB, free: 2.457 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.819e-05/0.1143, allocations: 44 kB / 0.5087 GB, free: 2.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.042e-05/0.1144, allocations: 51.94 kB / 0.5087 GB, free: 2.363 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.302e-05/0.1144, allocations: 111.5 kB / 0.5088 GB, free: 2.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.1145, allocations: 226.5 kB / 0.509 GB, free: 2.031 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003547/0.1149, allocations: 0.5444 MB / 0.5096 GB, free: 1.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1149, allocations: 4 kB / 0.5096 GB, free: 1.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1149, allocations: 0 / 0.5096 GB, free: 1.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1149, allocations: 0 / 0.5096 GB, free: 1.48 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0008856/0.1158, allocations: 0.8293 MB / 0.5104 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.1158, allocations: 11.97 kB / 0.5104 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.323e-05/0.1159, allocations: 70.72 kB / 0.5105 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.464e-05/0.1159, allocations: 72.5 kB / 0.5105 GB, free: 452 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.1164, allocations: 434.1 kB / 0.511 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.1165, allocations: 29.38 kB / 0.511 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.735e-05/0.1165, allocations: 48.31 kB / 0.511 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000671/0.1172, allocations: 419.6 kB / 0.5114 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1172, allocations: 4 kB / 0.5114 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.1172, allocations: 19.94 kB / 0.5115 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1172, allocations: 8 kB / 0.5115 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005664/0.1178, allocations: 278.4 kB / 0.5117 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.1197, allocations: 1.52 MB / 0.5132 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/0.1205, allocations: 339.2 kB / 0.5135 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.1207, allocations: 129.3 kB / 0.5137 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.1208, allocations: 8.219 kB / 0.5137 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1208, allocations: 34.8 kB / 0.5137 GB, free: 13.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.1208, allocations: 0 / 0.5137 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009088/0.1217, allocations: 410.6 kB / 0.5141 GB, free: 12.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.1218, allocations: 106.8 kB / 0.5142 GB, free: 12.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004417/0.1222, allocations: 406 kB / 0.5146 GB, free: 12.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.1223, allocations: 29.7 kB / 0.5146 GB, free: 12.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.1225, allocations: 268.4 kB / 0.5149 GB, free: 11.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.673e-05/0.1226, allocations: 107.7 kB / 0.515 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.1227, allocations: 69.62 kB / 0.515 GB, free: 11.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.1229, allocations: 362.8 kB / 0.5154 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1231, allocations: 109.1 kB / 0.5155 GB, free: 11.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.1234, allocations: 200.9 kB / 0.5157 GB, free: 10.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.1248, allocations: 0.5254 MB / 0.5162 GB, free: 10.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1248, allocations: 4 kB / 0.5162 GB, free: 10.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006901/0.1255, allocations: 390.6 kB / 0.5166 GB, free: 9.984 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1255, allocations: 7.938 kB / 0.5166 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1255, allocations: 0 / 0.5166 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1255, allocations: 4 kB / 0.5166 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.1258, allocations: 75.89 kB / 0.5166 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.1259, allocations: 4 kB / 0.5167 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.1261, allocations: 35.77 kB / 0.5167 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.1261, allocations: 12.19 kB / 0.5167 GB, free: 9.848 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) \"Connector of Real output signal\" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003506/0.1264, allocations: 216.4 kB / 0.5169 GB, free: 9.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002284/0.1267, allocations: 172.9 kB / 0.5171 GB, free: 9.434 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001077/0.1277, allocations: 467.3 kB / 0.5175 GB, free: 8.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.1277, allocations: 0 / 0.5175 GB, free: 8.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005226/0.1283, allocations: 341 kB / 0.5178 GB, free: 8.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.1283, allocations: 6.344 kB / 0.5178 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1283, allocations: 4 kB / 0.5178 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.536e-06/0.1283, allocations: 0 / 0.5178 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.1285, allocations: 59.91 kB / 0.5179 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.1285, allocations: 7.938 kB / 0.5179 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.1287, allocations: 31.84 kB / 0.5179 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.1287, allocations: 8 kB / 0.518 GB, free: 8.5 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) \"Connector of Real output signal\" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001715/0.1289, allocations: 220.5 kB / 0.5182 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.129, allocations: 47.67 kB / 0.5182 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.1291, allocations: 48.7 kB / 0.5183 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1291, allocations: 4 kB / 0.5183 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1291, allocations: 0 / 0.5183 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1291, allocations: 3.984 kB / 0.5183 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005393/0.1296, allocations: 465.2 kB / 0.5187 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1296, allocations: 4 kB / 0.5187 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.1299, allocations: 59.91 kB / 0.5188 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1299, allocations: 0 / 0.5188 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.13, allocations: 4 kB / 0.5188 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.13, allocations: 4 kB / 0.5188 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.13, allocations: 0 / 0.5188 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009039/0.1309, allocations: 0.5468 MB / 0.5193 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.131, allocations: 152.7 kB / 0.5195 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.1311, allocations: 4 kB / 0.5195 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.1313, allocations: 19.98 kB / 0.5195 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.1313, allocations: 15.98 kB / 0.5195 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.1313, allocations: 7.984 kB / 0.5195 GB, free: 6.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003027/0.1316, allocations: 287.1 kB / 0.5198 GB, free: 6.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1316, allocations: 0 / 0.5198 GB, free: 6.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.1321, allocations: 143.6 kB / 0.5199 GB, free: 6.402 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.y) * 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 (28): * Single equations (assignments): 28 * 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.001201/0.1333, allocations: 1.099 MB / 0.521 GB, free: 5.273 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007787/0.1341, allocations: 393.1 kB / 0.5214 GB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1341, allocations: 8.188 kB / 0.5214 GB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.1343, allocations: 127.9 kB / 0.5215 GB, free: 4.758 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006359/0.135, allocations: 131 kB / 0.5216 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005194/0.1402, allocations: 3.769 MB / 0.5253 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.1407, allocations: 0.8312 MB / 0.5261 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002219/0.1409, allocations: 55.23 kB / 0.5262 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.1411, allocations: 155.3 kB / 0.5263 GB, free: 15.68 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1411, allocations: 0 / 0.5263 GB, free: 15.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.1745, allocations: 9.004 MB / 0.5351 GB, free: 6.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.376, allocations: 11.98 kB / 0.5351 GB, free: 6.793 MB / 398.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_TurbineFollows_fmu --startTime=0 --stopTime=2000 --stepSize=4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.921957588754594] Failed to read output from testmodel.py, exit status != 0: 8.447603867389262 8.466592316 8.348407455 Calling exit ...