/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 1 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 = 7563
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0223.2-1653_daily_bin304
RA = 35.8128, Dec = -16.8868
tmin = 318124801, tmax = 318384001
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='347737', job_status='RUN', time_executed='2021-08-15 19:41:00.072318', time_epoch_executed='1629081660.07' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/347737

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/347737/ft1_4FGL_J0223.2-1653_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/347737/ft1_4FGL_J0223.2-1653_daily_bin304.fits outfile=/scratch/kocevski/347737/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin304.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=318124801.0 tmax=318384001.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 4.14
user 3.15
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/347737/ft1_filtered_4FGL_J0223.2-1653_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/347737/ltcube_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.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/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits
.....................!
real 14.77
user 13.56
sys 1.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/347737/ft1_filtered_4FGL_J0223.2-1653_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/347737/ltcube_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.fits outfile=/scratch/kocevski/347737/expmap_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.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/347737/ltcube_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.fits
.....................!
real 193.21
user 186.17
sys 6.56

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/347737/ft1_filtered_4FGL_J0223.2-1653_daily_bin304.fits scfile=/scratch/kocevski/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits outfile=/scratch/kocevski/347737/cmap_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.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.28
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/347737/ft1_filtered_4FGL_J0223.2-1653_daily_bin304.fits scfile=/scratch/kocevski/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits outfile=/scratch/kocevski/347737/cmap_HighResolution_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.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.29
user 0.39
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/347737/ft1_filtered_4FGL_J0223.2-1653_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/347737/ft2_4FGL_J0223.2-1653_daily_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/347737/Model_4FGL_J0223.2-1653_daily_bin304.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/347737/ft1_filtered_4FGL_J0223.2-1653_daily_bin304.fits.....................!
real 61.81
user 59.27
sys 2.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11697E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    56.310       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2256       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13322       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8403       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45641E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1354       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8553       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6770.327     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1711 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3439       -.63920E-05** at limit **
   2  norm          .10000E-03    2.5716       -.40137E-06** at limit **
   3  Prefactor     2.0396        2.2972        .30046E-06    .38391E-05
   4  Prefactor     11.454        1.9622       -.90765E-06   -.30038E-02
   5  Prefactor     8.0156        1.1571        .13636E-06    .11060E-02
   6  Prefactor     .10000E-03    1.9783       -.43190E-06** at limit **
   7  Prefactor     9.3411        1.1550        .47853E-06   -.21394E-02
   8  Prefactor     .10000E-03    3.9221        .13761E-04** at limit **
   9  norm          56.313        1.0877       -.22618E-06    .23271E-02
  10  Prefactor     .10000E-03    3.3676       -.37844E-06** at limit **
  11  Prefactor     5.2331        1.4869       -.20204E-05    .20793E-02
  12  Prefactor     .10014E-03    282.03        .25525E-04** at limit **
  13  Prefactor     .10000E-03    6.6854        .51712E-05** at limit **
  14  norm          3.8401        1.5955        .11226E-06    .92190E-03
  15  Prefactor     .10000E-03    4.0598       -.12216E-04** at limit **
  16  Prefactor     .10231E-03    1.2160        .33646E-05** at limit **
  17  norm          4.1344        2.8442       -.25113E-06    .28094E-03
  18  Prefactor     5.8407        10.035        .12832E-04   -.16206E-03
  19  Normalizat    1.0267        .15685       -.16078E-05   -.15427E-03
  20  Prefactor     .73759        .16805       -.41772E-05   -.32484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.03964
  Prefactor  = 11.4537
  Prefactor  = 8.01564
  Prefactor  = 0.0001
  Prefactor  = 9.34112
  Prefactor  = 0.0001
  norm       = 56.3127
  Prefactor  = 0.0001
  Prefactor  = 5.2331
  Prefactor  = 0.000100141
  Prefactor  = 0.0001
  norm       = 3.84013
  Prefactor  = 0.000100001
  Prefactor  = 0.000102313
  norm       = 4.13444
  Prefactor  = 5.84066
  Normalizat = 1.02667
  Prefactor  = 0.737586
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.327     FROM HESSE     STATUS=OK           343 CALLS     2054 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .72718        .36303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0396        2.3183        .72399E-02   -1.5422    
   4  Prefactor     11.454        8.8583        .29590E-02   -1.5031    
   5  Prefactor     8.0156        7.5314        .35406E-02   -1.5142    
   6  Prefactor     .10000E-03    1.9596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3411        8.0046        .32782E-02   -1.5097    
   8  Prefactor     .10000E-03    3.9280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          56.313        52.342        .13364E-02   -1.4206    
  10  Prefactor     .10000E-03    3.2246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2331        51.087        .43961E-02   -1.5250    
  12  Prefactor     .10014E-03    6.6637        .96685E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6953        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8401        1.5994        .51485E-02   -1.5316    
  15  Prefactor     .10000E-03    4.0143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10231E-03    192.70        .10601E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1344        2.8422        .49554E-02   -1.5301    
  18  Prefactor     5.8407        10.301        .41491E-02   -1.5225    
  19  Normalizat    1.0267        .13821        .42512E-01   -.92142    
  20  Prefactor     .73759        .14510        .42899E-01   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29712e-07
