Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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.00111/0.00111, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.005618/0.005618, allocations: 165.1 kB / 24.7 MB, free: 8.898 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.8898/0.8898, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2068/0.2068, allocations: 29.41 MB / 290.8 MB, free: 2.406 MB / 266.7 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.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(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 431.5 MB, free: 13.07 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.82e-05, allocations: 4.109 kB / 431.5 MB, free: 13.07 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.006637/0.006665, allocations: 7.114 MB / 438.6 MB, free: 5.914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005927/0.01259, allocations: 4.912 MB / 443.5 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008528/0.01344, allocations: 43.69 kB / 443.5 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1644/0.1778, allocations: 6.416 MB / 450 MB, free: 44.12 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.1791, allocations: 0.6076 MB / 450.6 MB, free: 44.07 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009683/0.18, allocations: 0.6085 MB / 451.2 MB, free: 44.05 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002316/0.1824, allocations: 2.765 MB / 453.9 MB, free: 43.72 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009893/0.1834, allocations: 1.17 MB / 455.1 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008689/0.1842, allocations: 1.017 MB / 456.1 MB, free: 43.04 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006051/0.1848, allocations: 0.7843 MB / 456.9 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1849, allocations: 142.9 kB / 457.1 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.1853, allocations: 270 kB / 457.3 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.1856, allocations: 0.5519 MB / 457.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.1858, allocations: 482.8 kB / 458.3 MB, free: 42.39 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.1872, allocations: 2.012 MB / 460.4 MB, free: 41.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1872, allocations: 0 / 460.4 MB, free: 41.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1872, allocations: 0 / 460.4 MB, free: 41.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.843e-05/0.1872, allocations: 3.344 kB / 460.4 MB, free: 41.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.00215/0.1893, allocations: 1.681 MB / 462 MB, free: 40.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1894, allocations: 13.95 kB / 462.1 MB, free: 40.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000394/0.1898, allocations: 178.1 kB / 462.2 MB, free: 40.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.191, allocations: 1.027 MB / 463.3 MB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.1911, allocations: 67.56 kB / 463.3 MB, free: 40.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.1912, allocations: 90.12 kB / 463.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.1925, allocations: 1.421 MB / 464.8 MB, free: 39.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1925, allocations: 3.953 kB / 464.8 MB, free: 39.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.1926, allocations: 34.88 kB / 464.9 MB, free: 39.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001623/0.1927, allocations: 94.27 kB / 465 MB, free: 39.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.1938, allocations: 1.139 MB / 466.1 MB, free: 38.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.1979, allocations: 4.338 MB / 470.4 MB, free: 36.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/0.1987, allocations: 0.8005 MB / 471.2 MB, free: 36.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00044/0.1992, allocations: 494.7 kB / 471.7 MB, free: 35.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.279e-05/0.1992, allocations: 10.12 kB / 471.7 MB, free: 35.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005398/0.1997, allocations: 0.6205 MB / 472.3 MB, free: 35.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=79): time 2.645e-06/0.1997, allocations: 0 / 472.3 MB, free: 35.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=81): time 0.004565/0.2043, allocations: 3.737 MB / 476.1 MB, free: 33.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.2044, allocations: 191.7 kB / 476.3 MB, free: 33.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.205, allocations: 0.7872 MB / 477.1 MB, free: 33.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.205, allocations: 44.73 kB / 477.1 MB, free: 33.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.2052, allocations: 0.5303 MB / 477.6 MB, free: 32.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.2053, allocations: 299.3 kB / 477.9 MB, free: 32.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.2055, allocations: 186.8 kB / 478.1 MB, free: 32.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.399e-05/0.2055, allocations: 349.2 kB / 478.5 MB, free: 32.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004305/0.206, allocations: 486.7 kB / 478.9 MB, free: 32.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005228/0.2065, allocations: 0.8009 MB / 479.7 MB, free: 31.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.2076, allocations: 1.223 MB / 480.9 MB, free: 30.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2076, allocations: 2.875 kB / 481 MB, free: 30.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00476/0.2124, allocations: 2.771 MB / 483.7 MB, free: 30.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.2124, allocations: 8.969 kB / 483.7 MB, free: 30.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.2124, allocations: 6.125 kB / 483.7 MB, free: 30.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004517/0.2169, allocations: 1.876 MB / 485.6 MB, free: 29.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.2174, allocations: 142.5 kB / 485.8 MB, free: 29.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/0.2306, allocations: 12.11 MB / 497.9 MB, free: 23.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006925/0.2313, allocations: 62.3 kB / 497.9 MB, free: 23.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.17e-05/0.2314, allocations: 46.95 kB / 498 MB, free: 23.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009801/0.2324, allocations: 0.7495 MB / 498.7 MB, free: 23.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006277/0.233, allocations: 0.7924 MB / 499.5 MB, free: 22.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00114/0.2342, allocations: 1.197 MB / 0.489 GB, free: 21.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.719e-06/0.2342, allocations: 2.062 kB / 0.489 GB, free: 21.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.004603/0.2388, allocations: 2.7 MB / 0.4916 GB, free: 21.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2388, allocations: 12.19 kB / 0.4916 GB, free: 21.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2388, allocations: 6.875 kB / 0.4916 GB, free: 21.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004033/0.2428, allocations: 1.858 MB / 0.4934 GB, free: 20.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.2432, allocations: 148 kB / 0.4936 GB, free: 20.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.2533, allocations: 11.86 MB / 0.5052 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007208/0.254, allocations: 55.95 kB / 0.5052 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.542e-05/0.2541, allocations: 47.98 kB / 0.5053 GB, free: 10.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0002821/0.2544, allocations: 234.4 kB / 0.5055 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.2545, allocations: 115.3 kB / 0.5056 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.2561, allocations: 1.474 MB / 0.507 GB, free: 8.777 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2561, allocations: 16 kB / 0.5071 GB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.2561, allocations: 3.984 kB / 0.5071 GB, free: 8.758 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2561, allocations: 7.984 kB / 0.5071 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.2586, allocations: 2.465 MB / 0.5095 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.2586, allocations: 3.984 kB / 0.5095 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004628/0.259, allocations: 162.5 kB / 0.5096 GB, free: 6.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006025/0.2596, allocations: 386.3 kB / 0.51 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/0.2597, allocations: 31.98 kB / 0.51 GB, free: 5.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003038/0.2627, allocations: 6.256 MB / 0.5161 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2627, allocations: 0 / 0.5161 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.2651, allocations: 2.13 MB / 0.5182 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.2654, allocations: 191.1 kB / 0.5184 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.557e-05/0.2655, allocations: 27.92 kB / 0.5184 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.2658, allocations: 47.95 kB / 0.5185 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.266, allocations: 68.86 kB / 0.5185 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-05/0.2661, allocations: 31.98 kB / 0.5186 GB, free: 12.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005885/0.2666, allocations: 0.5224 MB / 0.5191 GB, free: 12.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2666, allocations: 7.562 kB / 0.5191 GB, free: 12.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001853/0.2685, allocations: 0.5702 MB / 0.5197 GB, free: 11.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009414/0.2694, allocations: 0.53 MB / 0.5202 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004334/0.2738, allocations: 3.083 MB / 0.5232 GB, free: 8.039 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.2738, allocations: 1.188 kB / 0.5232 GB, free: 8.039 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.2752, allocations: 1.104 MB / 0.5243 GB, free: 6.906 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008034/0.276, allocations: 244.6 kB / 0.5245 GB, free: 6.676 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003477/0.2794, allocations: 2.774 MB / 0.5272 GB, free: 3.887 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005594/0.28, allocations: 0.6424 MB / 0.5278 GB, free: 3.203 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.2802, allocations: 88.45 kB / 0.5279 GB, free: 3.117 MB / 426.7 MB Notification: Performance of SimCode: time 1.362e-06/0.2802, allocations: 4 kB / 0.5279 GB, free: 3.113 MB / 426.7 MB Notification: Performance of Templates: time 0.02775/0.308, allocations: 33.15 MB / 0.5603 GB, free: 1.965 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile [Timeout 660] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.387122677639127] Failed to read output from testmodel.py, exit status != 0: 0.3145915484055877 0.323319391 0.134142695 Calling exit ...