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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1177
RA = 35.8128, Dec = -16.8868
tmin = 544406401, tmax = 544665601
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='351091', job_status='RUN', time_executed='2021-08-15 19:55:10.352371', time_epoch_executed='1629082510.35' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351091

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351091/ft1_4FGL_J0223.2-1653_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351091/ft1_4FGL_J0223.2-1653_daily_bin1177.fits outfile=/scratch/kocevski/351091/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1177.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=544406401.0 tmax=544665601.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 14.81
user 7.44
sys 7.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.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/351091/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.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 7.70
user 0.33
sys 7.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/351091/ltcube_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.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/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits
.....................!
real 17.11
user 8.85
sys 8.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/351091/ltcube_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.fits outfile=/scratch/kocevski/351091/expmap_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.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/351091/ltcube_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.fits
.....................!
real 203.74
user 186.46
sys 13.70

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/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.fits scfile=/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits outfile=/scratch/kocevski/351091/cmap_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.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 7.33
user 0.41
sys 6.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.fits scfile=/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits outfile=/scratch/kocevski/351091/cmap_HighResolution_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.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 7.41
user 0.38
sys 6.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/351091/ft2_4FGL_J0223.2-1653_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351091/Model_4FGL_J0223.2-1653_daily_bin1177.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/351091/ft1_filtered_4FGL_J0223.2-1653_daily_bin1177.fits.......................!
real 33.65
user 23.09
sys 10.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.991       1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.734       1.0000         .10000E-03   10000.    
     9 'norm      '    27.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    105.23       1.0000         .10000E-03   10000.    
    12 'Prefactor '    87.789       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.355       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2241       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    139.46       1.0000         .10000E-03   10000.    
    17 'norm      '    6.4834       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.923       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82540       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95015       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=   1536.174     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     2644 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.705        .17845E-05** at limit **
   2  norm          6.6700        5.7400       -.50613E-07    .13821E-04
   3  Prefactor     .10000E-03    6.2274       -.79023E-06** at limit **
   4  Prefactor     .10000E-03    23.097       -.17119E-05** at limit **
   5  Prefactor     .10000E-03    38.732       -.10850E-05** at limit **
   6  Prefactor     22.814        15.173       -.59986E-06    .23071E-04
   7  Prefactor     29.788        72.059       -.49377E-06   -.18966E-03
   8  Prefactor     67.759        70.014        .13605E-05    .32607E-04
   9  norm          28.742        1391.1       -.33049E-04   -.43497E-04
  10  Prefactor     .10000E-03    13.002       -.19313E-06** at limit **
  11  Prefactor     105.04        130.08        .20123E-05   -.43501E-04
  12  Prefactor     87.835        89.632        .15795E-05    .62087E-04
  13  Prefactor     42.362        78.813       -.17623E-05    .18544E-04
  14  norm          1.2241        3.7693       -.17662E-06    .16786E-04
  15  Prefactor     10.757        39.333        .21054E-05    .12918E-04
  16  Prefactor     139.35        249.34       -.72212E-05   -.24373E-04
  17  norm          6.4845        11.771        .39857E-06    .14155E-04
  18  Prefactor     40.927        50.025        .59247E-06   -.11895E-04
  19  Normalizat    .82538        .43909        .14021E-04   -.86886E-04
  20  Prefactor     .95006        .41495       -.12296E-04    .52610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.66998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8137
  Prefactor  = 29.7883
  Prefactor  = 67.7585
  norm       = 28.7422
  Prefactor  = 0.0001
  Prefactor  = 105.036
  Prefactor  = 87.8352
  Prefactor  = 42.3624
  norm       = 1.22414
  Prefactor  = 10.757
  Prefactor  = 139.354
  norm       = 6.48455
  Prefactor  = 40.9269
  Normalizat = 0.825377
  Prefactor  = 0.950065
 **********
 **   18 **HESSE 
 **********

 FCN=   1536.174     FROM HESSE     STATUS=OK           287 CALLS     2931 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6700        5.7533        .79910E-04   -1.5191    
   3  Prefactor     .10000E-03    6.2589        .95537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.814        15.209        .83852E-04   -1.4752    
   7  Prefactor     29.788        72.180        .73161E-04   -1.4616    
   8  Prefactor     67.759        70.104        .24384E-03   -1.4060    
   9  norm          28.742        1398.5        .76405E-04   -1.4635    
  10  Prefactor     .10000E-03    13.066        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     105.04        130.37        .19601E-03   -1.3655    
  12  Prefactor     87.835        90.669        .21440E-03   -1.3831    
  13  Prefactor     42.362        79.288        .61597E-04   -1.4405    
  14  norm          1.2241        3.6846        .12400E-03   -1.5487    
  15  Prefactor     10.757        39.347        .12223E-03   -1.5052    
  16  Prefactor     139.35        250.10        .17055E-03   -1.3341    
  17  norm          6.4845        11.725        .15762E-03   -1.5199    
  18  Prefactor     40.927        50.028        .62661E-04   -1.4428    
  19  Normalizat    .82538        .46344        .28005E-03   -.99134    
  20  Prefactor     .95006        .43465        .27341E-03   -.94413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97232e-10
