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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1012
RA = 31.2637, Dec = -17.0022
tmin = 501638401, tmax = 501897601
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='90873', job_status='RUN', time_executed='2021-08-15 05:56:00.849759', time_epoch_executed='1629032160.85' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90873/ft1_4FGL_J0205.0-1700_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90873/ft1_4FGL_J0205.0-1700_daily_bin1012.fits outfile=/scratch/kocevski/90873/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1012.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=501638401.0 tmax=501897601.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.27
user 3.29
sys 0.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90873/ft1_filtered_4FGL_J0205.0-1700_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/90873/ltcube_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.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/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits
.....................!
real 14.44
user 13.21
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90873/ft1_filtered_4FGL_J0205.0-1700_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/90873/ltcube_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.fits outfile=/scratch/kocevski/90873/expmap_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.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/90873/ltcube_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.fits
.....................!
real 192.97
user 186.61
sys 5.88

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/90873/ft1_filtered_4FGL_J0205.0-1700_daily_bin1012.fits scfile=/scratch/kocevski/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits outfile=/scratch/kocevski/90873/cmap_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.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.32
user 0.39
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90873/ft1_filtered_4FGL_J0205.0-1700_daily_bin1012.fits scfile=/scratch/kocevski/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits outfile=/scratch/kocevski/90873/cmap_HighResolution_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.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.31
user 0.38
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90873/ft1_filtered_4FGL_J0205.0-1700_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/90873/ft2_4FGL_J0205.0-1700_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90873/Model_4FGL_J0205.0-1700_daily_bin1012.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/90873/ft1_filtered_4FGL_J0205.0-1700_daily_bin1012.fits.....................!
real 55.47
user 52.98
sys 2.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    21.443       1.0000         .10000E-03   10000.    
     5 'norm      '    .10491E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.699       1.0000         .10000E-03   10000.    
     8 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.788       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1657       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7202       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9161       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4894       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1552       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.413       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61805       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0326       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=   6247.287     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2244 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7020        .93696E-06** at limit **
   2  norm          2.5530        1.8372        .31088E-07    .71559E-05
   3  Prefactor     .10000E-03    1.5506        .26042E-06** at limit **
   4  norm          21.445        25.286        .83485E-06    .17628E-03
   5  norm          .10008E-03    .66870       -.57780E-06** at limit **
   6  norm          .10001E-03    1.1045       -.68730E-06** at limit **
   7  norm          16.699        6.9721       -.65839E-07   -.88016E-04
   8  norm          .10000E-03    1.4639       -.59368E-06** at limit **
   9  Prefactor     16.788        20.849       -.16549E-06   -.41447E-04
  10  norm          5.1660        1.9489        .31985E-06    .26245E-03
  11  Prefactor     5.7204        4.0368        .11905E-06    .30452E-03
  12  Prefactor     .10000E-03    11.903        .86786E-06** at limit **
  13  Prefactor     9.9162        9.6887        .99614E-06    .55738E-04
  14  Prefactor     1.4906        4.2302        .11967E-05   -.51336E-04
  15  Prefactor     .10000E-03    3.0582        .13059E-05** at limit **
  16  Prefactor     .10000E-03    5.4512        .13414E-05** at limit **
  17  norm          .10000E-03    20.054       -.94329E-06** at limit **
  18  Prefactor     3.1549        4.0343        .10164E-06   -.39878E-04
  19  Prefactor     39.412        29.407       -.40477E-06   -.14796E-03
  20  Normalizat    .61797        .14631       -.70908E-06    .31332E-03
  21  Prefactor     1.0327        .15691       -.18603E-06    .23658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.55303
  Prefactor  = 0.0001
  norm       = 21.4454
  norm       = 0.000100085
  norm       = 0.000100006
  norm       = 16.6988
  norm       = 0.0001
  Prefactor  = 16.7877
  norm       = 5.16596
  Prefactor  = 5.72044
  Prefactor  = 0.000100001
  Prefactor  = 9.91621
  Prefactor  = 1.4906
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 3.15488
  Prefactor  = 39.4121
  Normalizat = 0.617972
  Prefactor  = 1.03272
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.287     FROM HESSE     STATUS=OK           321 CALLS     2565 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5530        1.8194        .87630E-04   -1.5388    
   3  Prefactor     .10000E-03    2.6460        .18891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          21.445        25.343        .86496E-04   -1.4781    
   5  norm          .10008E-03    6.6764        .99611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    3.8870        .13948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.699        6.9799        .98012E-04   -1.4890    
   8  norm          .10000E-03    3.1117        .17503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.788        20.856        .97750E-04   -1.4888    
  10  norm          5.1660        2.0010        .32559E-03   -1.5253    
  11  Prefactor     5.7204        4.0325        .12332E-03   -1.5230    
  12  Prefactor     .10000E-03    12.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9162        9.8897        .63626E-03   -1.5078    
  14  Prefactor     1.4906        4.3411        .25731E-03   -1.5464    
  15  Prefactor     .10000E-03    3.2985        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1549        4.0054        .17060E-03   -1.5353    
  19  Prefactor     39.412        29.460        .63846E-04   -1.4452    
  20  Normalizat    .61797        .16766        .23662E-03   -1.0723    
  21  Prefactor     1.0327        .18338        .21681E-03   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56372e-08
