Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo): time 0.1051/0.1051, allocations: 11.16 MB / 30.83 MB, free: 6.129 MB / 26.18 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.001291/0.001291, allocations: 88.36 kB / 38.4 MB, free: 7.938 MB / 34.91 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.001502/0.001502, allocations: 168.5 kB / 46.06 MB, free: 264 kB / 34.91 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.332/1.332, allocations: 177.2 MB / 230.8 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1325/0.1325, allocations: 17.64 MB / 309.3 MB, free: 12.81 MB / 286.1 MB " [Timeout remaining time 180] Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.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) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo) Running command: translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") [Timeout 660] "Notification: Chemical 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: Physiolibrary 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: Physiolibrary requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Warning: Requested package Chemical of version 1.4.0, but this package was already loaded with version 1.4.1. There are no conversion annotations and 1.4.0 is older than 1.4.1, so the libraries are probably incompatible. Notification: Performance of FrontEnd - loaded program: time 0.003772/0.003772, allocations: 130 kB / 454.1 MB, free: 296 kB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1076, allocations: 63.83 MB / 0.5058 GB, free: 344 kB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Thermal.Examples.ThermalBody_QHP): time 0.06998/0.1775, allocations: 24.62 MB / 0.5298 GB, free: 7.805 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1793, allocations: 0.7906 MB / 0.5306 GB, free: 7.008 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1795, allocations: 15.88 kB / 0.5306 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.1797, allocations: 79.2 kB / 0.5307 GB, free: 6.914 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.18, allocations: 198.3 kB / 0.5309 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.1802, allocations: 87.89 kB / 0.531 GB, free: 6.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005839/0.1808, allocations: 0.5637 MB / 0.5315 GB, free: 6.066 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.181, allocations: 116.7 kB / 0.5316 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.1812, allocations: 187.4 kB / 0.5318 GB, free: 5.758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.1815, allocations: 187 kB / 0.532 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.903e-05/0.1816, allocations: 32 kB / 0.532 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.798e-05/0.1816, allocations: 32 kB / 0.5321 GB, free: 5.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.529e-05/0.1817, allocations: 79.69 kB / 0.5321 GB, free: 5.434 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.1819, allocations: 191.1 kB / 0.5323 GB, free: 5.246 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004941/0.1824, allocations: 474 kB / 0.5328 GB, free: 4.781 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1824, allocations: 0 / 0.5328 GB, free: 4.781 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1824, allocations: 0 / 0.5328 GB, free: 4.781 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1824, allocations: 4 kB / 0.5328 GB, free: 4.777 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001099/0.1835, allocations: 0.6645 MB / 0.5334 GB, free: 4.082 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.1836, allocations: 11.98 kB / 0.5334 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.94e-05/0.1836, allocations: 52.59 kB / 0.5335 GB, free: 4.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004421/0.1841, allocations: 278.2 kB / 0.5337 GB, free: 3.723 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1841, allocations: 21.03 kB / 0.5338 GB, free: 3.703 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.242e-05/0.1842, allocations: 36.31 kB / 0.5338 GB, free: 3.668 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.1846, allocations: 254.3 kB / 0.534 GB, free: 3.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.1846, allocations: 0 / 0.534 GB, free: 3.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.1847, allocations: 16 kB / 0.5341 GB, free: 3.395 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1847, allocations: 8 kB / 0.5341 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.185, allocations: 190.5 kB / 0.5342 GB, free: 3.203 MB / 494.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.001384/0.1864, allocations: 0.7587 MB / 0.535 GB, free: 2.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003955/0.1868, allocations: 207.1 kB / 0.5352 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.187, allocations: 113.3 kB / 0.5353 GB, free: 2.086 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.1871, allocations: 4.234 kB / 0.5353 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.1871, allocations: 34.8 kB / 0.5353 GB, free: 2.039 MB / 494.1 MB Notification: Performance of pre-optimization done (n=27): time 1.433e-06/0.1871, allocations: 0 / 0.5353 GB, free: 2.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006116/0.1877, allocations: 319.9 kB / 0.5356 GB, free: 1.723 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.1878, allocations: 59.39 kB / 0.5357 GB, free: 1.652 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.188, allocations: 272.6 kB / 0.536 GB, free: 1.371 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.1881, allocations: 29.7 kB / 0.536 GB, free: 1.336 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.1882, allocations: 208.7 kB / 0.5362 GB, free: 1.129 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.852e-05/0.1883, allocations: 99.12 kB / 0.5363 GB, free: 1.031 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-05/0.1884, allocations: 49.7 kB / 0.5363 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1885, allocations: 342.8 kB / 0.5366 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1887, allocations: 63.98 kB / 0.5367 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1888, allocations: 72.5 kB / 0.5368 GB, free: 0.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.19, allocations: 389.4 kB / 0.5372 GB, free: 120 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.19, allocations: 0 / 0.5372 GB, free: 120 kB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004616/0.1904, allocations: 269.3 kB / 0.5374 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1904, allocations: 15.11 kB / 0.5374 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.1904, allocations: 0 / 0.5374 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1905, allocations: 3.938 kB / 0.5374 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.1907, allocations: 55.92 kB / 0.5375 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.1907, allocations: 0 / 0.5375 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.1909, allocations: 19.83 kB / 0.5375 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.1909, allocations: 4 kB / 0.5375 GB, free: 15.75 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: core.relativeHeat:VARIABLE(flow=false start = core.relativeHeat_start unit = \"J\" fixed = true nominal = 4.1868e6 ) \"Current accumulated heat = weight*(T - 37degC)*specificHeat\" type: Real GILumen.relativeHeat:VARIABLE(flow=false start = GILumen.relativeHeat_start unit = \"J\" fixed = true nominal = 4.1868e6 ) \"Current accumulated heat = weight*(T - 37degC)*specificHeat\" type: Real skeletalMuscle.relativeHeat:VARIABLE(flow=false start = skeletalMuscle.relativeHeat_start unit = \"J\" fixed = true nominal = 4.1868e6 ) \"Current accumulated heat = weight*(T - 37degC)*specificHeat\" type: Real skin.relativeHeat:VARIABLE(flow=false start = skin.relativeHeat_start unit = \"J\" fixed = true nominal = 4.1868e6 ) \"Current accumulated heat = weight*(T - 37degC)*specificHeat\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 31 * 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.0002333/0.1911, allocations: 167.6 kB / 0.5377 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.394e-05/0.1912, allocations: 43.7 kB / 0.5377 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.352e-05/0.1913, allocations: 47.94 kB / 0.5377 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1913, allocations: 4 kB / 0.5378 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1913, allocations: 0 / 0.5378 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1913, allocations: 0 / 0.5378 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.1917, allocations: 289 kB / 0.538 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1917, allocations: 0 / 0.538 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002847/0.192, allocations: 47.98 kB / 0.5381 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.192, allocations: 7.984 kB / 0.5381 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.192, allocations: 4 kB / 0.5381 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.192, allocations: 4 kB / 0.5381 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.192, allocations: 0 / 0.5381 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.1927, allocations: 468.3 kB / 0.5385 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.1928, allocations: 51.72 kB / 0.5386 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.1929, allocations: 4.094 kB / 0.5386 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.193, allocations: 8 kB / 0.5386 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.1931, allocations: 19.95 kB / 0.5386 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.1931, allocations: 4 kB / 0.5386 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000203/0.1933, allocations: 203.1 kB / 0.5388 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.1933, allocations: 4 kB / 0.5388 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003424/0.1936, allocations: 99.84 kB / 0.5389 GB, free: 14.26 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (core.relativeHeat,GILumen.relativeHeat,skeletalMuscle.relativeHeat,skin.relativeHeat) * 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 (27): * Single equations (assignments): 27 * 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.0001078/0.1937, allocations: 99.19 kB / 0.539 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003887/0.1941, allocations: 188.1 kB / 0.5392 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1941, allocations: 3.938 kB / 0.5392 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.1943, allocations: 91.92 kB / 0.5393 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005479/0.1949, allocations: 99.89 kB / 0.5394 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.1962, allocations: 0.8385 MB / 0.5402 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.1963, allocations: 190.8 kB / 0.5404 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000116/0.1965, allocations: 26.28 kB / 0.5404 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.1965, allocations: 24.5 kB / 0.5404 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1965, allocations: 0 / 0.5404 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of Templates: time 0.007347/0.2039, allocations: 3.156 MB / 0.5435 GB, free: 9.574 MB / 0.4981 GB " [Timeout remaining time 660] make -j1 -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.makefile [Timeout 660] (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.sim & ./Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.756484176963568] Failed to read output from testmodel.py, exit status != 0: 0.21173492295201868 0.39440670699999997 0.209747967 Calling exit ...