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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin742
RA = 35.8128, Dec = -16.8868
tmin = 431654401, tmax = 431913601
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='349400', job_status='RUN', time_executed='2021-08-15 19:48:00.181600', time_epoch_executed='1629082080.18' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349400/ft1_4FGL_J0223.2-1653_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349400/ft1_4FGL_J0223.2-1653_daily_bin742.fits outfile=/scratch/kocevski/349400/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin742.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=431654401.0 tmax=431913601.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 6.21
user 4.65
sys 1.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.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/349400/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin742.fits evtable="EVENTS" outfile="/scratch/kocevski/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.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.76
user 0.30
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/349400/ltcube_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.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/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits
.....................!
real 14.40
user 12.51
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/349400/ltcube_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.fits outfile=/scratch/kocevski/349400/expmap_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.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/349400/ltcube_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.fits
.....................!
real 158.72
user 152.54
sys 5.78

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/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.fits scfile=/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits outfile=/scratch/kocevski/349400/cmap_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.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.80
user 0.32
sys 1.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.fits scfile=/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits outfile=/scratch/kocevski/349400/cmap_HighResolution_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.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.79
user 0.33
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/349400/ft2_4FGL_J0223.2-1653_daily_bin742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349400/Model_4FGL_J0223.2-1653_daily_bin742.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/349400/ft1_filtered_4FGL_J0223.2-1653_daily_bin742.fits.....................!
real 28.56
user 25.63
sys 2.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    107.03       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7058       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.118       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.716       1.0000         .10000E-03   10000.    
    17 'norm      '    22.880       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89144       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .62104       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=   2603.823     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2006 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    43.626       -.42949E-05** at limit **
   2  norm          .10000E-03    1.0695        .75965E-08** at limit **
   3  Prefactor     7.5097        6.7539        .89766E-07   -.38598E-04
   4  Prefactor     25.796        20.464        .14369E-06   -.22439E-05
   5  Prefactor     .10000E-03    7.0034        .10106E-06** at limit **
   6  Prefactor     .10000E-03    2.3429        .95105E-08** at limit **
   7  Prefactor     10.640        16.183        .15074E-05   -.22534E-03
   8  Prefactor     .10000E-03    12.210       -.30246E-05** at limit **
   9  norm          107.03        95.080       -.22479E-05   -.45841E-04
  10  Prefactor     .10000E-03    7.3448       -.94706E-07** at limit **
  11  Prefactor     .10000E-03    28.303       -.28032E-05** at limit **
  12  Prefactor     3.7057        11.078        .51751E-05   -.66398E-03
  13  Prefactor     .10001E-03    31.686        .66433E-05** at limit **
  14  norm          2.0653        3.5691        .24309E-06   -.10612E-03
  15  Prefactor     11.118        13.975        .14316E-06   -.29807E-04
  16  Prefactor     59.725        65.940        .37744E-05    .16132E-03
  17  norm          22.878        10.187       -.82277E-07   -.95965E-04
  18  Prefactor     .10000E-03    11.928        .30111E-05** at limit **
  19  Normalizat    .89148        .22483       -.45302E-06   -.30061E-04
  20  Prefactor     .62098        .21965       -.82673E-06   -.24844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 7.5097
  Prefactor  = 25.7956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6401
  Prefactor  = 0.000100003
  norm       = 107.026
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.70569
  Prefactor  = 0.000100014
  norm       = 2.06531
  Prefactor  = 11.1184
  Prefactor  = 59.7254
  norm       = 22.8778
  Prefactor  = 0.000100003
  Normalizat = 0.891482
  Prefactor  = 0.620983
 **********
 **   18 **HESSE 
 **********

 FCN=   2603.823     FROM HESSE     STATUS=OK           287 CALLS     2293 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    44.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0858        .51510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5097        6.7669        .11829E-03   -1.5160    
   4  Prefactor     25.796        20.500        .78872E-04   -1.4692    
   5  Prefactor     .10000E-03    7.0194        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3461        .76271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.640        16.247        .61414E-03   -1.5055    
   8  Prefactor     .10000E-03    12.584        .17677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          107.03        94.923        .38873E-04   -1.3635    
  10  Prefactor     .10000E-03    7.4398        .13501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7057        12.748        .10489E-02   -1.5323    
  13  Prefactor     .10001E-03    33.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0653        3.5307        .11205E-03   -1.5421    
  15  Prefactor     11.118        14.000        .12015E-03   -1.5041    
  16  Prefactor     59.725        66.619        .25960E-03   -1.4161    
  17  norm          22.878        10.140        .83740E-04   -1.4751    
  18  Prefactor     .10000E-03    12.245        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89148        .25900        .21518E-03   -.96760    
  20  Prefactor     .62098        .25120        .25329E-03   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2551e-09
