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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1016
RA = 31.2637, Dec = -17.0022
tmin = 502675201, tmax = 502934401
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='90879', job_status='RUN', time_executed='2021-08-15 05:57:43.759197', time_epoch_executed='1629032263.76' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90879/ft1_4FGL_J0205.0-1700_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90879/ft1_4FGL_J0205.0-1700_daily_bin1016.fits outfile=/scratch/kocevski/90879/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1016.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=502675201.0 tmax=502934401.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 8.28
user 3.38
sys 4.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.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/90879/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1016.fits evtable="EVENTS" outfile="/scratch/kocevski/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.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 5.20
user 0.34
sys 4.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits" evtable="EVENTS" scfile=/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits sctable="SC_DATA" outfile=/scratch/kocevski/90879/ltcube_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.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/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits
.....................!
real 20.22
user 14.61
sys 5.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/90879/ltcube_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.fits outfile=/scratch/kocevski/90879/expmap_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.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/90879/ltcube_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.fits
.....................!
real 199.54
user 187.50
sys 11.49

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/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits scfile=/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits outfile=/scratch/kocevski/90879/cmap_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.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 5.15
user 0.38
sys 4.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits scfile=/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits outfile=/scratch/kocevski/90879/cmap_HighResolution_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.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 5.25
user 0.38
sys 4.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90879/Model_4FGL_J0205.0-1700_daily_bin1016.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/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits.....................!
real 55.46
user 47.84
sys 7.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits', '/scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits', expMap='/scratch/kocevski/90879/expmap_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.fits', expCube='/scratch/kocevski/90879/ltcube_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90879/Model_4FGL_J0205.0-1700_daily_bin1016.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/90879/ft1_filtered_4FGL_J0205.0-1700_daily_bin1016.fits
Spacecraft file(s): /scratch/kocevski/90879/ft2_4FGL_J0205.0-1700_daily_bin1016.fits
Exposure map: /scratch/kocevski/90879/expmap_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.fits
Exposure cube: /scratch/kocevski/90879/ltcube_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90879/Model_4FGL_J0205.0-1700_daily_bin1016.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5035.21626845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58149E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.477       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6464       1.0000         .10000E-03   10000.    
     6 'norm      '    .29878       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3507       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4894       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7970       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1052       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79376       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=   5035.047     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     2228 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2495        .14278E-02** at limit **
   2  norm          .10000E-03    .83939        .63386E-03** at limit **
   3  Prefactor     .10000E-03    8.7295        .33429E-01** at limit **
   4  norm          12.468        18.706        .11340E-03   -.20912E-03
   5  norm          1.6463        1.2110        .64179E-04   -.86551E-03
   6  norm          .29953        3.4481        .17349E-02    .31932E-03
   7  norm          3.3501        3.5507        .13345E-03    .18520E-03
   8  norm          2.4894        2.8759        .12423E-03   -.60826E-03
   9  Prefactor     .10000E-03    26.400        .18142E-02** at limit **
  10  norm          2.3630        2.3080        .10038E-03   -.11654E-02
  11  Prefactor     10.790        4.7719        .98538E-04   -.19810E-03
  12  Prefactor     .10000E-03    19.046        .18142E-02** at limit **
  13  Prefactor     17.462        13.249        .95848E-04    .20676E-03
  14  Prefactor     3.7985        5.2098        .17954E-03   -.10810E-02
  15  Prefactor     .10000E-03    5.5101        .16184E-02** at limit **
  16  Prefactor     .10000E-03    17.587        .18142E-02** at limit **
  17  norm          .10000E-03    23.776        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.1837        .12321E-02** at limit **
  19  Prefactor     .10000E-03    21.918        .18142E-02** at limit **
  20  Normalizat    1.1051        .20823        .21226E-03   -.95388E-03
  21  Prefactor     .79386        .21386        .26968E-03   -.75979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 12.4676
  norm       = 1.64632
  norm       = 0.299534
  norm       = 3.35012
  norm       = 2.48938
  Prefactor  = 0.0001
  norm       = 2.36302
  Prefactor  = 10.7897
  Prefactor  = 0.0001
  Prefactor  = 17.4624
  Prefactor  = 3.79848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.10508
  Prefactor  = 0.793857
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.047     FROM HESSE     STATUS=OK           307 CALLS     2535 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2496        .28557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .83939        .12677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1900        .45428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.468        18.705        .45362E-05   -1.5002    
   5  norm          1.6463        1.2109        .25672E-05   -1.5451    
   6  norm          .29953        3.3907        .69395E-04   -1.5599    
   7  norm          3.3501        3.5506        .53381E-05   -1.5342    
   8  norm          2.4894        2.8731        .49694E-05   -1.5392    
   9  Prefactor     .10000E-03    26.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3630        2.3074        .40153E-05   -1.5401    
  11  Prefactor     10.790        4.7713        .39415E-05   -1.5051    
  12  Prefactor     .10000E-03    19.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.462        13.248        .19170E-04   -1.4872    
  14  Prefactor     3.7985        5.2083        .71816E-05   -1.5318    
  15  Prefactor     .10000E-03    5.5118        .32367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1840        .24642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1051        .20788        .42451E-04   -.89589    
  21  Prefactor     .79386        .21398        .53936E-04   -.99955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03471e-09
