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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin942
RA = 35.8128, Dec = -16.8868
tmin = 483494401, tmax = 483753601
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='349692', job_status='RUN', time_executed='2021-08-15 19:50:55.003566', time_epoch_executed='1629082255.0' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349692/ft1_4FGL_J0223.2-1653_daily_bin942.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349692/ft1_4FGL_J0223.2-1653_daily_bin942.fits outfile=/scratch/kocevski/349692/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin942.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=483494401.0 tmax=483753601.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 7.85
user 6.25
sys 1.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.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/349692/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin942.fits evtable="EVENTS" outfile="/scratch/kocevski/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.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.88
user 0.34
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.fits" evtable="EVENTS" scfile=/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits sctable="SC_DATA" outfile=/scratch/kocevski/349692/ltcube_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.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/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits
.....................!
real 15.03
user 13.25
sys 1.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits sctable="SC_DATA" expcube=/scratch/kocevski/349692/ltcube_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.fits outfile=/scratch/kocevski/349692/expmap_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.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/349692/ltcube_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.fits
.....................!
real 193.62
user 186.07
sys 6.92

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/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.fits scfile=/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits outfile=/scratch/kocevski/349692/cmap_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.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 1.81
user 0.39
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.fits scfile=/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits outfile=/scratch/kocevski/349692/cmap_HighResolution_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.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 1.85
user 0.40
sys 1.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/349692/ft2_4FGL_J0223.2-1653_daily_bin942.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349692/Model_4FGL_J0223.2-1653_daily_bin942.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/349692/ft1_filtered_4FGL_J0223.2-1653_daily_bin942.fits.....................!
real 41.78
user 38.78
sys 2.81

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11663E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    88.379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3008       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5915       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68384       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81043       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=   3753.355     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2109 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.839        .35155E-06** at limit **
   2  norm          .10000E-03    1.1965       -.48410E-06** at limit **
   3  Prefactor     9.9412        4.8171        .29939E-06   -.17607E-03
   4  Prefactor     5.6025        6.2694       -.16634E-05    .66330E-05
   5  Prefactor     .27527        9.8813        .71947E-06   -.97740E-04
   6  Prefactor     4.1754        4.0619       -.49773E-06   -.17983E-03
   7  Prefactor     .10000E-03    5.4401       -.12108E-05** at limit **
   8  Prefactor     .10000E-03    10.803        .79998E-07** at limit **
   9  norm          88.396        60.737        .67546E-05   -.97066E-05
  10  Prefactor     .10000E-03    2.6509        .58021E-07** at limit **
  11  Prefactor     21.582        61.308        .69951E-04    .60377E-05
  12  Prefactor     7.2682        14.777        .32212E-05   -.76324E-04
  13  Prefactor     .10000E-03    8.8454        .56338E-07** at limit **
  14  norm          1.5924        1.6610        .17439E-06   -.44554E-03
  15  Prefactor     16.408        9.7834        .20573E-05   -.85503E-04
  16  Prefactor     .10000E-03    99.190       -.19403E-05** at limit **
  17  norm          11.718        5.2660       -.10339E-06   -.19865E-04
  18  Prefactor     .10000E-03    11.903        .13613E-06** at limit **
  19  Normalizat    .68340        .16399       -.84551E-05    .15390E-03
  20  Prefactor     .81043        .16825       -.84229E-06   -.18067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 9.94118
  Prefactor  = 5.60249
  Prefactor  = 0.275269
  Prefactor  = 4.17536
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 88.3962
  Prefactor  = 0.0001
  Prefactor  = 21.5822
  Prefactor  = 7.26819
  Prefactor  = 0.0001
  norm       = 1.59244
  Prefactor  = 16.4076
  Prefactor  = 0.0001
  norm       = 11.7185
  Prefactor  = 0.0001
  Normalizat = 0.683395
  Prefactor  = 0.810433
 **********
 **   18 **HESSE 
 **********

 FCN=   3753.355     FROM HESSE     STATUS=OK           297 CALLS     2406 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0757        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9412        4.8133        .88645E-04   -1.5077    
   4  Prefactor     5.6025        6.2718        .15771E-03   -1.5235    
   5  Prefactor     .27527        93.990        .36406E-02   -1.5603    
   6  Prefactor     4.1754        4.0640        .11689E-03   -1.5299    
   7  Prefactor     .10000E-03    5.4775        .13950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          88.396        60.446        .21369E-03   -1.3825    
  10  Prefactor     .10000E-03    2.6660        .97386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.582        61.131        .86279E-04   -1.4778    
  12  Prefactor     7.2682        14.745        .14844E-03   -1.5169    
  13  Prefactor     .10000E-03    8.8511        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5924        1.6416        .76636E-04   -1.5456    
  15  Prefactor     16.408        9.7800        .98897E-04   -1.4898    
  16  Prefactor     .10000E-03    99.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.718        5.2645        .91221E-04   -1.5023    
  18  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .68340        .18506        .21834E-03   -1.0455    
  20  Prefactor     .81043        .19139        .21845E-03   -.99345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74468e-09