Minuit parameter uncertainties:
  1  0.000134787
  2  5.75374
  3  1.91335e-05
  4  0.000118848
  5  8.4744e-05
  6  15.2118
  7  72.393
  8  70.1897
  9  411.629
  10  3.20842e-05
  11  130.726
  12  90.8121
  13  79.4861
  14  3.68532
  15  39.442
  16  252.036
  17  11.7292
  18  50.0791
  19  0.46569
  20  0.436263
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  2.874e+01  4.116e+02  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:  9.501e-01  4.363e-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:  8.254e-01  4.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/351091/likelihoodResults_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.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) = 1535.44875009
delta logL = 0.725394432244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1535.44538717
delta logL = 0.728757352535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.301       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .68250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0350       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=   1535.445     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      314 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.301        15.845        .27457E-02    .30937E-02
   2  alpha         5.0000        3.5762        .46269    ** at limit **
   3  Normalizat    .68317        .35713        .68433E-01    .46463E-05
   4  Prefactor     1.0346        .36420        .59330E-01    .61448E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3012
  alpha      = 5
  Normalizat = 0.683173
  Prefactor  = 1.03463
 **********
 **   18 **HESSE 
 **********

 FCN=   1535.445     FROM HESSE     STATUS=OK            33 CALLS      347 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.301        15.721        .10983E-03   -1.4978    
   2  alpha         5.0000        3.7029        .40370        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .68317        .41484        .30284E-03   -1.0456    
   4  Prefactor     1.0346        .42360        .26235E-03   -.91584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72451e-08
Minuit parameter uncertainties:
  1  15.7254
  2  9.19192e-06
  3  0.416765
  4  0.424973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351091': 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) = 1535.4453811
delta logL = 0.72876342446

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.330e+01  1.573e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  5.000e+00  9.192e-06  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:  1.035e+00  4.250e-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:  6.832e-01  4.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.01e-07 +/- 2.37e-07
Energy Flux (Free Index): 3.03e-05 +/- 3.57e-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/351091/cmap_HighResolution_544406401_544665601_4FGL_J0223.2-1653_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-05', comment='SUCCESS', energy_flux2='3.03e-05', dlogl='7.29e-01', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-08-15 20:03:50.644044', photon_index_error2='0.00', photon_index2='5.00', ts='0.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.91e-07', energy_flux_error2='3.57e-05', EG='0.83', time_epoch_completed='1629083030.64', return_code='0', job_id='351091', GAL2='1.03', EG2='0.68', return_code2='0', photon_flux_error2='2.37e-07', ts2='1.59', photon_index='2.89' WHERE bin_id='1177' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:03:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 351091: <4FGL_J0223.2-1653_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1177 35.8128 -16.8868 544406401 544665601 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 :                                   620.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            804 sec.

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