Minuit parameter uncertainties:
  1  1.32262e-05
  2  4.69876e-06
  3  0.000267408
  4  18.7143
  5  1.21091
  6  2.01538
  7  3.55083
  8  2.87329
  9  7.58667e-05
  10  2.30747
  11  4.77149
  12  4.77024e-05
  13  13.2503
  14  5.20896
  15  1.11387e-05
  16  8.55182e-05
  17  0.000216508
  18  7.88498e-06
  19  0.000285578
  20  0.20803
  21  0.214208
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  2.363e+00  2.307e+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:  7.939e-01  2.142e-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:  1.105e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.12e-05

TS (Fixed Index): 1.37
Ra Dec: 31.264 -17.002
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90879/likelihoodResults_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.txt

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) = 5035.03354627
delta logL = 0.0134505290662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5035.03234705
delta logL = 0.0146497461392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4558       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4111       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78878       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=   5035.032     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4558        113.14        .65251E-02    .87091E-04
   2  alpha         2.4107        3.5209        .41185       -.10218E-04
   3  Normalizat    1.1105        .12452        .37594E-01    .25678E-04
   4  Prefactor     .78861        .25870        .43571E-01    .48634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45578
  alpha      = 2.41071
  Normalizat = 1.1105
  Prefactor  = 0.788615
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.032     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4558        2.4066        .10232E-03   -1.5395    
   2  alpha         2.4107        .84662        .19493E-01   -.35725E-01
   3  Normalizat    1.1105        .19499        .21180E-03   -.89415    
   4  Prefactor     .78861        .21257        .27046E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53419e-10
Minuit parameter uncertainties:
  1  2.40671
  2  0.863725
  3  0.195112
  4  0.21279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90879': 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) = 5035.03234667
delta logL = 0.0146501259878

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  2.456e+00  2.407e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.411e+00  8.637e-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:  7.886e-01  2.128e-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:  1.111e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 2.41 +/- 0.86
Photon Flux (Free Index): 4.20e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.25e-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/90879/cmap_HighResolution_502675201_502934401_4FGL_J0205.0-1700_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.21e-05', photon_flux_error='4.38e-08', dlogl='1.47e-02', energy_flux='1.14e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-08-15 06:08:33.766920', photon_index_error2='0.86', photon_index2='2.41', ts='1.37', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.25e-05', EG='1.11', time_epoch_completed='1629032913.77', return_code='0', job_id='90879', GAL2='0.79', EG2='1.11', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.41e-08', ts2='1.39', photon_index='2.56' WHERE bin_id='1016' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:08:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 90879: <4FGL_J0205.0-1700_daily_bin1016> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1016> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 05:55:20 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:55:37 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:55:37 2021
Terminated at Sun Aug 15 06:08:35 2021
Results reported at Sun Aug 15 06:08:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1016 31.2637 -17.0022 502675201 502934401 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 :                                   716.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            795 sec.

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

