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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1296
RA = 35.8128, Dec = -16.8868
tmin = 575251201, tmax = 575510401
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='351260', job_status='RUN', time_executed='2021-08-15 19:54:53.685052', time_epoch_executed='1629082493.69' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351260/ft1_4FGL_J0223.2-1653_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351260/ft1_4FGL_J0223.2-1653_daily_bin1296.fits outfile=/scratch/kocevski/351260/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1296.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.31
user 5.06
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.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/351260/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1296.fits evtable="EVENTS" outfile="/scratch/kocevski/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.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/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/351260/ltcube_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.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/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits
.....................!
real 17.66
user 17.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/351260/ltcube_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.fits outfile=/scratch/kocevski/351260/expmap_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.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/351260/ltcube_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.fits
.....................!
real 193.75
user 189.37
sys 3.77

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/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits scfile=/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits outfile=/scratch/kocevski/351260/cmap_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits scfile=/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits outfile=/scratch/kocevski/351260/cmap_HighResolution_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.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.59
user 0.42
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351260/Model_4FGL_J0223.2-1653_daily_bin1296.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/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits.....................!
real 55.88
user 54.60
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits', '/scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits', expMap='/scratch/kocevski/351260/expmap_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.fits', expCube='/scratch/kocevski/351260/ltcube_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351260/Model_4FGL_J0223.2-1653_daily_bin1296.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/351260/ft1_filtered_4FGL_J0223.2-1653_daily_bin1296.fits
Spacecraft file(s): /scratch/kocevski/351260/ft2_4FGL_J0223.2-1653_daily_bin1296.fits
Exposure map: /scratch/kocevski/351260/expmap_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.fits
Exposure cube: /scratch/kocevski/351260/ltcube_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351260/Model_4FGL_J0223.2-1653_daily_bin1296.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) = 5781.36224575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8499       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7813       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15202E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24669E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.120       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.693       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.474       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.645       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65487       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5780.725     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     2123 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.211        .18142E-02** at limit **
   2  norm          2.8506        1.8356        .78083E-04   -.46853E-03
   3  Prefactor     .10007E-03    16.862        .19970E-02** at limit **
   4  Prefactor     9.7815        7.4574        .64064E-03   -.93449E-04
   5  Prefactor     .10024E-03    129.51        .37065E-02** at limit **
   6  Prefactor     .10000E-03    1.6755        .95265E-03** at limit **
   7  Prefactor     .10000E-03    9.2349        .36285E-03** at limit **
   8  Prefactor     .10000E-03    7.8947        .18142E-02** at limit **
   9  norm          14.204        30.857        .10659E-03   -.27091E-04
  10  Prefactor     .10000E-03    2.6598        .12029E-02** at limit **
  11  Prefactor     14.701        24.473        .10449E-03   -.46350E-04
  12  Prefactor     .10000E-03    4.8194        .16274E-02** at limit **
  13  Prefactor     .10058E-03    22.379        .95315E-01** at limit **
  14  norm          3.2263        1.6661        .67817E-04   -.17250E-03
  15  Prefactor     21.475        10.174        .86435E-04   -.48666E-04
  16  Prefactor     21.638        48.554        .86092E-04   -.14922E-04
  17  norm          3.9058        3.0011        .11218E-03   -.26754E-04
  18  Prefactor     .10000E-03    7.7767        .18142E-02** at limit **
  19  Normalizat    1.1035        .17256        .19777E-03   -.67507E-03
  20  Prefactor     .65470        .17730        .26510E-03   -.45204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.85055
  Prefactor  = 0.000100067
  Prefactor  = 9.78148
  Prefactor  = 0.000100235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2045
  Prefactor  = 0.0001
  Prefactor  = 14.7013
  Prefactor  = 0.0001
  Prefactor  = 0.000100576
  norm       = 3.22634
  Prefactor  = 21.4753
  Prefactor  = 21.6377
  norm       = 3.90575
  Prefactor  = 0.0001
  Normalizat = 1.10347
  Prefactor  = 0.654697
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.725     FROM HESSE     STATUS=OK           283 CALLS     2406 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8506        1.8356        .31233E-05   -1.5370    
   3  Prefactor     .10007E-03    17.034        .39940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7815        7.4570        .25626E-04   -1.5082    
   5  Prefactor     .10024E-03    134.77        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6758        .19053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2350        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.204        30.846        .42637E-05   -1.4954    
  10  Prefactor     .10000E-03    2.6603        .24057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.701        24.466        .41796E-05   -1.4941    
  12  Prefactor     .10000E-03    4.8199        .32547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10058E-03    21.416        .98297E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2263        1.6661        .27127E-05   -1.5349    
  15  Prefactor     21.475        10.173        .34574E-05   -1.4781    
  16  Prefactor     21.638        48.543        .34437E-05   -1.4777    
  17  norm          3.9058        3.0011        .44874E-05   -1.5313    
  18  Prefactor     .10000E-03    7.7773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1035        .17260        .39555E-04   -.89640    
  20  Prefactor     .65470        .17740        .53019E-04   -1.0533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07946e-09
Minuit parameter uncertainties:
  1  7.42714e-06
  2  1.83559
  3  0.00213369
  4  7.45774
  5  0.0112831
  6  6.25168e-06
  7  3.33613e-05
  8  8.71495e-07
  9  30.8804
  10  6.01803e-06
  11  24.4831
  12  5.17323e-06
  13  0.00702908
  14  1.66609
  15  10.1737
  16  48.632
  17  3.00121
  18  2.66753e-05
  19  0.17269
  20  0.177555
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.420e+01  3.088e+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:  6.547e-01  1.776e-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.103e+00  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 35.813 -16.887
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351260/likelihoodResults_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.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) = 5780.68631546
delta logL = 0.0388088858263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5780.68448636
delta logL = 0.0406379840451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.587       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3558       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65080       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5780.684     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.591        45.662        .86209E-04    .33232E-04
   2  alpha         2.3556        1.6645        .43886E-01    .51875E-05
   3  Normalizat    1.1075        .16575        .19746E-03   -.80088E-04
   4  Prefactor     .65074        .17620        .26581E-03    .39733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.5911
  alpha      = 2.35562
  Normalizat = 1.10746
  Prefactor  = 0.650744
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.684     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.591        43.857        .34484E-05   -1.4778    
   2  alpha         2.3556        1.6112        .17554E-02   -.57785E-01
   3  Normalizat    1.1075        .16574        .39491E-04   -.89513    
   4  Prefactor     .65074        .17621        .10632E-04   -1.0549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44814e-11
Minuit parameter uncertainties:
  1  43.9227
  2  1.7514
  3  0.165818
  4  0.17636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351260': 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) = 5780.68448622
delta logL = 0.0406381301364

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  2.159e+01  4.392e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.356e+00  1.751e+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:  6.507e-01  1.764e-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.107e+00  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 35.813 -16.887

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/351260/cmap_HighResolution_575251201_575510401_4FGL_J0223.2-1653_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-05', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-08-15 20:05:07.674815', job_id='351260', GAL2='0.65', fit_tolerance='1e-08', EG2='1.11', EG='1.10', time_epoch_completed='1629083107.67', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='4.06e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='1296' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 351260: <4FGL_J0223.2-1653_daily_bin1296> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1296> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 19:50:39 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:53:33 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:53:33 2021
Terminated at Sun Aug 15 20:05:08 2021
Results reported at Sun Aug 15 20:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1296 35.8128 -16.8868 575251201 575510401 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 :                                   609.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            869 sec.

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

