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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin549
RA = 35.8128, Dec = -16.8868
tmin = 381628801, tmax = 381888001
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='348123', job_status='RUN', time_executed='2021-08-15 19:44:01.403893', time_epoch_executed='1629081841.4' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348123/ft1_4FGL_J0223.2-1653_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348123/ft1_4FGL_J0223.2-1653_daily_bin549.fits outfile=/scratch/kocevski/348123/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin549.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=381628801.0 tmax=381888001.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 3.75
user 3.03
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.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/348123/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.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.90
user 0.28
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/348123/ltcube_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.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/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits
.....................!
real 12.11
user 11.21
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/348123/ltcube_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.fits outfile=/scratch/kocevski/348123/expmap_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.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/348123/ltcube_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.fits
.....................!
real 156.94
user 152.40
sys 3.96

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/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.fits scfile=/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits outfile=/scratch/kocevski/348123/cmap_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.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.33
user 0.33
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.fits scfile=/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits outfile=/scratch/kocevski/348123/cmap_HighResolution_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.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.94
user 0.32
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/348123/ft2_4FGL_J0223.2-1653_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348123/Model_4FGL_J0223.2-1653_daily_bin549.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/348123/ft1_filtered_4FGL_J0223.2-1653_daily_bin549.fits.....................!
real 42.40
user 40.24
sys 1.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9667       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13142E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4116       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9043       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81340       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=   5061.821     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     1769 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.345        .72782E-05** at limit **
   2  norm          .10000E-03    1.4404       -.67073E-07** at limit **
   3  Prefactor     .10000E-03    1.3669        .11106E-06** at limit **
   4  Prefactor     9.9656        10.632       -.16131E-05   -.11798E-03
   5  Prefactor     .10000E-03    4.0000        .83095E-07** at limit **
   6  Prefactor     .10000E-03    1.9039       -.88596E-06** at limit **
   7  Prefactor     .10000E-03    3.3573        .79362E-07** at limit **
   8  Prefactor     .10000E-03    6.3181        .60179E-07** at limit **
   9  norm          .10000E-03    23.184       -.42685E-06** at limit **
  10  Prefactor     4.9145        6.6565       -.26505E-06    .20987E-05
  11  Prefactor     .10000E-03    20.025        .12314E-05** at limit **
  12  Prefactor     .38127        100.78       -.11104E-04    .77131E-05
  13  Prefactor     .10000E-03    17.350       -.25974E-05** at limit **
  14  norm          8.5537        2.4746       -.94981E-08    .89204E-04
  15  Prefactor     .10000E-03    10.382        .74811E-06** at limit **
  16  Prefactor     .10000E-03    159.33       -.53203E-05** at limit **
  17  norm          3.4115        2.7939        .62774E-07    .20691E-04
  18  Prefactor     6.8993        12.242        .47084E-07    .81084E-05
  19  Normalizat    1.0880        .17740        .18895E-05   -.14479E-03
  20  Prefactor     .81349        .18316       -.20346E-05    .60044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.96563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.91454
  Prefactor  = 0.0001
  Prefactor  = 0.381272
  Prefactor  = 0.0001
  norm       = 8.55369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41151
  Prefactor  = 6.89931
  Normalizat = 1.08799
  Prefactor  = 0.813494
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.821     FROM HESSE     STATUS=OK           289 CALLS     2058 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1806        .16348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3769        .81198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.9656        10.665        .12693E-03   -1.5076    
   5  Prefactor     .10000E-03    4.0046        .13897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9165        .95722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3692        .12729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3195        .17466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9145        6.5870        .18144E-03   -1.5265    
  11  Prefactor     .10000E-03    20.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .38127        100.34        .40521E-02   -1.5584    
  13  Prefactor     .10000E-03    17.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5537        2.4749        .57666E-04   -1.5123    
  15  Prefactor     .10000E-03    10.690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    159.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4115        2.7927        .10483E-03   -1.5339    
  18  Prefactor     6.8993        12.240        .15269E-03   -1.5183    
  19  Normalizat    1.0880        .19339        .21158E-03   -.90138    
  20  Prefactor     .81349        .20106        .25270E-03   -.99233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6706e-10
Minuit parameter uncertainties:
  1  0.000465554
  2  2.97249e-05
  3  6.07813e-07
  4  10.6671
  5  1.92682e-07
  6  6.75636e-06
  7  2.90336e-07
  8  2.4263e-07
  9  1.23677e-05
  10  6.588
  11  3.17978e-05
  12  12.3901
  13  8.48025e-05
  14  2.47494
  15  2.01872e-05
  16  0.000309895
  17  2.79277
  18  12.2448
  19  0.193519
  20  0.201238
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  1.237e-05  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.135e-01  2.012e-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.088e+00  1.935e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348123/likelihoodResults_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.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): 102
logL (Free Index) = 5061.82116362
delta logL = -0.000205137025659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5061.8209622
delta logL = -3.71764053853e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1404       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81350       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=   5061.821     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      261 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    266.21        .18142E-01** at limit **
   2  alpha         2.4876        3.6559        .50000       -.56207E-07
   3  Normalizat    1.0880        .14201E-01    .21158E-03    .21060E-02
   4  Prefactor     .81350        .14954E-01    .25270E-03    .18312E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48763
  Normalizat = 1.088
  Prefactor  = 0.813496
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.821     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      288 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6604.3        .34193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4876        3.7517        .20000       -.49485E-02
   3  Normalizat    1.0880        .66119E-01    .42316E-04   -.90138    
   4  Prefactor     .81350        .69621E-01    .50539E-04   -.99233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.70613e-08
Minuit parameter uncertainties:
  1  0.00144034
  2  11493.9
  3  0.0661238
  4  0.0696288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348123': 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): 102
logL (Free Index) = 5061.8209584
delta logL = 9.10495145945e-08

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  1.440e-03  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.488e+00  1.149e+04  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.135e-01  6.963e-02  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.088e+00  6.612e-02  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/348123/cmap_HighResolution_381628801_381888001_4FGL_J0223.2-1653_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-05', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-08-15 19:51:35.174211', job_id='348123', GAL2='0.81', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629082295.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='549' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 348123: <4FGL_J0223.2-1653_daily_bin549> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin549> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 19:40:52 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:43:39 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:43:39 2021
Terminated at Sun Aug 15 19:51:35 2021
Results reported at Sun Aug 15 19:51:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin549 35.8128 -16.8868 381628801 381888001 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 :                                   454.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   476 sec.
    Turnaround time :                            643 sec.

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

