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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1021
RA = 35.8128, Dec = -16.8868
tmin = 503971201, tmax = 504230401
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='349811', job_status='RUN', time_executed='2021-08-15 19:51:24.418093', time_epoch_executed='1629082284.42' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349811/ft1_4FGL_J0223.2-1653_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349811/ft1_4FGL_J0223.2-1653_daily_bin1021.fits outfile=/scratch/kocevski/349811/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1021.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=503971201.0 tmax=504230401.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.36
user 3.80
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.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/349811/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1021.fits evtable="EVENTS" outfile="/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.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.80
user 0.35
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/349811/ltcube_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.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/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits
.....................!
real 14.46
user 13.75
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/349811/ltcube_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.fits outfile=/scratch/kocevski/349811/expmap_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.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/349811/ltcube_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.fits
.....................!
real 192.97
user 186.62
sys 5.55

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J0223.2-1653 @ 35.8128 -16.8868

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits scfile=/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits outfile=/scratch/kocevski/349811/cmap_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.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=35.8128 yref=-16.8868 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.80
user 0.39
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits scfile=/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits outfile=/scratch/kocevski/349811/cmap_HighResolution_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.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=35.8128 yref=-16.8868 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.81
user 0.38
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349811/Model_4FGL_J0223.2-1653_daily_bin1021.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/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits.....................!
real 40.57
user 38.85
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits', '/scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits', expMap='/scratch/kocevski/349811/expmap_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.fits', expCube='/scratch/kocevski/349811/ltcube_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/349811/Model_4FGL_J0223.2-1653_daily_bin1021.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0223.2-1653'

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  9.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/349811/ft1_filtered_4FGL_J0223.2-1653_daily_bin1021.fits
Spacecraft file(s): /scratch/kocevski/349811/ft2_4FGL_J0223.2-1653_daily_bin1021.fits
Exposure map: /scratch/kocevski/349811/expmap_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.fits
Exposure cube: /scratch/kocevski/349811/ltcube_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/349811/Model_4FGL_J0223.2-1653_daily_bin1021.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) = 3549.74140679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.0758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.781       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.595       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    49.384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.516       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3828       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .46814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3549.739     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1995 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.549       -.16472E-05** at limit **
   2  norm          4.0766        3.4169       -.48863E-06   -.16504E-03
   3  Prefactor     7.9890        5.2222        .11120E-06   -.26346E-04
   4  Prefactor     7.9438        13.097        .22799E-06   -.29922E-05
   5  Prefactor     20.781        15.850       -.61933E-07   -.18956E-04
   6  Prefactor     12.597        9.1790       -.28474E-07   -.29018E-04
   7  Prefactor     1.6069        33.407        .10155E-04   -.36963E-04
   8  Prefactor     .10000E-03    10.304       -.16663E-06** at limit **
   9  norm          49.506        77.421        .36405E-05   -.14494E-04
  10  Prefactor     .10000E-03    7.7830        .15296E-06** at limit **
  11  Prefactor     10.668        61.136       -.42124E-05   -.18498E-04
  12  Prefactor     .10000E-03    14.784        .62418E-06** at limit **
  13  Prefactor     26.521        37.892        .19105E-05    .46375E-05
  14  norm          .10000E-03    .65522        .18149E-07** at limit **
  15  Prefactor     .10000E-03    5.2891        .36486E-07** at limit **
  16  Prefactor     .10000E-03    35.638       -.17566E-06** at limit **
  17  norm          3.2511        3.2329       -.17944E-07    .76844E-06
  18  Prefactor     .10000E-03    29.983        .21560E-05** at limit **
  19  Normalizat    1.3828        .22733       -.94162E-06   -.12485E-03
  20  Prefactor     .46821        .21600       -.21356E-05   -.87497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.07657
  Prefactor  = 7.98899
  Prefactor  = 7.9438
  Prefactor  = 20.7814
  Prefactor  = 12.5973
  Prefactor  = 1.6069
  Prefactor  = 0.0001
  norm       = 49.5064
  Prefactor  = 0.0001
  Prefactor  = 10.6679
  Prefactor  = 0.0001
  Prefactor  = 26.521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25112
  Prefactor  = 0.0001
  Normalizat = 1.38276
  Prefactor  = 0.468212
 **********
 **   18 **HESSE 
 **********

 FCN=   3549.739     FROM HESSE     STATUS=OK           293 CALLS     2288 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0766        3.4324        .94202E-04   -1.5304    
   3  Prefactor     7.9890        5.2258        .10501E-03   -1.5143    
   4  Prefactor     7.9438        13.096        .14227E-03   -1.5144    
   5  Prefactor     20.781        15.850        .87863E-04   -1.4796    
   6  Prefactor     12.597        9.2009        .11287E-03   -1.4998    
   7  Prefactor     1.6069        34.162        .33097E-03   -1.5454    
   8  Prefactor     .10000E-03    10.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          49.506        78.280        .28532E-03   -1.4300    
  10  Prefactor     .10000E-03    7.8580        .16223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.668        61.452        .12263E-03   -1.5055    
  12  Prefactor     .10000E-03    14.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.521        37.895        .77797E-04   -1.4678    
  14  norm          .10000E-03    .65710        .47094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3141        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2511        3.2422        .10430E-03   -1.5347    
  18  Prefactor     .10000E-03    30.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3828        .26589        .20451E-03   -.81129    
  20  Prefactor     .46821        .24911        .32828E-03   -1.1346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55994e-11