Minuit parameter uncertainties:
  1  3.274e-05
  2  2.65395e-05
  3  2.31843
  4  8.85933
  5  7.53225
  6  6.09546e-05
  7  8.00555
  8  2.94408e-05
  9  52.3846
  10  4.08413e-05
  11  32.7375
  12  0.00193709
  13  1.33767e-05
  14  1.59938
  15  0.000111664
  16  0.0423619
  17  2.8423
  18  10.3044
  19  0.138262
  20  0.145171
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  5.631e+01  5.238e+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:  7.376e-01  1.452e-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.027e+00  1.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 35.813 -16.887
Photon Index (Fixed Index): 2.89 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.87e-06

TS (Fixed Index): 2.39
Ra Dec: 35.813 -16.887
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/347737/likelihoodResults_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.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) = 6770.24069869
delta logL = 0.0864853468447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6770.23737847
delta logL = 0.0898055607822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    73.551       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4952       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72866       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=   6770.237     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      290 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          73.574        66.834        .46814E-04    .56292E-04
   2  alpha         2.4949        .92555        .20712E-01    .12573E-03
   3  Normalizat    1.0377        .15834        .20162E-03   -.17137E-03
   4  Prefactor     .72856        .16855        .25213E-03    .30752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 73.5742
  alpha      = 2.49488
  Normalizat = 1.03773
  Prefactor  = 0.728565
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.237     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          73.574        65.046        .93629E-05   -1.3990    
   2  alpha         2.4949        .90136        .41423E-02   -.20469E-02
   3  Normalizat    1.0377        .15828        .40324E-04   -.91777    
   4  Prefactor     .72856        .16855        .10085E-04   -1.0242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37437e-10
Minuit parameter uncertainties:
  1  65.1088
  2  0.922128
  3  0.158348
  4  0.168665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/347737': 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) = 6770.23737815
delta logL = 0.0898058781831

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  7.357e+01  6.511e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.495e+00  9.221e-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:  7.286e-01  1.687e-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.038e+00  1.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 2.49 +/- 0.92
Photon Flux (Free Index): 3.20e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.12e-05 +/- 8.71e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/347737/cmap_HighResolution_318124801_318384001_4FGL_J0223.2-1653_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='1.12e-05', photon_flux_error='3.57e-08', dlogl='8.98e-02', energy_flux='1.06e-05', photon_flux2='3.20e-08', job_status='DONE', time_completed='2021-08-15 19:51:31.094912', photon_index_error2='0.92', photon_index2='2.49', ts='2.39', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='8.71e-06', EG='1.03', time_epoch_completed='1629082291.09', return_code='0', job_id='347737', GAL2='0.73', EG2='1.04', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='2.99e-08', ts2='2.61', photon_index='2.89' WHERE bin_id='304' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 347737: <4FGL_J0223.2-1653_daily_bin304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin304 35.8128 -16.8868 318124801 318384001 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.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             335.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            671 sec.

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

