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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin487
RA = 31.2637, Dec = -17.0022
tmin = 365558401, tmax = 365817601
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='87797', job_status='RUN', time_executed='2021-08-15 05:46:29.799317', time_epoch_executed='1629031589.8' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87797/ft1_4FGL_J0205.0-1700_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87797/ft1_4FGL_J0205.0-1700_daily_bin487.fits outfile=/scratch/kocevski/87797/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin487.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=365558401.0 tmax=365817601.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 4.88
user 3.35
sys 1.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.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/87797/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin487.fits evtable="EVENTS" outfile="/scratch/kocevski/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.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.68
user 0.33
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/87797/ltcube_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.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/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits
.....................!
real 15.34
user 13.36
sys 1.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/87797/ltcube_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.fits outfile=/scratch/kocevski/87797/expmap_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.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/87797/ltcube_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.fits
.....................!
real 196.16
user 187.04
sys 7.06

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/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.fits scfile=/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits outfile=/scratch/kocevski/87797/cmap_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.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.80
user 0.37
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.fits scfile=/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits outfile=/scratch/kocevski/87797/cmap_HighResolution_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.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.83
user 0.40
sys 1.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/87797/ft2_4FGL_J0205.0-1700_daily_bin487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87797/Model_4FGL_J0205.0-1700_daily_bin487.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/87797/ft1_filtered_4FGL_J0205.0-1700_daily_bin487.fits.....................!
real 47.85
user 44.94
sys 2.62

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.833       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8241       1.0000         .10000E-03   10000.    
     4 'norm      '    34.304       1.0000         .10000E-03   10000.    
     5 'norm      '    .76096       1.0000         .10000E-03   10000.    
     6 'norm      '    10.995       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6357       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.395       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81697       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94861       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=   4854.262     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2177 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.833        13.025       -.76103E-07    .90834E-05
   2  norm          3.0877        2.6789       -.22204E-06   -.10018E-05
   3  Prefactor     3.8249        4.7411        .89137E-06   -.51617E-05
   4  norm          34.286        27.234       -.16103E-04   -.40329E-04
   5  norm          .76116        1.0966       -.35821E-06   -.37970E-03
   6  norm          10.996        3.4535        .72162E-07    .67983E-04
   7  norm          1.6424        1.1642        .27153E-06   -.30460E-02
   8  norm          3.1026        3.0707       -.12930E-06   -.22359E-05
   9  Prefactor     .10000E-03    12.660       -.69096E-05** at limit **
  10  norm          5.9394        2.6434       -.73140E-07    .13203E-04
  11  Prefactor     2.6239        3.8148       -.10071E-06   -.40519E-04
  12  Prefactor     9.0974        11.849       -.92432E-06    .66955E-05
  13  Prefactor     17.394        19.382       -.24425E-06    .64569E-05
  14  Prefactor     .10000E-03    1.6909       -.21232E-06** at limit **
  15  Prefactor     .10000E-03    2.7243        .54237E-06** at limit **
  16  Prefactor     .10000E-03    38.844       -.47830E-06** at limit **
  17  norm          .10000E-03    11.859        .42256E-05** at limit **
  18  Prefactor     5.6745        8.3851       -.66100E-06   -.16953E-04
  19  Prefactor     .10000E-03    16.665        .81130E-06** at limit **
  20  Normalizat    .81676        .19046        .16528E-05   -.46405E-04
  21  Prefactor     .94880        .19173       -.27026E-06    .27112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8328
  norm       = 3.08766
  Prefactor  = 3.82491
  norm       = 34.286
  norm       = 0.761158
  norm       = 10.9957
  norm       = 1.64241
  norm       = 3.10257
  Prefactor  = 0.0001
  norm       = 5.93937
  Prefactor  = 2.62393
  Prefactor  = 9.09742
  Prefactor  = 17.3942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.67453
  Prefactor  = 0.0001
  Normalizat = 0.816761
  Prefactor  = 0.948803
 **********
 **   18 **HESSE 
 **********

 FCN=   4854.262     FROM HESSE     STATUS=OK           327 CALLS     2504 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.833        13.034        .92293E-04   -1.4840    
   2  norm          3.0877        2.6796        .99218E-04   -1.5357    
   3  Prefactor     3.8249        4.7261        .15635E-03   -1.5317    
   4  norm          34.286        27.925        .68420E-04   -1.4536    
   5  norm          .76116        1.0112        .83549E-03   -1.5533    
   6  norm          10.996        3.4619        .67884E-04   -1.5045    
   7  norm          1.6424        6.4318        .16007E-02   -1.5452    
   8  norm          3.1026        3.0682        .11679E-03   -1.5356    
   9  Prefactor     .10000E-03    12.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9394        2.6541        .71220E-04   -1.5221    
  11  Prefactor     2.6239        3.7873        .15348E-03   -1.5384    
  12  Prefactor     9.0974        11.857        .13289E-03   -1.5105    
  13  Prefactor     17.394        19.353        .96029E-04   -1.4874    
  14  Prefactor     .10000E-03    1.6945        .88451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7289        .11229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6745        8.4410        .16865E-03   -1.5231    
  19  Prefactor     .10000E-03    16.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81676        .22199        .24653E-03   -.99450    
  21  Prefactor     .94880        .22301        .24998E-03   -.94456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28104e-08
