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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1111
RA = 35.8128, Dec = -16.8868
tmin = 527299201, tmax = 527558401
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='350997', job_status='RUN', time_executed='2021-08-15 19:54:37.204033', time_epoch_executed='1629082477.2' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350997/ft1_4FGL_J0223.2-1653_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350997/ft1_4FGL_J0223.2-1653_daily_bin1111.fits outfile=/scratch/kocevski/350997/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1111.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=527299201.0 tmax=527558401.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 13.07
user 4.59
sys 8.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.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/350997/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1111.fits evtable="EVENTS" outfile="/scratch/kocevski/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.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 8.82
user 0.36
sys 8.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/350997/ltcube_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.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/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits
.....................!
real 23.82
user 14.06
sys 9.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/350997/ltcube_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.fits outfile=/scratch/kocevski/350997/expmap_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.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/350997/ltcube_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.fits
.....................!
real 202.84
user 185.88
sys 15.68

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/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.fits scfile=/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits outfile=/scratch/kocevski/350997/cmap_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.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.73
user 0.39
sys 8.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.fits scfile=/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits outfile=/scratch/kocevski/350997/cmap_HighResolution_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.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.64
user 0.38
sys 8.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/350997/ft2_4FGL_J0223.2-1653_daily_bin1111.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350997/Model_4FGL_J0223.2-1653_daily_bin1111.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/350997/ft1_filtered_4FGL_J0223.2-1653_daily_bin1111.fits.....................!
real 47.32
user 35.23
sys 11.81

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10939E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.724       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.759       1.0000         .10000E-03   10000.    
     9 'norm      '    .12500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.118       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2927       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .45265       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=   3012.282     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2044 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.134       -.54267E-04** at limit **
   2  norm          .10000E-03    2.9835       -.25584E-07** at limit **
   3  Prefactor     .10000E-03    4.7448       -.10601E-06** at limit **
   4  Prefactor     .10000E-03    26.384       -.85566E-05** at limit **
   5  Prefactor     58.722        25.962       -.58417E-07   -.19067E-04
   6  Prefactor     .10000E-03    3.5446        .15028E-06** at limit **
   7  Prefactor     11.160        14.141       -.11305E-06   -.74986E-03
   8  Prefactor     44.758        35.181       -.42750E-06   -.16065E-04
   9  norm          .10000E-03    103.75        .14987E-03** at limit **
  10  Prefactor     7.2329        7.3759       -.43486E-05   -.61329E-04
  11  Prefactor     73.093        69.964       -.20354E-04   -.19062E-03
  12  Prefactor     17.052        14.367       -.48804E-06   -.91620E-06
  13  Prefactor     .10000E-03    30.352        .18263E-04** at limit **
  14  norm          4.9456        3.4353       -.19763E-06    .91532E-04
  15  Prefactor     13.020        12.758       -.79276E-06    .10912E-03
  16  Prefactor     .10000E-03    229.01       -.22633E-03** at limit **
  17  norm          .10000E-03    5.9443       -.65176E-07** at limit **
  18  Prefactor     .10000E-03    31.726       -.26260E-05** at limit **
  19  Normalizat    1.2929        .24337        .26520E-05    .12947E-03
  20  Prefactor     .45258        .22993        .26680E-05    .20703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.7217
  Prefactor  = 0.0001
  Prefactor  = 11.1604
  Prefactor  = 44.7581
  norm       = 0.000100001
  Prefactor  = 7.23285
  Prefactor  = 73.093
  Prefactor  = 17.0521
  Prefactor  = 0.0001
  norm       = 4.94559
  Prefactor  = 13.0205
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29287
  Prefactor  = 0.45258
 **********
 **   18 **HESSE 
 **********

 FCN=   3012.282     FROM HESSE     STATUS=OK           283 CALLS     2327 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.7115        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8607        .23333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     58.722        25.990        .52354E-04   -1.4174    
   6  Prefactor     .10000E-03    3.5641        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.160        14.106        .11987E-03   -1.5040    
   8  Prefactor     44.758        35.178        .59927E-04   -1.4369    
   9  norm          .10000E-03    104.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2329        7.3782        .14586E-03   -1.5170    
  11  Prefactor     73.093        70.096        .46952E-04   -1.3996    
  12  Prefactor     17.052        14.362        .96990E-04   -1.4882    
  13  Prefactor     .10000E-03    30.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9456        3.4432        .79626E-04   -1.5263    
  15  Prefactor     13.020        12.746        .11100E-03   -1.4986    
  16  Prefactor     .10000E-03    229.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.0136        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2929        .27965        .20844E-03   -.83779    
  20  Prefactor     .45258        .26205        .32583E-03   -1.1420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42995e-09
Minuit parameter uncertainties:
  1  2.6006e-05
  2  5.45033e-06
  3  2.52785e-05
  4  6.39668e-05
  5  25.9954
  6  2.00971e-05
  7  14.1102
  8  35.1944
  9  0.000654222
  10  7.37912
  11  70.1756
  12  14.3653
  13  1.66543e-05
  14  3.44335
  15  12.7486
  16  0.00143737
  17  1.43432e-05
  18  0.00021889
  19  0.279981
  20  0.262745
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  6.542e-04  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:  4.526e-01  2.627e-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.293e+00  2.800e-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.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350997/likelihoodResults_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.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) = 3012.28216632
delta logL = -4.56198381471e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3012.28216632
delta logL = -4.56159009445e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8946       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45258       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=   3012.282     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      205 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    102.75        .90713E-02** at limit **
   2  alpha         2.9161        3.6376        .41818       -.10455E-05
   3  Normalizat    1.2929        .23241        .47152E-01   -.72791E-04
   4  Prefactor     .45257        .22545        .73575E-01   -.69479E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  alpha      = 2.91611
  Normalizat = 1.29288
  Prefactor  = 0.452574
 **********
 **   18 **HESSE 
 **********

 FCN=   3012.282     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    101.90        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9161        3.6331        .50000        .16722    
   3  Normalizat    1.2929        .26561        .20844E-03   -.83779    
   4  Prefactor     .45257        .25696        .32583E-03   -1.1420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26238e-10
Minuit parameter uncertainties:
  1  0.00193928
  2  2.46598
  3  0.265892
  4  0.257619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350997': 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) = 3012.28212069
delta logL = 9.12723407964e-09

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  1.939e-03  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.916e+00  2.466e+00  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  4.526e-01  2.576e-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.293e+00  2.659e-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/350997/cmap_HighResolution_527299201_527558401_4FGL_J0223.2-1653_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-08-15 20:05:06.949976', job_id='350997', GAL2='0.45', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1629083106.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='9.13e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='1111' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 350997: <4FGL_J0223.2-1653_daily_bin1111> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1111 35.8128 -16.8868 527299201 527558401 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 :                                   711.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            886 sec.

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

