Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.001461/0.001461, allocations: 106.6 kB / 16.45 MB, free: 6.035 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.001483/0.001483, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.344/1.344, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002431/0.002431, allocations: 291 kB / 303 MB, free: 9.5 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.132/1.132, allocations: 180.9 MB / 0.5261 GB, free: 14.73 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002685/0.002685, allocations: 105 kB / 0.7248 GB, free: 40.02 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1546, allocations: 94.16 MB / 0.8167 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.2041/0.3587, allocations: 177.4 MB / 0.9899 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01771/0.3764, allocations: 12.88 MB / 1.003 GB, free: 6.5 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.3777, allocations: 35.81 kB / 1.003 GB, free: 6.465 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.3791, allocations: 484.3 kB / 1.003 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003215/0.3823, allocations: 1.061 MB / 1.004 GB, free: 4.926 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004801/0.3871, allocations: 1.886 MB / 1.006 GB, free: 3.047 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00368/0.3908, allocations: 2.528 MB / 1.008 GB, free: 0.5078 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3991/0.7899, allocations: 1.308 MB / 1.01 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004141/0.794, allocations: 1.455 MB / 1.011 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.7955, allocations: 0.9067 MB / 1.012 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0003521/0.7959, allocations: 171.9 kB / 1.012 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00293/0.7988, allocations: 1.47 MB / 1.014 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004913/0.7993, allocations: 0.4912 MB / 1.014 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0009861/0.8003, allocations: 0.8736 MB / 1.015 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004055/0.8043, allocations: 2.822 MB / 1.018 GB, free: 3.688 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.8043, allocations: 1.5 kB / 1.018 GB, free: 3.688 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.253e-06/0.8043, allocations: 0 / 1.018 GB, free: 3.688 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.962e-05/0.8044, allocations: 0.8125 kB / 1.018 GB, free: 3.688 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003593/0.808, allocations: 2.087 MB / 1.02 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.808, allocations: 9.875 kB / 1.02 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002426/0.8082, allocations: 204.4 kB / 1.02 GB, free: 2.594 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002601/0.8108, allocations: 412.6 kB / 1.02 GB, free: 2.5 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.8125, allocations: 1.042 MB / 1.021 GB, free: 2.137 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.156e-05/0.8126, allocations: 103.8 kB / 1.021 GB, free: 2.133 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000214/0.8128, allocations: 132.8 kB / 1.022 GB, free: 2.133 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002833/0.8157, allocations: 1.521 MB / 1.023 GB, free: 1.91 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.8157, allocations: 0.5625 kB / 1.023 GB, free: 1.91 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.8158, allocations: 60.12 kB / 1.023 GB, free: 1.91 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.071e-05/0.8159, allocations: 36.09 kB / 1.023 GB, free: 1.91 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002747/0.8186, allocations: 1.586 MB / 1.025 GB, free: 1.895 MB / 0.7481 GB 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.007732/0.8264, allocations: 5.309 MB / 1.03 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002196/0.8286, allocations: 1.454 MB / 1.031 GB, free: 14.97 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006742/0.8292, allocations: 440.7 kB / 1.032 GB, free: 14.96 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007427/0.83, allocations: 424.8 kB / 1.032 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.831, allocations: 0.6933 MB / 1.033 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=107): time 2.294e-06/0.831, allocations: 2.75 kB / 1.033 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of matching and sorting (n=107): time 0.003744/0.8347, allocations: 1.67 MB / 1.034 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.8349, allocations: 198.2 kB / 1.035 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009662/0.8358, allocations: 0.8919 MB / 1.035 GB, free: 13.93 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 9.177e-05/0.8359, allocations: 49.45 kB / 1.035 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003517/0.8363, allocations: 0.6066 MB / 1.036 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.8365, allocations: 375.5 kB / 1.036 GB, free: 13.4 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.8367, allocations: 196.3 kB / 1.037 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.8369, allocations: 343.3 kB / 1.037 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/0.8375, allocations: 378.4 kB / 1.037 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007331/0.8382, allocations: 0.5615 MB / 1.038 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.8395, allocations: 0.9273 MB / 1.039 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.8395, allocations: 2.688 kB / 1.039 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002231/0.8418, allocations: 1.194 MB / 1.04 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.8418, allocations: 5.969 kB / 1.04 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.8418, allocations: 2.406 kB / 1.04 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005283/0.8423, allocations: 85.3 kB / 1.04 GB, free: 12.63 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/0.8433, allocations: 244.8 kB / 1.04 GB, free: 12.63 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.8452, allocations: 1.651 MB / 1.042 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/0.8462, allocations: 137 kB / 1.042 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-05/0.8463, allocations: 46.12 kB / 1.042 GB, free: 11.2 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000581/0.8469, allocations: 336.7 kB / 1.042 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/0.8471, allocations: 133.8 kB / 1.042 GB, free: 11.01 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002747/0.8499, allocations: 1.435 MB / 1.044 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.8499, allocations: 16.16 kB / 1.044 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.8499, allocations: 0 / 1.044 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.8499, allocations: 6.578 kB / 1.044 GB, free: 10.89 MB / 0.7637 GB 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 postOpt removeSimpleEquations (simulation): time 0.00416/0.8541, allocations: 2.875 MB / 1.047 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.8541, allocations: 1.094 kB / 1.047 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008702/0.8549, allocations: 224.7 kB / 1.047 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003935/0.8553, allocations: 76.22 kB / 1.047 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.423e-05/0.8554, allocations: 30.53 kB / 1.047 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001811/0.8572, allocations: 1.673 MB / 1.049 GB, free: 9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.8572, allocations: 4.906 kB / 1.049 GB, free: 8.996 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.8596, allocations: 1.331 MB / 1.05 GB, free: 8.762 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006606/0.8603, allocations: 363.2 kB / 1.05 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.8604, allocations: 28.02 kB / 1.05 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008502/0.8613, allocations: 76.5 kB / 1.05 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.8614, allocations: 90.34 kB / 1.05 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.803e-05/0.8615, allocations: 51.48 kB / 1.051 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007189/0.8622, allocations: 0.6194 MB / 1.051 GB, free: 8.473 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8622, allocations: 0 / 1.051 GB, free: 8.473 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001288/0.8635, allocations: 0.489 MB / 1.052 GB, free: 8.387 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004654/0.8682, allocations: 2.493 MB / 1.054 GB, free: 7.523 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001975/0.8701, allocations: 1.078 MB / 1.055 GB, free: 7.395 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.8701, allocations: 2.188 kB / 1.055 GB, free: 7.395 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.8712, allocations: 0.643 MB / 1.056 GB, free: 7.27 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002103/0.8733, allocations: 0.5364 MB / 1.056 GB, free: 7.207 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.8873, allocations: 8.924 MB / 1.065 GB, free: 4.746 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008708/0.8881, allocations: 1.209 MB / 1.066 GB, free: 4.023 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.00145/0.8896, allocations: 391.5 kB / 1.067 GB, free: 3.957 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006594/0.8902, allocations: 0.5709 MB / 1.067 GB, free: 3.949 MB / 0.7637 GB Notification: Performance of SimCode: time 9.32e-07/0.8902, allocations: 0 / 1.067 GB, free: 3.949 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07585/0.9661, allocations: 34.21 MB / 1.101 GB, free: 15.98 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.26, allocations: 6.922 kB / 1.101 GB, free: 15.98 MB / 0.795 GB " [Timeout remaining time 646] (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --stepSize=12614.4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.38096201000735] Failed to read output from testmodel.py, exit status != 0: 14.472862522117794 14.492130154 13.68364841 Calling exit ...