/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 1 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 = 7444
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0205.0-1700_daily_bin904
RA = 31.2637, Dec = -17.0022
tmin = 473644801, tmax = 473904001
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='89650', job_status='RUN', time_executed='2021-08-15 05:54:02.297915', time_epoch_executed='1629032042.3' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89650/ft1_4FGL_J0205.0-1700_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89650/ft1_4FGL_J0205.0-1700_daily_bin904.fits outfile=/scratch/kocevski/89650/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin904.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=473644801.0 tmax=473904001.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 6.81
user 3.61
sys 3.10

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.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/89650/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin904.fits evtable="EVENTS" outfile="/scratch/kocevski/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.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 3.79
user 0.32
sys 3.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/89650/ltcube_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.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/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits
.....................!
real 17.07
user 13.43
sys 3.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/89650/ltcube_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.fits outfile=/scratch/kocevski/89650/expmap_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.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/89650/ltcube_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.fits
.....................!
real 195.20
user 186.14
sys 8.56

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/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits scfile=/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits outfile=/scratch/kocevski/89650/cmap_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.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 3.39
user 0.38
sys 2.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits scfile=/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits outfile=/scratch/kocevski/89650/cmap_HighResolution_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.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 3.65
user 0.39
sys 3.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89650/Model_4FGL_J0205.0-1700_daily_bin904.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/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits.....................!
real 52.00
user 46.46
sys 5.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits', '/scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits', expMap='/scratch/kocevski/89650/expmap_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.fits', expCube='/scratch/kocevski/89650/ltcube_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89650/Model_4FGL_J0205.0-1700_daily_bin904.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/89650/ft1_filtered_4FGL_J0205.0-1700_daily_bin904.fits
Spacecraft file(s): /scratch/kocevski/89650/ft2_4FGL_J0205.0-1700_daily_bin904.fits
Exposure map: /scratch/kocevski/89650/expmap_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.fits
Exposure cube: /scratch/kocevski/89650/ltcube_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89650/Model_4FGL_J0205.0-1700_daily_bin904.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) = 5164.11111645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.605       1.0000         .10000E-03   10000.    
     2 'norm      '    .11628E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2673       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3257       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1754       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0808       1.0000         .10000E-03   10000.    
     7 'norm      '    .11425E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.528       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6629       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.596       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .41676       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2591       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.

 FCN=   5164.107     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2190 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.602        17.411       -.44267E-06   -.14846E-03
   2  norm          .10000E-03    2.7017       -.69852E-07** at limit **
   3  Prefactor     1.2702        3.6354       -.12213E-05   -.63751E-03
   4  norm          8.3324        24.445        .68449E-05    .23198E-03
   5  norm          2.1755        1.4307        .60485E-07   -.20031E-04
   6  norm          2.0809        1.6987        .15091E-06    .15001E-03
   7  norm          .10000E-03    3.3954       -.12997E-06** at limit **
   8  norm          .10000E-03    .97499        .52158E-07** at limit **
   9  Prefactor     37.522        43.390       -.33520E-05   -.15626E-03
  10  norm          5.6629        2.1946        .27808E-07    .94730E-05
  11  Prefactor     .10000E-03    1.4348       -.89671E-07** at limit **
  12  Prefactor     19.667        13.062        .64516E-06    .63667E-04
  13  Prefactor     3.7799        8.9237        .43462E-05   -.99538E-03
  14  Prefactor     .10000E-03    4.2248        .93911E-07** at limit **
  15  Prefactor     .10000E-03    2.0276        .36346E-09** at limit **
  16  Prefactor     .10000E-03    13.076        .36663E-05** at limit **
  17  norm          .10000E-03    11.824       -.34093E-05** at limit **
  18  Prefactor     12.597        6.3306        .10765E-06    .24940E-04
  19  Prefactor     .10000E-03    22.241       -.94740E-06** at limit **
  20  Normalizat    .41665        .17047       -.12512E-06    .29984E-04
  21  Prefactor     1.2592        .18845       -.65516E-06    .96141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6024
  norm       = 0.0001
  Prefactor  = 1.27018
  norm       = 8.33236
  norm       = 2.17553
  norm       = 2.08087
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 37.5223
  norm       = 5.66292
  Prefactor  = 0.0001
  Prefactor  = 19.6668
  Prefactor  = 3.77991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 12.5968
  Prefactor  = 0.0001
  Normalizat = 0.416652
  Prefactor  = 1.25923
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.107     FROM HESSE     STATUS=OK           315 CALLS     2505 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.602        17.092        .69125E-04   -1.4548    
   2  norm          .10000E-03    2.7242        .22824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2702        3.6402        .21728E-03   -1.5483    
   4  norm          8.3324        24.661        .13894E-03   -1.5131    
   5  norm          2.1755        1.4217        .65561E-04   -1.5413    
   6  norm          2.0809        1.6900        .80683E-04   -1.5419    
   7  norm          .10000E-03    7.6105        .25488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .98098        .69276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.522        43.817        .65424E-04   -1.4482    
  10  norm          5.6629        2.1955        .62427E-04   -1.5232    
  11  Prefactor     .10000E-03    1.4515        .84023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.667        13.041        .90319E-04   -1.4821    
  13  Prefactor     3.7799        11.291        .10378E-02   -1.5319    
  14  Prefactor     .10000E-03    4.3280        .28784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0314        .99921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.597        6.3305        .11286E-03   -1.4998    
  19  Prefactor     .10000E-03    22.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .41665        .18878        .29251E-03   -1.1645    
  21  Prefactor     1.2592        .21061        .20481E-03   -.84528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03099e-09
