Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.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.001324/0.001324, allocations: 117 kB / 18.41 MB, free: 4.664 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.001325/0.001325, allocations: 186.9 kB / 21.34 MB, free: 1.738 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.43/1.43, allocations: 222.9 MB / 247.1 MB, free: 4.324 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3056/0.3056, allocations: 38.01 MB / 337.2 MB, free: 12.99 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 68.47 kB / 467.5 MB, free: 27.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.1007, allocations: 58.08 MB / 0.5133 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.008486/0.1092, allocations: 6.566 MB / 0.5197 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003946/0.1132, allocations: 2.107 MB / 0.5218 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003918/0.1136, allocations: 19.88 kB / 0.5218 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001708/0.1153, allocations: 0.6378 MB / 0.5224 GB, free: 384 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001368/0.1167, allocations: 0.5406 MB / 0.5229 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008723/0.1176, allocations: 383.2 kB / 0.5233 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.119, allocations: 1.205 MB / 0.5245 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008227/0.1198, allocations: 0.5835 MB / 0.525 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007705/0.1206, allocations: 0.5137 MB / 0.5255 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009086/0.1215, allocations: 0.6503 MB / 0.5262 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.1217, allocations: 92 kB / 0.5263 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000905/0.1226, allocations: 0.511 MB / 0.5268 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004924/0.1231, allocations: 486.8 kB / 0.5272 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005805/0.1237, allocations: 0.521 MB / 0.5277 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.1253, allocations: 1.386 MB / 0.5291 GB, free: 9.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1253, allocations: 0 / 0.5291 GB, free: 9.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1254, allocations: 3.938 kB / 0.5291 GB, free: 9.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.1254, allocations: 0 / 0.5291 GB, free: 9.496 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002619/0.128, allocations: 1.408 MB / 0.5305 GB, free: 8.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.128, allocations: 11.89 kB / 0.5305 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008272/0.1289, allocations: 156.2 kB / 0.5306 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.13, allocations: 0.6517 MB / 0.5313 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.61e-05/0.13, allocations: 70.38 kB / 0.5313 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000209/0.1303, allocations: 96.11 kB / 0.5314 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.1324, allocations: 1.315 MB / 0.5327 GB, free: 5.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.1324, allocations: 4 kB / 0.5327 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.1325, allocations: 43.92 kB / 0.5328 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001569/0.1327, allocations: 61.97 kB / 0.5328 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.1346, allocations: 1.179 MB / 0.534 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006572/0.1412, allocations: 4.638 MB / 0.5385 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.143, allocations: 1.293 MB / 0.5398 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009581/0.144, allocations: 0.652 MB / 0.5404 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.386e-05/0.144, allocations: 8.656 kB / 0.5404 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001318/0.1454, allocations: 0.8986 MB / 0.5413 GB, free: 12.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 2.695e-06/0.1454, allocations: 0 / 0.5413 GB, free: 12.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=123): time 0.005711/0.1511, allocations: 3.604 MB / 0.5448 GB, free: 8.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/0.1513, allocations: 242.8 kB / 0.545 GB, free: 8.531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006129/0.1519, allocations: 0.4902 MB / 0.5455 GB, free: 8.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.095e-05/0.152, allocations: 53.69 kB / 0.5456 GB, free: 7.973 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.1524, allocations: 413.1 kB / 0.546 GB, free: 7.562 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003515/0.1527, allocations: 389 kB / 0.5463 GB, free: 7.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003472/0.1531, allocations: 218.9 kB / 0.5465 GB, free: 6.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002355/0.1533, allocations: 398.7 kB / 0.5469 GB, free: 6.559 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000855/0.1542, allocations: 0.5147 MB / 0.5474 GB, free: 6.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.1553, allocations: 0.7856 MB / 0.5482 GB, free: 5.168 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.1573, allocations: 1.403 MB / 0.5496 GB, free: 3.645 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.1573, allocations: 7.938 kB / 0.5496 GB, free: 3.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004014/0.1613, allocations: 2.075 MB / 0.5516 GB, free: 1.539 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.1614, allocations: 59.41 kB / 0.5516 GB, free: 1.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003151/0.1646, allocations: 1.633 MB / 0.5532 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/0.1666, allocations: 0.6606 MB / 0.5539 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.1671, allocations: 135.7 kB / 0.554 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/0.1772, allocations: 6.485 MB / 0.5603 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006996/0.1779, allocations: 63.88 kB / 0.5604 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.454e-05/0.178, allocations: 48 kB / 0.5605 GB, free: 8.301 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay2.y[3],$PRE.relay2.y[3],relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[3],$PRE.relay1.y[3],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],switch2.switch_c.closed,switch2.switch_c.open,$PRE.switch2.switch_c.open,switch2.switch_c.arc,$PRE.switch2.switch_c.arc,switch2.switch_b.closed,switch2.switch_b.open,$PRE.switch2.switch_b.open,switch2.switch_b.arc,$PRE.switch2.switch_b.arc,switch2.switch_a.closed,switch2.switch_a.open,$PRE.switch2.switch_a.open,switch2.switch_a.arc,$PRE.switch2.switch_a.arc,switch1.switch_c.closed,switch1.switch_c.open,$PRE.switch1.switch_c.open,switch1.switch_c.arc,$PRE.switch1.switch_c.arc,switch1.switch_b.closed,switch1.switch_b.open,$PRE.switch1.switch_b.open,switch1.switch_b.arc,$PRE.switch1.switch_b.arc,switch1.switch_a.closed,switch1.switch_a.open,$PRE.switch1.switch_a.open,switch1.switch_a.arc,$PRE.switch1.switch_a.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 2 * 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): 1 system {(7,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006475/0.1787, allocations: 438 kB / 0.5609 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.1789, allocations: 83.48 kB / 0.5609 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002374/0.1813, allocations: 1.431 MB / 0.5623 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.766e-05/0.1813, allocations: 23.98 kB / 0.5624 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1814, allocations: 0 / 0.5624 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.1814, allocations: 7.922 kB / 0.5624 GB, free: 6.281 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004485/0.1859, allocations: 2.759 MB / 0.5651 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1859, allocations: 0 / 0.5651 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.187, allocations: 231.8 kB / 0.5653 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.187, allocations: 4 kB / 0.5653 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.648e-05/0.1871, allocations: 23.98 kB / 0.5653 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.1871, allocations: 4 kB / 0.5653 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1871, allocations: 4 kB / 0.5653 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003415/0.1905, allocations: 2.299 MB / 0.5676 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.1908, allocations: 148.6 kB / 0.5677 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.1909, allocations: 39.92 kB / 0.5678 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.1914, allocations: 43.95 kB / 0.5678 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.1916, allocations: 112.8 kB / 0.5679 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-05/0.1917, allocations: 35.98 kB / 0.5679 GB, free: 464 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004448/0.1922, allocations: 346.8 kB / 0.5683 GB, free: 116 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1922, allocations: 0 / 0.5683 GB, free: 116 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001081/0.1933, allocations: 300 kB / 0.5686 GB, free: 15.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * 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.0004134/0.1937, allocations: 174.9 kB / 0.5687 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003698/0.1974, allocations: 1.883 MB / 0.5706 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.1974, allocations: 0 / 0.5706 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.1987, allocations: 0.883 MB / 0.5714 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/0.1996, allocations: 144.9 kB / 0.5716 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.2036, allocations: 2.35 MB / 0.5739 GB, free: 10.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000843/0.2045, allocations: 1.101 MB / 0.5749 GB, free: 9.148 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/0.2048, allocations: 75.42 kB / 0.575 GB, free: 9.074 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2048, allocations: 0 / 0.575 GB, free: 9.074 MB / 446.1 MB Notification: Performance of Templates: time 0.2448/0.4496, allocations: 14.16 MB / 0.5888 GB, free: 65.93 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile [Timeout 660] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.734735080972314] Failed to read output from testmodel.py, exit status != 0: 0.4562349000480026 0.471037943 0.34287451300000005 Calling exit ...