Minuit parameter uncertainties:
  1  5.61715e-05
  2  6.61392e-05
  3  4.81349
  4  6.27251
  5  10.1873
  6  4.0643
  7  0.000270044
  8  1.58584e-05
  9  60.4886
  10  1.47147e-05
  11  61.3096
  12  14.7523
  13  1.38433e-05
  14  1.64168
  15  9.78095
  16  0.000329958
  17  5.26471
  18  5.20254e-05
  19  0.185228
  20  0.191547
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  8.840e+01  6.049e+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:  8.104e-01  1.915e-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.834e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 35.813 -16.887
Photon Index (Fixed Index): 2.89 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.14e-05

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) = 3752.76796939
delta logL = 0.586761962103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3752.76607858
delta logL = 0.588652779547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.183       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8149       1.0000          .0000       5.0000    
     3 'Normalizat'    .64410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83654       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=   3752.766     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      295 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.153        47.332        .64032E-04   -.22193E-04
   2  alpha         3.8156        .88242        .10638E-02   -.15811E-04
   3  Normalizat    .64384        .18099        .22416E-03    .20188E-03
   4  Prefactor     .83680        .19313        .21525E-03   -.68714E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.1529
  alpha      = 3.81557
  Normalizat = 0.643844
  Prefactor  = 0.836798
 **********
 **   18 **HESSE 
 **********

 FCN=   3752.766     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.153        46.550        .25613E-05   -1.4456    
   2  alpha         3.8156        .86867        .42553E-04    .55416    
   3  Normalizat    .64384        .18106        .89665E-05   -1.0615    
   4  Prefactor     .83680        .19322        .86100E-05   -.98386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38946e-10
Minuit parameter uncertainties:
  1  46.5937
  2  0.894863
  3  0.18123
  4  0.193378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349692': 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) = 3752.76607734
delta logL = 0.588654016388

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  3.915e+01  4.659e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  3.816e+00  8.949e-01  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:  8.368e-01  1.934e-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.438e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 3.82 +/- 0.89
Photon Flux (Free Index): 9.25e-08 +/- 5.46e-08
Energy Flux (Free Index): 1.78e-05 +/- 9.51e-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/349692/cmap_HighResolution_483494401_483753601_4FGL_J0223.2-1653_daily_bin942.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='1.78e-05', photon_flux_error='4.12e-08', dlogl='5.89e-01', energy_flux='1.67e-05', photon_flux2='9.25e-08', job_status='DONE', time_completed='2021-08-15 19:59:22.268529', photon_index_error2='0.89', photon_index2='3.82', ts='4.64', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='9.51e-06', EG='0.68', time_epoch_completed='1629082762.27', return_code='0', job_id='349692', GAL2='0.84', EG2='0.64', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.46e-08', ts2='5.89', photon_index='2.89' WHERE bin_id='942' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 349692: <4FGL_J0223.2-1653_daily_bin942> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin942 35.8128 -16.8868 483494401 483753601 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 :                                   522.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            824 sec.

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

