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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1504
RA = 31.2637, Dec = -17.0022
tmin = 629164801, tmax = 629424001
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='92749', job_status='RUN', time_executed='2021-08-15 06:01:45.528540', time_epoch_executed='1629032505.53' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92749/ft1_4FGL_J0205.0-1700_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92749/ft1_4FGL_J0205.0-1700_daily_bin1504.fits outfile=/scratch/kocevski/92749/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1504.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=629164801.0 tmax=629424001.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 3.61
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92749/ft1_filtered_4FGL_J0205.0-1700_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/92749/ltcube_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.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/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits
.....................!
real 13.89
user 13.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92749/ft1_filtered_4FGL_J0205.0-1700_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/92749/ltcube_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.fits outfile=/scratch/kocevski/92749/expmap_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.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/92749/ltcube_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.fits
.....................!
real 190.98
user 185.79
sys 4.67

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/92749/ft1_filtered_4FGL_J0205.0-1700_daily_bin1504.fits scfile=/scratch/kocevski/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits outfile=/scratch/kocevski/92749/cmap_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.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 0.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92749/ft1_filtered_4FGL_J0205.0-1700_daily_bin1504.fits scfile=/scratch/kocevski/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits outfile=/scratch/kocevski/92749/cmap_HighResolution_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.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 0.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92749/ft1_filtered_4FGL_J0205.0-1700_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/92749/ft2_4FGL_J0205.0-1700_daily_bin1504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92749/Model_4FGL_J0205.0-1700_daily_bin1504.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/92749/ft1_filtered_4FGL_J0205.0-1700_daily_bin1504.fits.....................!
real 54.58
user 53.24
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.471       1.0000         .10000E-03   10000.    
     2 'norm      '    .17753E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10286       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2971       1.0000         .10000E-03   10000.    
     7 'norm      '    17.566       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.537       1.0000         .10000E-03   10000.    
    10 'norm      '    .43818E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6967       1.0000         .10000E-03   10000.    
    17 'norm      '    41.207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9045       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85066       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78125       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=   5673.930     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2258 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.477        13.860        .23573E-05    .89295E-03
   2  norm          .10001E-03    1.7996       -.10601E-05** at limit **
   3  Prefactor     .10000E-03    1.0835       -.39780E-07** at limit **
   4  norm          .10000E-03    11.537       -.14191E-06** at limit **
   5  norm          .10283        .63620       -.46833E-06   -.85188E-03
   6  norm          1.2970        1.1941        .31654E-08    .27722E-03
   7  norm          17.566        6.8742       -.14318E-06   -.63676E-03
   8  norm          1.4042        2.7760       -.91222E-07   -.61631E-03
   9  Prefactor     72.535        40.498       -.11088E-05    .47078E-04
  10  norm          .43202E-01    .76556       -.20465E-06    .90480E-04
  11  Prefactor     .10000E-03    1.3422        .30868E-07** at limit **
  12  Prefactor     .10000E-03    5.5527       -.29904E-07** at limit **
  13  Prefactor     .10000E-03    2.4388        .28782E-07** at limit **
  14  Prefactor     .10000E-03    1.2204        .93430E-08** at limit **
  15  Prefactor     10.961        11.615       -.61502E-05    .32246E-04
  16  Prefactor     7.6966        7.7444        .77927E-07    .73530E-04
  17  norm          41.222        57.119        .22449E-04   -.17902E-03
  18  Prefactor     6.9038        6.0364       -.13114E-06   -.21963E-03
  19  Prefactor     .10000E-03    6.1593        .25971E-07** at limit **
  20  Normalizat    .85079        .14494        .41518E-06    .31675E-03
  21  Prefactor     .78113        .15630       -.69141E-06    .26277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4767
  norm       = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.102829
  norm       = 1.29701
  norm       = 17.5659
  norm       = 1.40423
  Prefactor  = 72.5353
  norm       = 0.0432015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9615
  Prefactor  = 7.69661
  norm       = 41.2223
  Prefactor  = 6.90382
  Prefactor  = 0.0001
  Normalizat = 0.850785
  Prefactor  = 0.781131
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.930     FROM HESSE     STATUS=OK           319 CALLS     2577 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.477        12.317        .84498E-04   -1.4759    
   2  norm          .10001E-03    34.351        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0885        .76536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10283        1.2221        .11509E-02   -1.5644    
   6  norm          1.2970        1.2050        .75587E-04   -1.5480    
   7  norm          17.566        6.8941        .47780E-03   -1.4869    
   8  norm          1.4042        2.7415        .16661E-03   -1.5471    
   9  Prefactor     72.535        40.493        .23569E-03   -1.4003    
  10  norm          .43202E-01    7.3310        .12433E-02   -1.5666    
  11  Prefactor     .10000E-03    1.3586        .85179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5867        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4407        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2247        .81235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.961        11.548        .12097E-03   -1.5046    
  16  Prefactor     7.6966        7.7487        .14454E-03   -1.5153    
  17  norm          41.222        55.717        .62446E-04   -1.4423    
  18  Prefactor     6.9038        6.0493        .15268E-03   -1.5182    
  19  Prefactor     .10000E-03    6.1599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85079        .16823        .20787E-03   -.98212    
  21  Prefactor     .78113        .18204        .24374E-03   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09164e-09
