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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin583
RA = 35.8128, Dec = -16.8868
tmin = 390441601, tmax = 390700801
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='348159', job_status='RUN', time_executed='2021-08-15 19:46:39.813409', time_epoch_executed='1629081999.81' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348159

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348159/ft1_4FGL_J0223.2-1653_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348159/ft1_4FGL_J0223.2-1653_daily_bin583.fits outfile=/scratch/kocevski/348159/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin583.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=390441601.0 tmax=390700801.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 11.91
user 3.31
sys 8.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348159/ft1_filtered_4FGL_J0223.2-1653_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/348159/ltcube_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.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/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits
.....................!
real 24.29
user 14.66
sys 9.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348159/ft1_filtered_4FGL_J0223.2-1653_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/348159/ltcube_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.fits outfile=/scratch/kocevski/348159/expmap_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.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/348159/ltcube_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.fits
.....................!
real 205.01
user 187.36
sys 15.39

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/348159/ft1_filtered_4FGL_J0223.2-1653_daily_bin583.fits scfile=/scratch/kocevski/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits outfile=/scratch/kocevski/348159/cmap_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.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 8.58
user 0.41
sys 7.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348159/ft1_filtered_4FGL_J0223.2-1653_daily_bin583.fits scfile=/scratch/kocevski/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits outfile=/scratch/kocevski/348159/cmap_HighResolution_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.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 8.67
user 0.38
sys 8.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348159/ft1_filtered_4FGL_J0223.2-1653_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/348159/ft2_4FGL_J0223.2-1653_daily_bin583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348159/Model_4FGL_J0223.2-1653_daily_bin583.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/348159/ft1_filtered_4FGL_J0223.2-1653_daily_bin583.fits.....................!
real 36.56
user 23.80
sys 11.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    203.89       1.0000         .10000E-03   10000.    
     2 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.154       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.072       1.0000         .10000E-03   10000.    
     9 'norm      '    .23995E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1882       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.211       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .49976       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70692       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=   1548.944     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2048 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     203.97        130.08        .48601E-06   -.33941E-05
   2  norm          .10000E-03    3.9168        .11241E-05** at limit **
   3  Prefactor     .10000E-03    4.0338       -.73247E-06** at limit **
   4  Prefactor     .10000E-03    11.958       -.99697E-07** at limit **
   5  Prefactor     16.152        15.731       -.10053E-06    .37380E-04
   6  Prefactor     .10000E-03    14.178        .23870E-06** at limit **
   7  Prefactor     .10000E-03    19.661        .49769E-06** at limit **
   8  Prefactor     42.060        35.851       -.21114E-06    .23723E-04
   9  norm          .10001E-03    316.06        .33295E-05** at limit **
  10  Prefactor     .55983        158.02       -.10393E-04    .13603E-04
  11  Prefactor     9.0071        238.75        .72127E-05    .11459E-04
  12  Prefactor     15.091        15.578       -.48068E-06    .24142E-04
  13  Prefactor     .10000E-03    66.308       -.26198E-06** at limit **
  14  norm          .10000E-03    2.5377       -.14038E-06** at limit **
  15  Prefactor     .10000E-03    16.759       -.19000E-05** at limit **
  16  Prefactor     49.460        196.25        .25751E-05    .81174E-05
  17  norm          .10000E-03    10.359       -.35375E-07** at limit **
  18  Prefactor     .10000E-03    17.295       -.56888E-06** at limit **
  19  Normalizat    .49969        .25191       -.48592E-05    .67999E-04
  20  Prefactor     .70691        .25136        .75372E-05    .60659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 203.971
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0604
  norm       = 0.000100014
  Prefactor  = 0.559834
  Prefactor  = 9.00707
  Prefactor  = 15.0914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 49.4598
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.49969
  Prefactor  = 0.70691
 **********
 **   18 **HESSE 
 **********

 FCN=   1548.944     FROM HESSE     STATUS=OK           289 CALLS     2337 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     203.97        130.07        .14151E-03   -1.2842    
   2  norm          .10000E-03    5.4711        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1485        .77475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.968        .13296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.152        15.726        .99651E-04   -1.4904    
   6  Prefactor     .10000E-03    14.405        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.970        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.060        35.855        .61803E-04   -1.4410    
   9  norm          .10001E-03    321.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55983        158.41        .42610E-02   -1.5558    
  11  Prefactor     9.0071        241.75        .13222E-03   -1.5108    
  12  Prefactor     15.091        15.600        .10310E-03   -1.4931    
  13  Prefactor     .10000E-03    66.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5445        .61266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.166        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.460        196.80        .28582E-03   -1.4300    
  17  norm          .10000E-03    10.359        .12374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.337        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .49969        .27347        .22612E-03   -1.1243    
  20  Prefactor     .70691        .26723        .19237E-03   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35596e-10
Minuit parameter uncertainties:
  1  130.253
  2  0.000230441
  3  3.95244e-05
  4  1.21269e-06
  5  15.7299
  6  0.000160215
  7  0.000183729
  8  35.8736
  9  0.0042814
  10  18.8836
  11  93.7501
  12  15.6038
  13  2.31152e-05
  14  1.01747e-05
  15  0.000317013
  16  198.475
  17  6.03683e-06
  18  0.000141384
  19  0.274207
  20  0.267714
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  4.281e-03  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:  7.069e-01  2.677e-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:  4.997e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/348159/likelihoodResults_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.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) = 1548.94421919
delta logL = -1.46631743974e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1548.94421919
delta logL = -1.46622744523e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8946       1.0000          .0000       5.0000    
     3 'Normalizat'    .49969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70691       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=   1548.944     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      247 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    154.09        .18143    ** at limit **
   2  alpha         2.3221        3.0030        .16727       -.26336E-08
   3  Normalizat    .49969        .69489E-02    .22611E-03    .13613E-04
   4  Prefactor     .70691        .70274E-02    .19237E-03    .21910E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32205
  Normalizat = 0.499689
  Prefactor  = 0.706911
 **********
 **   18 **HESSE 
 **********

 FCN=   1548.944     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    506.13        .78106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3221        2.6089        .66910E-02   -.71239E-01
   3  Normalizat    .49969        .26082        .90443E-05   -1.1243    
   4  Prefactor     .70691        .26397        .76949E-05   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44422e-12
Minuit parameter uncertainties:
  1  0.000553469
  2  1754.61
  3  0.261464
  4  0.264439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348159': 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) = 1548.94420448
delta logL = 4.78084984934e-08

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  5.535e-04  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.322e+00  1.755e+03  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:  7.069e-01  2.644e-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:  4.997e-01  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/348159/cmap_HighResolution_390441601_390700801_4FGL_J0223.2-1653_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-05', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-08-15 19:55:21.725819', job_id='348159', GAL2='0.71', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1629082521.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='583' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:55:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 348159: <4FGL_J0223.2-1653_daily_bin583> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin583> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 19:40:57 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:44:07 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:44:07 2021
Terminated at Sun Aug 15 19:55:24 2021
Results reported at Sun Aug 15 19:55:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin583 35.8128 -16.8868 390441601 390700801 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 :                                   636.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            867 sec.

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

