Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.0009981/0.0009981, allocations: 84.98 kB / 23 MB, free: 1.508 MB / 18.57 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.001024/0.001024, allocations: 181.2 kB / 26.4 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9881/0.9881, allocations: 158.6 MB / 188.3 MB, free: 2.824 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 3.938 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.387e-05/1.556e-05, allocations: 2.312 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01059/0.01061, allocations: 13.13 MB / 265.4 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005774/0.01638, allocations: 4.416 MB / 269.8 MB, free: 5.605 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008544/0.01724, allocations: 91.38 kB / 269.9 MB, free: 5.516 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.01873, allocations: 1.041 MB / 271 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001895/0.02062, allocations: 1.417 MB / 272.4 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000998/0.02162, allocations: 0.9157 MB / 273.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003067/0.02469, allocations: 4.948 MB / 278.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001782/0.02647, allocations: 1.947 MB / 280.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002965/0.02944, allocations: 3.412 MB / 283.6 MB, free: 7.727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002273/0.03171, allocations: 2.315 MB / 285.9 MB, free: 5.406 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005264/0.03224, allocations: 0.582 MB / 286.5 MB, free: 4.824 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000873/0.03311, allocations: 0.7769 MB / 287.3 MB, free: 4.047 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007863/0.03389, allocations: 1.379 MB / 288.6 MB, free: 2.664 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.03522, allocations: 1.688 MB / 290.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.03869, allocations: 4.035 MB / 294.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.03869, allocations: 0 / 294.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.03869, allocations: 3.984 kB / 294.4 MB, free: 12.92 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.39e-05/0.03873, allocations: 0 / 294.4 MB, free: 12.92 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.006348/0.04508, allocations: 5.146 MB / 299.5 MB, free: 7.707 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.04512, allocations: 15.98 kB / 299.5 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002493/0.04761, allocations: 1.255 MB / 300.8 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.04989, allocations: 2.314 MB / 303.1 MB, free: 4.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.05002, allocations: 271.6 kB / 303.4 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003451/0.05037, allocations: 360.3 kB / 303.7 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003213/0.05358, allocations: 2.733 MB / 306.5 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.813e-05/0.05364, allocations: 7.984 kB / 306.5 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.05387, allocations: 152 kB / 306.6 MB, free: 476 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.05397, allocations: 159.2 kB / 306.8 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.05557, allocations: 1.056 MB / 307.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.06756, allocations: 12.47 MB / 320.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.07013, allocations: 2.159 MB / 322.5 MB, free: 428 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007792/0.0709, allocations: 0.6934 MB / 323.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003199/0.0741, allocations: 2.676 MB / 325.8 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.07413, allocations: 58.7 kB / 325.9 MB, free: 12.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=161): time 2.545e-06/0.07414, allocations: 0 / 325.9 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=164): time 0.006801/0.08094, allocations: 3.892 MB / 329.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.08097, allocations: 72.72 kB / 329.8 MB, free: 8.934 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.08229, allocations: 1.656 MB / 331.5 MB, free: 7.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.142e-05/0.08236, allocations: 49.7 kB / 331.5 MB, free: 7.168 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008518/0.08321, allocations: 1.791 MB / 333.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003342/0.08355, allocations: 0.6043 MB / 333.9 MB, free: 4.746 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003943/0.08394, allocations: 385 kB / 334.3 MB, free: 4.359 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003746/0.08432, allocations: 476.8 kB / 334.8 MB, free: 3.891 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003136/0.08463, allocations: 219.8 kB / 335 MB, free: 3.676 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000654/0.08529, allocations: 0.9881 MB / 336 MB, free: 2.387 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.08635, allocations: 1.342 MB / 337.3 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.08636, allocations: 4 kB / 337.3 MB, free: 0.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.001917/0.08827, allocations: 1.69 MB / 339 MB, free: 15.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.08829, allocations: 12.47 kB / 339 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.0883, allocations: 12 kB / 339 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008984/0.0892, allocations: 479.3 kB / 339.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/0.08992, allocations: 367.4 kB / 339.9 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005954/0.09588, allocations: 9.791 MB / 349.7 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000624/0.0965, allocations: 71.88 kB / 349.7 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.771e-05/0.09659, allocations: 67.98 kB / 349.8 MB, free: 3.773 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005931/0.09718, allocations: 276.1 kB / 350.1 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/0.09746, allocations: 274.6 kB / 350.3 MB, free: 3.223 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.09937, allocations: 1.486 MB / 351.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.09938, allocations: 19.94 kB / 351.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.649e-06/0.09939, allocations: 12 kB / 351.9 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.0994, allocations: 11.97 kB / 351.9 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1265/0.2259, allocations: 3.436 MB / 355.3 MB, free: 79.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.2259, allocations: 0 / 355.3 MB, free: 79.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.2263, allocations: 162.1 kB / 355.5 MB, free: 79.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.2276, allocations: 0.6166 MB / 356.1 MB, free: 79.44 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.964e-05/0.2277, allocations: 41.59 kB / 356.1 MB, free: 79.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006326/0.234, allocations: 14.59 MB / 370.7 MB, free: 68.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.234, allocations: 0 / 370.7 MB, free: 68.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.2365, allocations: 1.947 MB / 372.7 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005902/0.2371, allocations: 389.2 kB / 373 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001836/0.2372, allocations: 37.33 kB / 373.1 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004658/0.2377, allocations: 63.06 kB / 373.1 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.238, allocations: 152.9 kB / 373.3 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/0.238, allocations: 33.19 kB / 373.3 MB, free: 67.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007236/0.2387, allocations: 0.8624 MB / 374.2 MB, free: 67.53 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.2387, allocations: 0 / 374.2 MB, free: 67.53 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001853/0.2406, allocations: 0.7002 MB / 374.9 MB, free: 67.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000253/0.2408, allocations: 167.8 kB / 375 MB, free: 67.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.2426, allocations: 1.954 MB / 377 MB, free: 66.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.2426, allocations: 0 / 377 MB, free: 66.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.2438, allocations: 1.951 MB / 379 MB, free: 65.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.245, allocations: 0.5605 MB / 379.5 MB, free: 65.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006226/0.2512, allocations: 5.81 MB / 385.3 MB, free: 62.4 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006782/0.2519, allocations: 0.9696 MB / 386.3 MB, free: 61.87 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005935/0.2525, allocations: 268.9 kB / 386.6 MB, free: 61.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007223/0.2532, allocations: 0.5676 MB / 387.1 MB, free: 61.21 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.2532, allocations: 0 / 387.1 MB, free: 61.21 MB / 330.7 MB Notification: Performance of Templates: time 0.04013/0.2934, allocations: 39.46 MB / 426.6 MB, free: 23.57 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_YD/AIMC_YD.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable aimc.stator.zeroInductor.i0 in file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat. Warning: Get data of variable aimc.stator.zeroInductor.i0 from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.02399140689522]