Minuit parameter uncertainties:
  1  17.0947
  2  3.29198e-05
  3  3.64085
  4  24.6913
  5  1.42175
  6  1.69006
  7  0.000320039
  8  2.42996e-06
  9  43.8548
  10  2.19552
  11  4.25669e-06
  12  13.0425
  13  11.2977
  14  2.53157e-06
  15  3.96113e-08
  16  0.000289948
  17  0.000270157
  18  6.3308
  19  9.99685e-05
  20  0.189072
  21  0.210749
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.663e+00  2.196e+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.259e+00  2.107e-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:  4.167e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.95
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.16e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.06e-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) = 5164.07470962
delta logL = 0.0324946843066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.07186589
delta logL = 0.0353384133532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7916       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4485       1.0000          .0000       5.0000    
     3 'Normalizat'    .42625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2511       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=   5164.072     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7916        3.6284        .41722E-02   -.62338E-02
   2  alpha         2.4485        .63649        .26170        .20964E-04
   3  Normalizat    .42622        .16236        .65372E-01    .35938E-04
   4  Prefactor     1.2512        .18887        .33521E-01   -.15964E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.79162
  alpha      = 2.44853
  Normalizat = 0.426224
  Prefactor  = 1.25116
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.072     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7916        2.3051        .64367E-04   -1.5227    
   2  alpha         2.4485        .42893        .10957E-01   -.20590E-01
   3  Normalizat    .42622        .18250        .28935E-03   -1.1597    
   4  Prefactor     1.2512        .21086        .20538E-03   -.84771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76022e-09
Minuit parameter uncertainties:
  1  2.30511
  2  0.431064
  3  0.182752
  4  0.211006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89650': 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) = 5164.07186588
delta logL = 0.035338423575

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.792e+00  2.305e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.449e+00  4.311e-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.251e+00  2.110e-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:  4.262e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.88
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 2.45 +/- 0.43
Photon Flux (Free Index): 1.02e-07 +/- 4.57e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.18e-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/89650/cmap_HighResolution_473644801_473904001_4FGL_J0205.0-1700_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.83e-05', photon_flux_error='4.16e-08', dlogl='3.53e-02', energy_flux='2.74e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-15 06:03:41.489923', photon_index_error2='0.43', photon_index2='2.45', ts='15.95', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.42', time_epoch_completed='1629032621.49', return_code='0', job_id='89650', GAL2='1.25', EG2='0.43', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.57e-08', ts2='15.88', photon_index='2.56' WHERE bin_id='904' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:03:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 89650: <4FGL_J0205.0-1700_daily_bin904> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin904> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 05:51:02 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:52:47 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:52:47 2021
Terminated at Sun Aug 15 06:03:42 2021
Results reported at Sun Aug 15 06:03:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin904 31.2637 -17.0022 473644801 473904001 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 :                                   622.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            760 sec.

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

