/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7398
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1438
RA = 35.8128, Dec = -16.8868
tmin = 612057601, tmax = 612316801
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='352675', job_status='RUN', time_executed='2021-08-15 19:59:23.746994', time_epoch_executed='1629082763.75' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352675/ft1_4FGL_J0223.2-1653_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352675/ft1_4FGL_J0223.2-1653_daily_bin1438.fits outfile=/scratch/kocevski/352675/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1438.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=612057601.0 tmax=612316801.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 8.50
user 4.31
sys 4.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352675/ft1_filtered_4FGL_J0223.2-1653_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/352675/ltcube_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.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/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits
.....................!
real 18.89
user 13.82
sys 4.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352675/ft1_filtered_4FGL_J0223.2-1653_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/352675/ltcube_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.fits outfile=/scratch/kocevski/352675/expmap_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.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/352675/ltcube_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.fits
.....................!
real 198.73
user 186.33
sys 10.22

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/352675/ft1_filtered_4FGL_J0223.2-1653_daily_bin1438.fits scfile=/scratch/kocevski/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits outfile=/scratch/kocevski/352675/cmap_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.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 4.53
user 0.40
sys 4.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352675/ft1_filtered_4FGL_J0223.2-1653_daily_bin1438.fits scfile=/scratch/kocevski/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits outfile=/scratch/kocevski/352675/cmap_HighResolution_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.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 4.47
user 0.39
sys 3.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/352675/ft1_filtered_4FGL_J0223.2-1653_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/352675/ft2_4FGL_J0223.2-1653_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/352675/Model_4FGL_J0223.2-1653_daily_bin1438.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/352675/ft1_filtered_4FGL_J0223.2-1653_daily_bin1438.fits.....................!
real 55.31
user 47.73
sys 6.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.045       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0540       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1608       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.403       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.327       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0539       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7278       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80398E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91241       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77134       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=   5085.293     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2032 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.053        30.138        .58156E-05    .14312E-06
   2  norm          1.0553        1.5970       -.16082E-06   -.74858E-03
   3  Prefactor     2.4639        3.4565       -.67170E-08   -.29198E-04
   4  Prefactor     9.1618        7.8809       -.40759E-06   -.21406E-04
   5  Prefactor     .10000E-03    22.853       -.19111E-04** at limit **
   6  Prefactor     3.1175        4.3153       -.63168E-06   -.37786E-03
   7  Prefactor     13.405        9.0730        .13802E-05    .27623E-05
   8  Prefactor     .10000E-03    40.820        .16147E-04** at limit **
   9  norm          23.316        33.208       -.11934E-04   -.66780E-05
  10  Prefactor     3.6760        5.3685        .13537E-05   -.37562E-03
  11  Prefactor     .10000E-03    19.759        .11935E-04** at limit **
  12  Prefactor     2.0597        11.815       -.19994E-05   -.22806E-03
  13  Prefactor     .10000E-03    8.5385       -.13320E-05** at limit **
  14  norm          5.6721        2.3173       -.20811E-06    .48492E-03
  15  Prefactor     2.7269        3.6588        .10438E-07    .10849E-03
  16  Prefactor     .10000E-03    240.18       -.22470E-03** at limit **
  17  norm          9.9282        4.6076        .18821E-05    .17007E-03
  18  Prefactor     .10000E-03    8.0482        .11027E-05** at limit **
  19  Normalizat    .91235        .16096        .25975E-06    .75037E-03
  20  Prefactor     .77108        .16559        .51651E-06    .58629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0527
  norm       = 1.05535
  Prefactor  = 2.46393
  Prefactor  = 9.1618
  Prefactor  = 0.0001
  Prefactor  = 3.11755
  Prefactor  = 13.4049
  Prefactor  = 0.0001
  norm       = 23.3161
  Prefactor  = 3.67603
  Prefactor  = 0.0001
  Prefactor  = 2.05972
  Prefactor  = 0.0001
  norm       = 5.67213
  Prefactor  = 2.72692
  Prefactor  = 0.000100005
  norm       = 9.9282
  Prefactor  = 0.0001
  Normalizat = 0.912348
  Prefactor  = 0.771076
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.293     FROM HESSE     STATUS=OK           295 CALLS     2327 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.053        30.128        .74339E-04   -1.4629    
   2  norm          1.0553        1.5548        .10455E-03   -1.5503    
   3  Prefactor     2.4639        3.4465        .14886E-03   -1.5394    
   4  Prefactor     9.1618        7.8795        .13242E-03   -1.5103    
   5  Prefactor     .10000E-03    23.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1175        4.3021        .16449E-03   -1.5355    
   7  Prefactor     13.405        9.0752        .10941E-03   -1.4976    
   8  Prefactor     .10000E-03    42.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.316        33.219        .82935E-04   -1.4742    
  10  Prefactor     3.6760        5.3498        .18926E-03   -1.5324    
  11  Prefactor     .10000E-03    19.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0597        11.800        .28841E-03   -1.5421    
  13  Prefactor     .10000E-03    8.5441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6721        2.3185        .65806E-04   -1.5232    
  15  Prefactor     2.7269        3.6500        .15381E-03   -1.5378    
  16  Prefactor     .10000E-03    240.23        .20899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9282        4.6095        .10094E-03   -1.5078    
  18  Prefactor     .10000E-03    8.0652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91235        .18913        .21073E-03   -.96028    
  20  Prefactor     .77108        .19412        .24360E-03   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70219e-09
