Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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.001787/0.001787, allocations: 109 kB / 20.48 MB, free: 1.473 MB / 14.72 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.002185/0.002185, allocations: 211.5 kB / 23.79 MB, free: 4.684 MB / 14.72 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.473/1.473, allocations: 230.6 MB / 257.6 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9739/0.9739, allocations: 150 MB / 464 MB, free: 10.47 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/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: "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 67.28 kB / 0.6421 GB, free: 10.34 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1973, allocations: 89.18 MB / 0.7292 GB, free: 1.234 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003541/0.2009, allocations: 1.746 MB / 0.7309 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.2026, allocations: 0.6363 MB / 0.7315 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.286e-05/0.2026, allocations: 0 / 0.7315 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.2028, allocations: 15.8 kB / 0.7315 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.2029, allocations: 35.8 kB / 0.7315 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009546/0.2039, allocations: 366.8 kB / 0.7319 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006715/0.2046, allocations: 0.5932 MB / 0.7325 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.2047, allocations: 25.56 kB / 0.7325 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004559/0.2051, allocations: 319.5 kB / 0.7328 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003073/0.2054, allocations: 162.5 kB / 0.7329 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.362e-05/0.2055, allocations: 40 kB / 0.733 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.145e-05/0.2056, allocations: 40 kB / 0.733 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.2057, allocations: 127.6 kB / 0.7331 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002293/0.206, allocations: 219 kB / 0.7334 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000683/0.2067, allocations: 0.6072 MB / 0.7339 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2067, allocations: 0 / 0.7339 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2067, allocations: 0 / 0.7339 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.2067, allocations: 0 / 0.7339 GB, free: 12.32 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001545/0.2082, allocations: 0.8478 MB / 0.7348 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2083, allocations: 12.03 kB / 0.7348 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.435e-05/0.2083, allocations: 192 / 0.7348 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.2083, allocations: 42.73 kB / 0.7348 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.2084, allocations: 56.66 kB / 0.7349 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000452/0.2089, allocations: 280.6 kB / 0.7351 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.2089, allocations: 20.36 kB / 0.7352 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.209, allocations: 40.36 kB / 0.7352 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2101, allocations: 241.7 kB / 0.7354 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.2101, allocations: 0 / 0.7354 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.2101, allocations: 0 / 0.7354 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.2101, allocations: 4 kB / 0.7354 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008104/0.2109, allocations: 115.9 kB / 0.7356 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.2123, allocations: 0.6399 MB / 0.7362 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.2134, allocations: 174.5 kB / 0.7363 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007882/0.2142, allocations: 104.8 kB / 0.7364 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.2142, allocations: 0 / 0.7364 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.2152, allocations: 241.8 kB / 0.7367 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 1.953e-06/0.2152, allocations: 0 / 0.7367 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.002731/0.218, allocations: 0.4932 MB / 0.7372 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.218, allocations: 59.41 kB / 0.7372 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005017/0.2185, allocations: 445.9 kB / 0.7376 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.478e-05/0.2186, allocations: 41.69 kB / 0.7377 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/0.2187, allocations: 101.4 kB / 0.7378 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.415e-05/0.2187, allocations: 39.72 kB / 0.7378 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.219, allocations: 141.4 kB / 0.7379 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2191, allocations: 330.8 kB / 0.7383 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/0.2194, allocations: 135.9 kB / 0.7384 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.2197, allocations: 185.9 kB / 0.7386 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.2202, allocations: 299 kB / 0.7389 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2202, allocations: 0 / 0.7389 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009639/0.2211, allocations: 0.5279 MB / 0.7394 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.2212, allocations: 91.38 kB / 0.7395 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2212, allocations: 4 kB / 0.7395 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.2213, allocations: 0 / 0.7395 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.2214, allocations: 27.97 kB / 0.7395 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2214, allocations: 7.938 kB / 0.7395 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.2219, allocations: 59.97 kB / 0.7396 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.525e-05/0.222, allocations: 63.92 kB / 0.7396 GB, free: 6.195 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstHourSampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.hourSampleTrigger,$whenCondition1,calTim.calTim.daySampleTrigger,$whenCondition2,calTim.calTim.epochLastMonth,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.yearIndex,$PRE.calTim.calTim.yearIndex,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,$PRE.calTim.calTim.weekDay,calTim.calTim.hour,$PRE.calTim.calTim.hour,calTim.calTim.day,$PRE.calTim.calTim.day,calTim.calTim.month,$PRE.calTim.calTim.month,calTim.calTim.year,$PRE.calTim.calTim.year) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * 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.0002802/0.2223, allocations: 220.3 kB / 0.7398 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-05/0.2224, allocations: 43.7 kB / 0.7399 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.174e-05/0.2225, allocations: 39.73 kB / 0.7399 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2225, allocations: 4 kB / 0.7399 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2225, allocations: 0 / 0.7399 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2225, allocations: 3.938 kB / 0.7399 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.2249, allocations: 0.7552 MB / 0.7406 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.2249, allocations: 0 / 0.7406 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.651e-05/0.2249, allocations: 7.938 kB / 0.7407 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.2249, allocations: 3.984 kB / 0.7407 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.267e-05/0.225, allocations: 27.91 kB / 0.7407 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.225, allocations: 0 / 0.7407 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.225, allocations: 8 kB / 0.7407 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.2268, allocations: 482.3 kB / 0.7412 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.2272, allocations: 181.4 kB / 0.7413 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-05/0.2273, allocations: 15.94 kB / 0.7413 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00052/0.2278, allocations: 35.95 kB / 0.7414 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.2278, allocations: 7.984 kB / 0.7414 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.2279, allocations: 59.97 kB / 0.7414 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004136/0.2283, allocations: 315.1 kB / 0.7417 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2283, allocations: 4 kB / 0.7417 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004575/0.2288, allocations: 71.98 kB / 0.7418 GB, free: 3.863 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.calTim.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.002366/0.2312, allocations: 1.033 MB / 0.7428 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001529/0.2327, allocations: 449.2 kB / 0.7433 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2327, allocations: 384 / 0.7433 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007895/0.2335, allocations: 115.9 kB / 0.7434 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.2339, allocations: 39.73 kB / 0.7434 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004962/0.2389, allocations: 3.013 MB / 0.7463 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.2394, allocations: 0.7903 MB / 0.7471 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.904e-05/0.2395, allocations: 9.438 kB / 0.7471 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.604e-05/0.2395, allocations: 35.42 kB / 0.7472 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/0.2395, allocations: 3.938 kB / 0.7472 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.2706, allocations: 6.949 MB / 0.7539 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.64, allocations: 9.641 kB / 0.754 GB, free: 7.32 MB / 0.5762 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus_fmu --startTime=172801 --stopTime=345601 --stepSize=69.12 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.90385480702389] Failed to read output from testmodel.py, exit status != 0: 11.802812257024925 12.167865911 11.958479144 Calling exit ...