Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07422/0.07422, allocations: 12.37 MB / 29.42 MB, free: 352 kB / 19.63 MB " [Timeout remaining time 180] 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.001239/0.001239, allocations: 111.2 kB / 35.12 MB, free: 1.672 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 207.6 MB / 248.3 MB, free: 8.766 MB / 190.1 MB " [Timeout remaining time 179] 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.001637/0.001637, allocations: 219.8 kB / 303.2 MB, free: 2.332 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3191/0.3191, allocations: 79.72 MB / 437.6 MB, free: 11.71 MB / 318.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 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.004041/0.004041, allocations: 143.8 kB / 0.5826 GB, free: 7.93 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3392, allocations: 71.91 MB / 0.6528 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2): time 0.007543/0.3468, allocations: 5.871 MB / 0.6586 GB, free: 8.992 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003602/0.3504, allocations: 1.721 MB / 0.6602 GB, free: 7.266 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000414/0.3508, allocations: 11.94 kB / 0.6602 GB, free: 7.254 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004938/0.3513, allocations: 202.3 kB / 0.6604 GB, free: 7.055 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001607/0.3529, allocations: 0.7413 MB / 0.6612 GB, free: 6.312 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation Generator.xq <> Generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.3541, allocations: 0.5685 MB / 0.6617 GB, free: 5.75 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.3555, allocations: 1.26 MB / 0.663 GB, free: 4.484 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003368/0.3559, allocations: 183.2 kB / 0.6631 GB, free: 4.289 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006563/0.3565, allocations: 0.5406 MB / 0.6637 GB, free: 3.746 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007722/0.3573, allocations: 0.6494 MB / 0.6643 GB, free: 3.094 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.3574, allocations: 92 kB / 0.6644 GB, free: 3.004 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004733/0.3579, allocations: 227.9 kB / 0.6646 GB, free: 2.781 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.3581, allocations: 242.9 kB / 0.6648 GB, free: 2.543 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005497/0.3587, allocations: 0.5437 MB / 0.6654 GB, free: 1.996 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001691/0.3604, allocations: 1.364 MB / 0.6667 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3604, allocations: 0 / 0.6667 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3604, allocations: 0 / 0.6667 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.3604, allocations: 0 / 0.6667 GB, free: 0.6328 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.0077/0.3681, allocations: 2.383 MB / 0.669 GB, free: 14.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3682, allocations: 11.98 kB / 0.669 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.653e-05/0.3682, allocations: 21.31 kB / 0.669 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.3683, allocations: 118.5 kB / 0.6692 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004945/0.3733, allocations: 0.7563 MB / 0.6699 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.3746, allocations: 0.7213 MB / 0.6706 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003292/0.3749, allocations: 248.2 kB / 0.6708 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.375, allocations: 72 kB / 0.6709 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.3772, allocations: 0.9598 MB / 0.6718 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.3772, allocations: 0 / 0.6718 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.429e-05/0.3773, allocations: 28 kB / 0.6719 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.3773, allocations: 16 kB / 0.6719 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002206/0.3795, allocations: 0.9799 MB / 0.6728 GB, free: 10.17 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00557/0.3851, allocations: 3.171 MB / 0.6759 GB, free: 6.848 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.3872, allocations: 1.232 MB / 0.6771 GB, free: 5.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001437/0.3887, allocations: 0.6306 MB / 0.6778 GB, free: 4.871 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.3888, allocations: 16.98 kB / 0.6778 GB, free: 4.852 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.3888, allocations: 39.56 kB / 0.6778 GB, free: 4.805 MB / 462.1 MB Notification: Performance of pre-optimization done (n=83): time 2.655e-06/0.3888, allocations: 0 / 0.6778 GB, free: 4.805 MB / 462.1 MB Notification: Performance of matching and sorting (n=83): time 0.02708/0.4159, allocations: 6.446 MB / 0.6841 GB, free: 14.32 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.416, allocations: 64.34 kB / 0.6842 GB, free: 14.24 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.4172, allocations: 0.7906 MB / 0.6849 GB, free: 13.45 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001951/0.4174, allocations: 41.7 kB / 0.685 GB, free: 13.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003911/0.4178, allocations: 441.1 kB / 0.6854 GB, free: 12.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000379/0.4182, allocations: 317.2 kB / 0.6857 GB, free: 12.65 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005253/0.4187, allocations: 186.9 kB / 0.6859 GB, free: 12.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.4189, allocations: 345.9 kB / 0.6862 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.4205, allocations: 0.6585 MB / 0.6869 GB, free: 11.46 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001662/0.4221, allocations: 0.7874 MB / 0.6876 GB, free: 10.64 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0187/0.4409, allocations: 4.52 MB / 0.692 GB, free: 6.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.024e-06/0.4409, allocations: 0 / 0.692 GB, free: 6.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.01403/0.4549, allocations: 4.048 MB / 0.696 GB, free: 2.031 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.4549, allocations: 8 kB / 0.696 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4549, allocations: 3.938 kB / 0.696 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007185/0.4621, allocations: 1.741 MB / 0.6977 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.4632, allocations: 187.7 kB / 0.6979 GB, free: 92 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03673/0.4999, allocations: 9.057 MB / 0.7067 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/0.5023, allocations: 155.3 kB / 0.7069 GB, free: 6.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/0.5024, allocations: 39.97 kB / 0.7069 GB, free: 6.684 MB / 494.1 MB Warning: Assuming fixed start value for the following 1 variables: Generator.e1q:VARIABLE(start = Generator.e1q0 unit = \"1\" fixed = true ) \"q-axis transient voltage\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (101): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0007222/0.5032, allocations: 229.6 kB / 0.7071 GB, free: 6.449 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000363/0.5035, allocations: 111.3 kB / 0.7072 GB, free: 6.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02482/0.5284, allocations: 3.786 MB / 0.7109 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.001e-05/0.5284, allocations: 12 kB / 0.7109 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5284, allocations: 0 / 0.7109 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/0.5284, allocations: 3.984 kB / 0.711 GB, free: 2.523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02269/0.5511, allocations: 5.337 MB / 0.7162 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.5511, allocations: 0 / 0.7162 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000641/0.5518, allocations: 95.89 kB / 0.7163 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006551/0.5583, allocations: 1.741 MB / 0.718 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001677/0.5585, allocations: 23.92 kB / 0.718 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02168/0.5802, allocations: 8.046 MB / 0.7258 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.5802, allocations: 0 / 0.7258 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/0.5966, allocations: 4.709 MB / 0.7304 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004555/0.597, allocations: 204.1 kB / 0.7306 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000298/0.5973, allocations: 12 kB / 0.7306 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.5985, allocations: 95.83 kB / 0.7307 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007787/0.5993, allocations: 204.6 kB / 0.7309 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.5994, allocations: 16 kB / 0.7309 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008576/0.6002, allocations: 0.5341 MB / 0.7315 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6002, allocations: 8 kB / 0.7315 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001486/0.6017, allocations: 403.7 kB / 0.7319 GB, free: 12.79 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Generator.delta,Generator.w,Generator.e1q,Generator.e1d) * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(26,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01686/0.6186, allocations: 5.292 MB / 0.737 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007146/0.6257, allocations: 2.203 MB / 0.7392 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.6257, allocations: 0 / 0.7392 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005452/0.6312, allocations: 1.449 MB / 0.7406 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009284/0.6321, allocations: 78.62 kB / 0.7407 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04755/0.6797, allocations: 14.14 MB / 0.7545 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.6808, allocations: 1.025 MB / 0.7555 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005588/0.6814, allocations: 82.25 kB / 0.7556 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000901/0.6823, allocations: 383.2 kB / 0.7559 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of SimCode: time 7.51e-07/0.6823, allocations: 0 / 0.7559 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09332/0.7756, allocations: 31.26 MB / 0.7864 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/17.09, allocations: 8.359 kB / 0.7865 GB, free: 4.645 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.541151592042297] Failed to read output from testmodel.py, exit status != 0: 17.254862949019298 17.277381524 16.912684653 Calling exit ...