Minuit parameter uncertainties:
  1  12.3184
  2  0.00127895
  3  2.30269e-06
  4  9.715e-06
  5  0.708678
  6  1.20505
  7  6.89441
  8  2.74171
  9  40.5086
  10  1.12438
  11  1.46715e-06
  12  5.37279e-06
  13  2.12904e-07
  14  1.53893e-07
  15  11.5502
  16  7.74971
  17  55.7872
  18  6.04986
  19  6.00561e-06
  20  0.168335
  21  0.18218
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  4.320e-02  1.124e+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.811e-01  1.822e-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.508e-01  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 31.264 -17.002
Photon Flux Upper Limit: 6.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92749/likelihoodResults_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.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) = 5673.90139866
delta logL = 0.0290156903966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5673.89637379
delta logL = 0.0340405540592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61172E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .83513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79233       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=   5673.896     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      322 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61100E-01    .30293        .54322E-03    .13635E-01
   2  alpha         5.0000        3.2988        .50000    ** at limit **
   3  Normalizat    .83520        .17262        .20966E-03   -.15448E-03
   4  Prefactor     .79225        .18694        .24221E-03    .37268E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0611004
  alpha      = 5
  Normalizat = 0.835196
  Prefactor  = 0.792247
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.896     FROM HESSE     STATUS=OK            31 CALLS      353 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61100E-01    .26094        .10864E-03   -1.5659    
   2  alpha         5.0000        3.7099        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83520        .17287        .83865E-05   -.98776    
   4  Prefactor     .79225        .18723        .96884E-05   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47444e-09
Minuit parameter uncertainties:
  1  0.252331
  2  0.00213845
  3  0.172984
  4  0.187376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92749': 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) = 5673.89637366
delta logL = 0.0340406834739

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  6.110e-02  2.523e-01  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  5.000e+00  2.138e-03  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.922e-01  1.874e-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.352e-01  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 31.264 -17.002

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/92749/cmap_HighResolution_629164801_629424001_4FGL_J0205.0-1700_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-05', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-08-15 06:12:03.190173', job_id='92749', GAL2='0.79', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1629033123.19', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.40e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1504' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 92749: <4FGL_J0205.0-1700_daily_bin1504> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1504> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 06:00:32 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 06:01:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 06:01:19 2021
Terminated at Sun Aug 15 06:12:03 2021
Results reported at Sun Aug 15 06:12:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1504 31.2637 -17.0022 629164801 629424001 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 :                                   609.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            691 sec.

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

