Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.001681/0.001681, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001949/0.001949, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2328/0.2328, allocations: 46.9 MB / 357.4 MB, free: 10.47 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 79.86 kB / 0.4912 GB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1364, allocations: 65.99 MB / 0.5557 GB, free: 6.215 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01373/0.1502, allocations: 12.08 MB / 0.5675 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009429/0.1596, allocations: 4.337 MB / 0.5717 GB, free: 5.719 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.1616, allocations: 75.75 kB / 0.5718 GB, free: 5.645 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005481/0.167, allocations: 2.768 MB / 0.5745 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00605/0.1731, allocations: 2.031 MB / 0.5765 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002316/0.1754, allocations: 0.9046 MB / 0.5774 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008778/0.1842, allocations: 5.664 MB / 0.5829 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004334/0.1885, allocations: 2.89 MB / 0.5857 GB, free: 7.309 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.1925, allocations: 1.721 MB / 0.5874 GB, free: 5.582 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004501/0.197, allocations: 2.718 MB / 0.59 GB, free: 2.855 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.1985, allocations: 388 kB / 0.5904 GB, free: 2.477 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003214/0.2017, allocations: 1.432 MB / 0.5918 GB, free: 1.043 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2891/0.4909, allocations: 2.249 MB / 0.594 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004609/0.4955, allocations: 2.493 MB / 0.5964 GB, free: 11.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01381/0.5093, allocations: 8.019 MB / 0.6043 GB, free: 10.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.5093, allocations: 0 / 0.6043 GB, free: 10.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5093, allocations: 0.6875 kB / 0.6043 GB, free: 10.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003629/0.5096, allocations: 0 / 0.6043 GB, free: 10.14 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.02454/0.5342, allocations: 5.813 MB / 0.61 GB, free: 7.887 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.5342, allocations: 10.66 kB / 0.61 GB, free: 7.887 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003536/0.5378, allocations: 0.8011 MB / 0.6107 GB, free: 7.801 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03621/0.574, allocations: 5.987 MB / 0.6166 GB, free: 7.129 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/0.5849, allocations: 3.864 MB / 0.6204 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/0.5852, allocations: 238.4 kB / 0.6206 GB, free: 5.211 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002018/0.5872, allocations: 344.8 kB / 0.6209 GB, free: 5.117 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02696/0.6141, allocations: 10.78 MB / 0.6314 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002398/0.6144, allocations: 48.42 kB / 0.6315 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/0.6154, allocations: 153.9 kB / 0.6316 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00317/0.6186, allocations: 2 MB / 0.6336 GB, free: 13.86 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02097/0.6396, allocations: 9.239 MB / 0.6426 GB, free: 6.742 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06859/0.7081, allocations: 40.89 MB / 0.6825 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.7203, allocations: 4.056 MB / 0.6865 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003518/0.7238, allocations: 1.736 MB / 0.6882 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01854/0.7424, allocations: 7.505 MB / 0.6955 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.822e-05/0.7424, allocations: 62.03 kB / 0.6956 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.641e-06/0.7424, allocations: 0 / 0.6956 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1618/0.9042, allocations: 40.84 MB / 0.7355 GB, free: 6.668 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/0.9043, allocations: 213.1 kB / 0.7357 GB, free: 6.418 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007696/0.912, allocations: 4.333 MB / 0.7399 GB, free: 2.062 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006448/0.9127, allocations: 57.7 kB / 0.74 GB, free: 2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003103/0.9158, allocations: 3.34 MB / 0.7432 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001598/0.9174, allocations: 0.9157 MB / 0.7441 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00237/0.9198, allocations: 1.29 MB / 0.7454 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001923/0.92, allocations: 308.8 kB / 0.7457 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006136/0.9261, allocations: 3.499 MB / 0.7491 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/0.9369, allocations: 7.108 MB / 0.756 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01698/0.9539, allocations: 11.38 MB / 0.7671 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001361/0.954, allocations: 36 kB / 0.7672 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04237/0.9964, allocations: 15.67 MB / 0.7825 GB, free: 3.652 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001641/0.9966, allocations: 60 kB / 0.7825 GB, free: 3.594 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002362/0.9968, allocations: 132 kB / 0.7827 GB, free: 3.465 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02344/1.02, allocations: 6.057 MB / 0.7886 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005624/1.026, allocations: 1.431 MB / 0.79 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04385/1.07, allocations: 27.15 MB / 0.8165 GB, free: 0.5312 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006066/1.076, allocations: 399.5 kB / 0.8169 GB, free: 144 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.077, allocations: 380 kB / 0.8172 GB, free: 15.77 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006181/1.084, allocations: 2.207 MB / 0.8194 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/1.085, allocations: 417.2 kB / 0.8198 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03138/1.116, allocations: 11.02 MB / 0.8305 GB, free: 2.094 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.93e-05/1.116, allocations: 27.94 kB / 0.8306 GB, free: 2.066 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.6e-05/1.116, allocations: 12 kB / 0.8306 GB, free: 2.055 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.485e-05/1.116, allocations: 15.95 kB / 0.8306 GB, free: 2.039 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3098/1.426, allocations: 20.44 MB / 0.8506 GB, free: 216.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.274e-05/1.426, allocations: 9 kB / 0.8506 GB, free: 216.5 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/1.428, allocations: 388.3 kB / 0.8509 GB, free: 216.5 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01833/1.447, allocations: 5.144 MB / 0.856 GB, free: 215.7 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007716/1.447, allocations: 45.23 kB / 0.856 GB, free: 215.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02417/1.472, allocations: 22.25 MB / 0.8777 GB, free: 201.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.472, allocations: 11.94 kB / 0.8777 GB, free: 201.4 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02765/1.499, allocations: 14.28 MB / 0.8917 GB, free: 187.3 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/1.501, allocations: 468.3 kB / 0.8921 GB, free: 187.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/1.502, allocations: 40 kB / 0.8922 GB, free: 187.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002709/1.505, allocations: 179.7 kB / 0.8924 GB, free: 186.9 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007283/1.506, allocations: 165 kB / 0.8925 GB, free: 186.7 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/1.506, allocations: 60 kB / 0.8926 GB, free: 186.7 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.004317/1.51, allocations: 2.73 MB / 0.8952 GB, free: 183.9 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/1.51, allocations: 0 / 0.8952 GB, free: 183.9 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.007243/1.518, allocations: 1.312 MB / 0.8965 GB, free: 182.6 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02782/1.546, allocations: 14.92 MB / 0.9111 GB, free: 167.8 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01169/1.557, allocations: 7.787 MB / 0.9187 GB, free: 160.1 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.747e-05/1.557, allocations: 0 / 0.9187 GB, free: 160.1 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.00485/1.562, allocations: 2.964 MB / 0.9216 GB, free: 157.1 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/1.566, allocations: 0.5383 MB / 0.9221 GB, free: 156.6 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1157/1.682, allocations: 66.98 MB / 0.9875 GB, free: 83.84 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004754/1.687, allocations: 3.515 MB / 0.9909 GB, free: 80.3 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004437/1.691, allocations: 1.964 MB / 0.9929 GB, free: 78.34 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003346/1.695, allocations: 2.069 MB / 0.9949 GB, free: 76.27 MB / 0.6387 GB Notification: Performance of SimCode: time 1.483e-06/1.695, allocations: 0 / 0.9949 GB, free: 76.27 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4853/2.18, allocations: 106 MB / 1.098 GB, free: 221.5 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.53/27.71, allocations: 12.31 kB / 1.098 GB, free: 221.5 MB / 0.6544 GB " [Timeout remaining time 632] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.6828174716793]