Minuit parameter uncertainties:
  1  30.1436
  2  1.5549
  3  3.44674
  4  7.88038
  5  0.00012685
  6  4.30251
  7  9.07611
  8  0.00026293
  9  33.2453
  10  5.3505
  11  4.16245e-05
  12  9.86278
  13  9.94123e-06
  14  2.31853
  15  3.65032
  16  0.00210915
  17  4.60963
  18  3.03718e-05
  19  0.189268
  20  0.194287
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  2.332e+01  3.325e+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.711e-01  1.943e-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:  9.123e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/352675/likelihoodResults_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.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) = 5085.29291157
delta logL = 2.4252412004e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5085.29265812
delta logL = 0.0002776959318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.977       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8273       1.0000          .0000       5.0000    
     3 'Normalizat'    .91320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77054       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=   5085.293     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      260 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.988        47.766        .81805E-04    .32381E-04
   2  alpha         2.8269        3.8037        .48178E-01    .11711E-05
   3  Normalizat    .91334        .18557        .21063E-03   -.62663E-04
   4  Prefactor     .77044        .19500        .24369E-03    .72964E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.9881
  alpha      = 2.82692
  Normalizat = 0.913337
  Prefactor  = 0.770445
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.293     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.988        42.261        .32722E-05   -1.4728    
   2  alpha         2.8269        3.7125        .19271E-02    .13115    
   3  Normalizat    .91334        .18346        .84254E-05   -.95993    
   4  Prefactor     .77044        .19417        .97476E-05   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48283e-11
Minuit parameter uncertainties:
  1  42.3139
  2  2.79322
  3  0.183587
  4  0.194342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352675': 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) = 5085.29265774
delta logL = 0.000278078319752

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  2.399e+01  4.231e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.827e+00  2.793e+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:  7.704e-01  1.943e-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:  9.133e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.99
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/352675/cmap_HighResolution_612057601_612316801_4FGL_J0223.2-1653_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-08-15 20:12:03.726943', job_id='352675', GAL2='0.77', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629083523.73', return_code2='0', ts='0.99', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.78e-04', ts2='0.99', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='1438' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 352675: <4FGL_J0223.2-1653_daily_bin1438> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1438> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 19:55:43 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:56:28 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:56:28 2021
Terminated at Sun Aug 15 20:12:05 2021
Results reported at Sun Aug 15 20:12:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1438 35.8128 -16.8868 612057601 612316801 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 :                                   678.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            982 sec.

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