Minuit parameter uncertainties:
  1  1.82484e-05
  2  3.43261
  3  5.2261
  4  13.1003
  5  15.853
  6  9.20198
  7  14.8273
  8  1.88928e-06
  9  78.4437
  10  8.35811e-06
  11  51.2878
  12  4.02418e-05
  13  37.9294
  14  9.01645e-07
  15  9.86093e-06
  16  1.02741e-05
  17  3.24237
  18  9.06217e-05
  19  0.266157
  20  0.249689
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  4.951e+01  7.844e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  4.682e-01  2.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.383e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 35.813 -16.887
Photon Index (Fixed Index): 2.89 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 9.33e-06 +/- 1.48e-05

TS (Fixed Index): 1.49
Ra Dec: 35.813 -16.887
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349811/likelihoodResults_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.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) = 3549.29567601
delta logL = 0.443038737408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3549.2549586
delta logL = 0.483756144032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    68.457       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5824       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3549.255     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          68.457        72.792        .12128E-02   -.12268E-03
   2  alpha         1.5824        1.0810        .45359       -.76922E-05
   3  Normalizat    1.4113        .22096        .45874E-01   -.16988E-05
   4  Prefactor     .44711        .21741        .75713E-01    .22921E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 68.4569
  alpha      = 1.58239
  Normalizat = 1.41128
  Prefactor  = 0.44711
 **********
 **   18 **HESSE 
 **********

 FCN=   3549.255     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          68.457        74.290        .48513E-04   -1.4051    
   2  alpha         1.5824        1.1313        .27413E-01   -.37583    
   3  Normalizat    1.4113        .25170        .20278E-03   -.80303    
   4  Prefactor     .44711        .24733        .33533E-03   -1.1447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26966e-10
Minuit parameter uncertainties:
  1  74.3906
  2  1.18151
  3  0.25192
  4  0.247922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349811': 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) = 3549.25495859
delta logL = 0.483756154076

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  6.846e+01  7.439e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  1.582e+00  1.182e+00  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  4.471e-01  2.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.411e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 1.58 +/- 1.18
Photon Flux (Free Index): 1.48e-08 +/- 1.97e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.19e-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/349811/cmap_HighResolution_503971201_504230401_4FGL_J0223.2-1653_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.10e-05', photon_flux_error='5.34e-08', dlogl='4.84e-01', energy_flux='9.33e-06', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-08-15 19:59:36.088827', photon_index_error2='1.18', photon_index2='1.58', ts='1.49', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.19e-05', EG='1.38', time_epoch_completed='1629082776.09', return_code='0', job_id='349811', GAL2='0.45', EG2='1.41', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='1.97e-08', ts2='2.48', photon_index='2.89' WHERE bin_id='1021' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:59:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 349811: <4FGL_J0223.2-1653_daily_bin1021> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1021> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 19:45:45 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:51:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 19:51:09 2021
Terminated at Sun Aug 15 19:59:37 2021
Results reported at Sun Aug 15 19:59:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1021 35.8128 -16.8868 503971201 504230401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0223.2-1653 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   489.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             379.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   507 sec.
    Turnaround time :                            832 sec.

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

