/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 20 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7541
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1061
RA = 31.2637, Dec = -17.0022
tmin = 514339201, tmax = 514598401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='90944', job_status='RUN', time_executed='2021-08-15 05:56:45.722519', time_epoch_executed='1629032205.72' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90944

Creating custom pfile directory:
/scratch/kocevski/90944/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=514339201.0 && nMetStart<514598401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=514339201.0 && nMetStart<514598401.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90944/ft1_4FGL_J0205.0-1700_daily_bin1061.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=514339201.0 && nMetStart<514598401.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90944/ft1_4FGL_J0205.0-1700_daily_bin1061.fits outfile=/scratch/kocevski/90944/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1061.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=514339201.0 tmax=514598401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.13
user 3.98
sys 1.12

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/90944/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.45
user 0.34
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/90944/ltcube_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits
.....................!
real 15.18
user 13.73
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/90944/ltcube_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits outfile=/scratch/kocevski/90944/expmap_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/90944/ltcube_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits
.....................!
real 193.08
user 186.22
sys 6.37

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J0205.0-1700 @ 31.2637 -17.0022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits scfile=/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits outfile=/scratch/kocevski/90944/cmap_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=31.2637 yref=-17.0022 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.50
user 0.36
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits scfile=/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits outfile=/scratch/kocevski/90944/cmap_HighResolution_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=31.2637 yref=-17.0022 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.51
user 0.37
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90944/Model_4FGL_J0205.0-1700_daily_bin1061.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits.....................!
real 49.01
user 46.36
sys 2.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits', '/scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits', expMap='/scratch/kocevski/90944/expmap_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits', expCube='/scratch/kocevski/90944/ltcube_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90944/Model_4FGL_J0205.0-1700_daily_bin1061.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0205.0-1700'

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.877e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.564e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.165e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90944/ft1_filtered_4FGL_J0205.0-1700_daily_bin1061.fits
Spacecraft file(s): /scratch/kocevski/90944/ft2_4FGL_J0205.0-1700_daily_bin1061.fits
Exposure map: /scratch/kocevski/90944/expmap_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits
Exposure cube: /scratch/kocevski/90944/ltcube_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90944/Model_4FGL_J0205.0-1700_daily_bin1061.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4876.23139871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4876.19883224

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6691       1.0000         .10000E-03   10000.    
     4 'norm      '    .12575E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0968       1.0000         .10000E-03   10000.    
     6 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.743       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.032       1.0000         .10000E-03   10000.    
    17 'norm      '    68.223       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7116       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91911       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4876.199     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     2548 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7314        .18142E-02** at limit **
   2  norm          .10000E-03    7.5188        .21682E-02** at limit **
   3  Prefactor     3.6700        3.4959        .12355E-03    .12054E-03
   4  norm          .10000E-03    52.707        .11649    ** at limit **
   5  norm          3.0970        1.7463        .65926E-04    .61046E-04
   6  norm          .10000E-03    2.0401        .15330E-02** at limit **
   7  norm          12.752        9.1554        .11221E-03    .26747E-04
   8  norm          .10000E-03    2.2916        .10243E-02** at limit **
   9  Prefactor     .10000E-03    15.552        .18142E-02** at limit **
  10  norm          5.7166        2.8012        .77180E-04   -.48167E-04
  11  Prefactor     .10000E-03    1.4706        .82436E-03** at limit **
  12  Prefactor     15.103        10.341        .10306E-03   -.16326E-04
  13  Prefactor     .10000E-03    11.191        .18142E-02** at limit **
  14  Prefactor     3.4155        5.3311        .95671E-03    .11998E-03
  15  Prefactor     10.055        14.230        .12635E-03   -.17455E-04
  16  Prefactor     26.029        23.382        .78515E-04   -.17086E-04
  17  norm          68.212        74.455        .48595E-04   -.32753E-05
  18  Prefactor     .10000E-03    3.0020        .11775E-02** at limit **
  19  Prefactor     7.7135        71.474        .14440E-03    .14171E-05
  20  Normalizat    .91899        .23184        .24955E-03   -.48017E-04
  21  Prefactor     1.0616        .24759        .25794E-03   -.17806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 3.67
  norm       = 0.000100001
  norm       = 3.09699
  norm       = 0.0001
  norm       = 12.7523
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71662
  Prefactor  = 0.0001
  Prefactor  = 15.103
  Prefactor  = 0.0001
  Prefactor  = 3.41548
  Prefactor  = 10.0555
  Prefactor  = 26.0287
  norm       = 68.2118
  Prefactor  = 0.0001
  Prefactor  = 7.71349
  Normalizat = 0.918991
  Prefactor  = 1.06165
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.199     FROM HESSE     STATUS=OK           307 CALLS     2855 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.5942        .43364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6700        3.4948        .49421E-05   -1.5325    
   4  norm          .10000E-03    50.087        .12032       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0970        1.7463        .26371E-05   -1.5356    
   6  norm          .10000E-03    2.0436        .30661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.752        9.1531        .44884E-05   -1.4994    
   8  norm          .10000E-03    2.2920        .20486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7166        2.8011        .30872E-05   -1.5230    
  11  Prefactor     .10000E-03    1.4707        .16487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.103        10.341        .41224E-05   -1.4931    
  13  Prefactor     .10000E-03    11.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4155        5.3286        .38269E-04   -1.5338    
  15  Prefactor     10.055        14.229        .50541E-05   -1.5074    
  16  Prefactor     26.029        23.381        .31406E-05   -1.4687    
  17  norm          68.212        74.460        .97190E-05   -1.4054    
  18  Prefactor     .10000E-03    3.0023        .23550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.7135        71.397        .57761E-05   -1.5152    
  20  Normalizat    .91899        .23206        .99819E-05   -.95796    
  21  Prefactor     1.0616        .24785        .10318E-04   -.90702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31297e-10