Minuit parameter uncertainties:
  1  0.000165925
  2  1.81948
  3  2.50492e-05
  4  25.3561
  5  0.00150459
  6  0.000310983
  7  6.98024
  8  6.77516e-05
  9  20.865
  10  2.001
  11  4.03273
  12  0.00024074
  13  9.89136
  14  4.34198
  15  0.000173065
  16  0.000233916
  17  0.000309842
  18  4.00577
  19  29.4709
  20  0.167799
  21  0.183493
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.166e+00  2.001e+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.033e+00  1.835e-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:  6.180e-01  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.48
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 9.80e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 9.67e-06

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) = 6247.10587417
delta logL = 0.181245263734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6247.10577188
delta logL = 0.181347556269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8709       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8258       1.0000          .0000       5.0000    
     3 'Normalizat'    .59775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0485       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=   6247.106     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      255 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8681        29.821        .45565E-02    .12366E-03
   2  alpha         2.8250        3.8156        .27119        .15824E-04
   3  Normalizat    .59771        .10129        .40908E-01    .31319E-04
   4  Prefactor     1.0486        .13093        .40001E-01    .92381E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.86808
  alpha      = 2.82502
  Normalizat = 0.59771
  Prefactor  = 1.04855
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.106     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8681        1.9977        .60054E-04   -1.5267    
   2  alpha         2.8250        .44703        .11524E-01    .13038    
   3  Normalizat    .59771        .16164        .24017E-03   -1.0808    
   4  Prefactor     1.0486        .18395        .21534E-03   -.91128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41324e-11
Minuit parameter uncertainties:
  1  1.99773
  2  0.449489
  3  0.161765
  4  0.184061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90873': 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) = 6247.10576725
delta logL = 0.181352184569

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  4.868e+00  1.998e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.825e+00  4.495e-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.049e+00  1.841e-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:  5.977e-01  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.89
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 2.83 +/- 0.45
Photon Flux (Free Index): 1.12e-07 +/- 4.57e-08
Energy Flux (Free Index): 2.43e-05 +/- 9.09e-06

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/90873/cmap_HighResolution_501638401_501897601_4FGL_J0205.0-1700_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.80e-08', energy_flux2='2.43e-05', photon_flux_error='3.79e-08', dlogl='1.81e-01', energy_flux='2.50e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-08-15 06:05:58.844865', photon_index_error2='0.45', photon_index2='2.83', ts='13.48', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='9.09e-06', EG='0.62', time_epoch_completed='1629032758.84', return_code='0', job_id='90873', GAL2='1.05', EG2='0.60', return_code2='0', energy_flux_error='9.67e-06', photon_flux_error2='4.57e-08', ts2='13.89', photon_index='2.56' WHERE bin_id='1012' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 90873: <4FGL_J0205.0-1700_daily_bin1012> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1012> 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) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:55:35 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:35 2021
Terminated at Sun Aug 15 06:05:59 2021
Results reported at Sun Aug 15 06:05:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1012 31.2637 -17.0022 501638401 501897601 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 :                                   600.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            639 sec.

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

