Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001575/0.001575, allocations: 114.5 kB / 21.18 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001633/0.001633, allocations: 211.4 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.423/1.423, allocations: 230.4 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.84 kB / 378.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2116, allocations: 53.31 MB / 432.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.09901/0.3106, allocations: 95.72 MB / 0.5154 GB, free: 7.34 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2332/0.5438, allocations: 34.61 MB / 0.5492 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001669/0.5455, allocations: 53.22 kB / 0.5493 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002475/0.548, allocations: 1.351 MB / 0.5506 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008269/0.5562, allocations: 4.586 MB / 0.555 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01747/0.5737, allocations: 8.768 MB / 0.5636 GB, free: 284 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005624/0.5793, allocations: 6.236 MB / 0.5697 GB, free: 276 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.581, allocations: 1.721 MB / 0.5714 GB, free: 160 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009298/0.5903, allocations: 5.852 MB / 0.5771 GB, free: 15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.5931, allocations: 2.292 MB / 0.5793 GB, free: 14.24 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003338/0.5935, allocations: 260.4 kB / 0.5796 GB, free: 14.24 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01579/0.6092, allocations: 9.231 MB / 0.5886 GB, free: 12 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008044/0.6101, allocations: 0.8871 MB / 0.5895 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.6116, allocations: 1.365 MB / 0.5908 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.6238, allocations: 8.729 MB / 0.5993 GB, free: 4.129 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.6239, allocations: 0 / 0.5993 GB, free: 4.129 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6239, allocations: 0 / 0.5993 GB, free: 4.129 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.6239, allocations: 0 / 0.5993 GB, free: 4.129 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.008098/0.632, allocations: 3.533 MB / 0.6028 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.632, allocations: 15.97 kB / 0.6028 GB, free: 0.918 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/0.6432, allocations: 1.021 MB / 0.6038 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002679/0.6458, allocations: 1.431 MB / 0.6052 GB, free: 14.81 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/0.6461, allocations: 345.8 kB / 0.6055 GB, free: 14.51 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/0.6465, allocations: 190.4 kB / 0.6057 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008452/0.6549, allocations: 3.448 MB / 0.6091 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.791e-05/0.655, allocations: 7 kB / 0.6091 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002748/0.6553, allocations: 77.47 kB / 0.6091 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.6554, allocations: 103.3 kB / 0.6092 GB, free: 10.68 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009236/0.6646, allocations: 3.47 MB / 0.6126 GB, free: 7.234 MB / 478.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.02268/0.6873, allocations: 14.3 MB / 0.6266 GB, free: 8.203 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007664/0.695, allocations: 2.74 MB / 0.6293 GB, free: 5.465 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002868/0.6979, allocations: 1.399 MB / 0.6306 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02009/0.7179, allocations: 9.06 MB / 0.6395 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.287e-05/0.718, allocations: 60.56 kB / 0.6395 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002008/0.72, allocations: 443.9 kB / 0.64 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=175): time 3.276e-06/0.72, allocations: 0 / 0.64 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of matching and sorting (n=205): time 0.03915/0.7591, allocations: 12 MB / 0.6517 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/0.7592, allocations: 150.5 kB / 0.6518 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.7611, allocations: 1.408 MB / 0.6532 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001955/0.7613, allocations: 69.64 kB / 0.6533 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006742/0.762, allocations: 0.7937 MB / 0.654 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006639/0.7627, allocations: 0.7151 MB / 0.6547 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008098/0.7635, allocations: 451.7 kB / 0.6552 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.7636, allocations: 301.1 kB / 0.6555 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002794/0.7664, allocations: 1.269 MB / 0.6567 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003242/0.7696, allocations: 1.697 MB / 0.6584 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005923/0.7755, allocations: 2.922 MB / 0.6612 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.7755, allocations: 4 kB / 0.6612 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008554/0.7841, allocations: 3.924 MB / 0.665 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.7841, allocations: 8 kB / 0.6651 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.7841, allocations: 16 kB / 0.6651 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005109/0.7893, allocations: 1.59 MB / 0.6666 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/0.7913, allocations: 447.3 kB / 0.667 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007099/0.7984, allocations: 6.693 MB / 0.6736 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.8002, allocations: 128 kB / 0.6737 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.8004, allocations: 119.9 kB / 0.6738 GB, free: 6.051 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 21 (mFlow3.medium.phase,openTankHot3.inFlow[1],openTankHot3.regularFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankCold3.inFlow[1],openTankCold3.regularFlow[1],openTankCold3.heatTransfer.states[1].phase,mFlow2.medium.phase,mFlow1.medium.phase,openTankHot2.inFlow[1],openTankHot2.regularFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot1.inFlow[1],openTankHot1.regularFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankCold1.inFlow[1],openTankCold1.regularFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold2.inFlow[1],openTankCold2.regularFlow[1],openTankCold2.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * 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): 9 systems {(1,5), (1,5), (4,6), (1,5), (1,5), (4,6), (1,5), (1,5), (6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0009413/0.8013, allocations: 0.5039 MB / 0.6743 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/0.8018, allocations: 210.7 kB / 0.6745 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/0.8169, allocations: 9.636 MB / 0.6839 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-05/0.8169, allocations: 11.95 kB / 0.6839 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.8169, allocations: 0 / 0.6839 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0013/0.8182, allocations: 0.6969 MB / 0.6846 GB, free: 10.85 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004125/0.8186, allocations: 115.2 kB / 0.6847 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/0.8206, allocations: 207.8 kB / 0.6849 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000467/0.8211, allocations: 221.7 kB / 0.6851 GB, free: 10.32 MB / 0.545 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:161:5-161:157:writable] Error: Internal error Stack overflow in DAEMode.getEqSystemDAEmode... [bt] #1 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData) [bt] #2 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow) [bt] #3 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traversingexpHasCref) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_Expression_traversingexpHasCref) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDownSubs) [bt] #6...7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDownCrefHelper) [bt] #8...14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.expHasCref) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateFunctionCall) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateCalls) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExpSolve) [bt] #28 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveLinearSystem) [bt] #29 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #30 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveIfExp) [bt] #31 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #32 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solve) [bt] #33...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.traverserStrongComponents) [bt] #1025 [...] Error: Internal error SimCode DAEmode: The model Modelica.Fluid.Examples.Explanatory.MeasuringTemperature could not be translated " [Timeout remaining time 652] [Calling sys.exit(0), Time elapsed: 9.661191829945892] Failed to read output from testmodel.py, exit status != 0: ['time', 'T_onePort.T', 'T_twoPort.T', 'T_junction.T'] 7.595340976957232 7.62263824 6.993654703 Calling exit ...