Minuit parameter uncertainties:
  1  13.0355
  2  2.67966
  3  4.72654
  4  27.9352
  5  1.01127
  6  3.46193
  7  6.43449
  8  3.06835
  9  1.63049e-05
  10  2.65419
  11  3.78764
  12  11.8603
  13  19.36
  14  8.72646e-08
  15  1.63726e-06
  16  2.59952e-05
  17  6.10102e-06
  18  8.44279
  19  6.82069e-06
  20  0.222234
  21  0.223224
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.939e+00  2.654e+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:  9.488e-01  2.232e-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:  8.168e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.30
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.03e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.28e-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) = 4854.18738362
delta logL = 0.0750749657936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4854.18245843
delta logL = 0.080000148645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5706       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7887       1.0000          .0000       5.0000    
     3 'Normalizat'    .79809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96482       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=   4854.182     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      225 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5711        47.589        .42554E-02    .17908E-03
   2  alpha         2.7886        3.4163        .30371        .16367E-04
   3  Normalizat    .79812        .12349        .43585E-01    .12886E-04
   4  Prefactor     .96477        .16958        .45826E-01    .48268E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.57108
  alpha      = 2.78858
  Normalizat = 0.798119
  Prefactor  = 0.964767
 **********
 **   18 **HESSE 
 **********

 FCN=   4854.182     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5711        2.8117        .67230E-04   -1.5236    
   2  alpha         2.7886        .59058        .12638E-01    .11569    
   3  Normalizat    .79812        .20977        .24905E-03   -1.0014    
   4  Prefactor     .96477        .22454        .24825E-03   -.93913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30441e-13
Minuit parameter uncertainties:
  1  2.81176
  2  0.59629
  3  0.209978
  4  0.224762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87797': 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) = 4854.18245838
delta logL = 0.0800002021188

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.571e+00  2.812e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.789e+00  5.963e-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:  9.648e-01  2.248e-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:  7.981e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.40
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 2.79 +/- 0.60
Photon Flux (Free Index): 1.25e-07 +/- 6.00e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.24e-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/87797/cmap_HighResolution_365558401_365817601_4FGL_J0205.0-1700_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='2.76e-05', photon_flux_error='5.03e-08', dlogl='8.00e-02', energy_flux='2.87e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-08-15 05:55:29.165393', photon_index_error2='0.60', photon_index2='2.79', ts='9.30', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.82', time_epoch_completed='1629032129.17', return_code='0', job_id='87797', GAL2='0.96', EG2='0.80', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.00e-08', ts2='9.40', photon_index='2.56' WHERE bin_id='487' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 87797: <4FGL_J0205.0-1700_daily_bin487> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin487> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 05:45:34 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:45:55 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:45:55 2021
Terminated at Sun Aug 15 05:55:30 2021
Results reported at Sun Aug 15 05:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin487 31.2637 -17.0022 365558401 365817601 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 :                                   552.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            596 sec.

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