Minuit parameter uncertainties:
  1  0.0010201
  2  8.99512e-07
  3  6.76763
  4  20.5058
  5  1.10533e-05
  6  7.76241e-07
  7  16.2535
  8  0.000381697
  9  95.0579
  10  9.55707e-06
  11  0.000517341
  12  12.7569
  13  0.00136287
  14  3.53104
  15  14.004
  16  66.7023
  17  10.1406
  18  0.000351841
  19  0.259365
  20  0.251657
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.070e+02  9.506e+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:  6.210e-01  2.517e-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:  8.915e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 35.813 -16.887
Photon Index (Fixed Index): 2.89 +/- 0.00
Photon Flux (Fixed Index): 7.29e-08 +/- 6.48e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.79e-05

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

Saving results to:
/scratch/kocevski/349400/likelihoodResults_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.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) = 2603.82252367
delta logL = 0.000534402226094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2603.82198465
delta logL = 0.00107342064803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    110.47       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8567       1.0000          .0000       5.0000    
     3 'Normalizat'    .89259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62009       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=   2603.822     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      247 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          110.48        111.83        .38270E-04   -.37783E-03
   2  alpha         2.8566        .83357        .11130E-01   -.13387E-03
   3  Normalizat    .89268        .25077        .21505E-03    .95982E-04
   4  Prefactor     .62001        .25012        .25346E-03    .13109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 110.476
  alpha      = 2.85657
  Normalizat = 0.892681
  Prefactor  = 0.620009
 **********
 **   18 **HESSE 
 **********

 FCN=   2603.822     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          110.48        107.72        .76541E-05   -1.3602    
   2  alpha         2.8566        .80370        .44522E-03    .14312    
   3  Normalizat    .89268        .25086        .43010E-04   -.96718    
   4  Prefactor     .62001        .25020        .10138E-04   -1.0675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24654e-09
Minuit parameter uncertainties:
  1  107.915
  2  0.818552
  3  0.251193
  4  0.250647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349400': 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) = 2603.82198458
delta logL = 0.0010734869179

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.105e+02  1.079e+02  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.857e+00  8.186e-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:  6.200e-01  2.506e-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:  8.927e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 2.86 +/- 0.82
Photon Flux (Free Index): 7.19e-08 +/- 5.56e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.47e-05

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/349400/cmap_HighResolution_431654401_431913601_4FGL_J0223.2-1653_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-05', comment='SUCCESS', photon_flux='7.29e-08', energy_flux2='2.03e-05', photon_flux_error='6.48e-08', dlogl='1.07e-03', energy_flux='2.02e-05', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-08-15 19:54:31.571424', photon_index_error2='0.82', photon_index2='2.86', ts='3.01', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.47e-05', EG='0.89', time_epoch_completed='1629082471.57', return_code='0', job_id='349400', GAL2='0.62', EG2='0.89', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='5.56e-08', ts2='3.05', photon_index='2.89' WHERE bin_id='742' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:54:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 349400: <4FGL_J0223.2-1653_daily_bin742> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin742> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 19:45:21 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:47:18 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:47:18 2021
Terminated at Sun Aug 15 19:54:32 2021
Results reported at Sun Aug 15 19:54:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin742 35.8128 -16.8868 431654401 431913601 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 :                                   408.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   433 sec.
    Turnaround time :                            551 sec.

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