Minuit parameter uncertainties:
  1  3.40287e-05
  2  0.000302815
  3  3.49495
  4  0.00051098
  5  1.74636
  6  5.3018e-06
  7  9.15412
  8  9.82933e-07
  9  3.04589e-06
  10  2.80119
  11  1.28616e-06
  12  10.342
  13  2.65707e-05
  14  5.32936
  15  14.2337
  16  23.3893
  17  74.562
  18  1.26156e-06
  19  47.0087
  20  0.232315
  21  0.248122
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4876.19882965

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.717e+00  2.801e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.564e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.165e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.062e+00  2.481e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  9.190e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 5.31e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.35e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4876.1208844
delta logL = 0.0779452533725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4876.11589548
delta logL = 0.0829341769559

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9186       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3437       1.0000          .0000       5.0000    
     3 'Normalizat'    .93798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4876.116     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9178        4.3080        .41266E-02    .13013E-03
   2  alpha         2.3440        .67971        .31714       -.66825E-05
   3  Normalizat    .93733        .19032        .45385E-01    .10631E-04
   4  Prefactor     1.0451        .21055        .58723E-01    .81484E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.91779
  alpha      = 2.34397
  Normalizat = 0.937333
  Prefactor  = 1.04513
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.116     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9178        2.9471        .80482E-04   -1.5221    
   2  alpha         2.3440        .52208        .12614E-01   -.62453E-01
   3  Normalizat    .93733        .22824        .24745E-03   -.95160    
   4  Prefactor     1.0451        .24905        .25967E-03   -.91240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20284e-14
Minuit parameter uncertainties:
  1  2.94716
  2  0.525971
  3  0.228481
  4  0.24933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90944': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4876.11589024
delta logL = 0.0829394093253

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.918e+00  2.947e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.344e+00  5.260e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.165e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.045e+00  2.493e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  9.373e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 2.34 +/- 0.53
Photon Flux (Free Index): 9.71e-08 +/- 5.66e-08
Energy Flux (Free Index): 2.98e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/90944/cmap_HighResolution_514339201_514598401_4FGL_J0205.0-1700_daily_bin1061.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/90944

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.98e-05', photon_flux_error='5.31e-08', dlogl='8.29e-02', energy_flux='2.76e-05', photon_flux2='9.71e-08', job_status='DONE', time_completed='2021-08-15 06:06:06.431703', photon_index_error2='0.53', photon_index2='2.34', ts='7.96', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.92', time_epoch_completed='1629032766.43', return_code='0', job_id='90944', GAL2='1.05', EG2='0.94', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.66e-08', ts2='8.09', photon_index='2.56' WHERE bin_id='1061' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 90944: <4FGL_J0205.0-1700_daily_bin1061> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1061> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 05:55:24 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 05:56:02 2021
Terminated at Sun Aug 15 06:06:07 2021
Results reported at Sun Aug 15 06:06:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1061 31.2637 -17.0022 514339201 514598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0205.0-1700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   565.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            643 sec.

The output (if any) is above this job summary.

