/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 209 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0218.9-2305_daily_bin43
RA = 34.731, Dec = -23.0986
tmin = 250473601, tmax = 250732801
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='300736', job_status='RUN', time_executed='2021-08-15 17:20:49.777350', time_epoch_executed='1629073249.78' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300736

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300736/ft1_4FGL_J0218.9-2305_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300736/ft1_4FGL_J0218.9-2305_daily_bin43.fits outfile=/scratch/kocevski/300736/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin43.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=250473601.0 tmax=250732801.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 2.16
user 1.15
sys 0.97

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.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/300736/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.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.29
user 0.34
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/300736/ltcube_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.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/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits
.....................!
real 16.41
user 15.12
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/300736/ltcube_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.fits outfile=/scratch/kocevski/300736/expmap_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.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/300736/ltcube_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.fits
.....................!
real 193.85
user 186.89
sys 6.13

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0218.9-2305 @ 34.731 -23.0986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits scfile=/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits outfile=/scratch/kocevski/300736/cmap_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.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=34.731 yref=-23.0986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.33
user 0.37
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits scfile=/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits outfile=/scratch/kocevski/300736/cmap_HighResolution_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.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=34.731 yref=-23.0986 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.36
user 0.37
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300736/Model_4FGL_J0218.9-2305_daily_bin43.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits.....................!
real 107.85
user 105.14
sys 2.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits', '/scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits', expMap='/scratch/kocevski/300736/expmap_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.fits', expCube='/scratch/kocevski/300736/ltcube_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/300736/Model_4FGL_J0218.9-2305_daily_bin43.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9-2305'

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.106e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/300736/ft1_filtered_4FGL_J0218.9-2305_daily_bin43.fits
Spacecraft file(s): /scratch/kocevski/300736/ft2_4FGL_J0218.9-2305_daily_bin43.fits
Exposure map: /scratch/kocevski/300736/expmap_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.fits
Exposure cube: /scratch/kocevski/300736/ltcube_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/300736/Model_4FGL_J0218.9-2305_daily_bin43.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) = 5217.74727587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9347       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.556       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3295       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4228       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .57406E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14929E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17946E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.077       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    203.63       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1322       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1299       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .52707       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5217.722     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2478 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9344        2.1475       -.99248E-07    .19480E-04
   2  norm          2.1884        2.8964        .97930E-07    .27307E-03
   3  Prefactor     22.546        28.991       -.15182E-06    .54416E-05
   4  norm          5.1168        2.4324       -.88634E-07   -.12697E-03
   5  Prefactor     .10000E-03    1.9676        .23745E-06** at limit **
   6  Prefactor     .10000E-03    3.5224        .35166E-07** at limit **
   7  Prefactor     7.3275        5.5449       -.22887E-07    .89509E-04
   8  Prefactor     7.4108        7.9211       -.33232E-05   -.93713E-03
   9  Prefactor     .10000E-03    7.3909        .41161E-07** at limit **
  10  norm          .10001E-03    325.86       -.14026E-04** at limit **
  11  Prefactor     .10000E-03    3.4192        .10356E-06** at limit **
  12  Prefactor     25.274        31.508       -.66529E-06   -.81030E-04
  13  Prefactor     11.580        26.258       -.10995E-06    .66224E-04
  14  Prefactor     .10000E-03    100.83        .11010E-05** at limit **
  15  Prefactor     .10883E-03    3.8370       -.24102E-05** at limit **
  16  Prefactor     46.021        49.912        .13544E-05    .17214E-03
  17  norm          7.1565        2.7925        .38006E-07    .39691E-03
  18  Prefactor     203.49        115.83       -.11135E-05   -.12783E-03
  19  Prefactor     .10000E-03    14.221       -.16685E-05** at limit **
  20  norm          4.1312        3.1510       -.72929E-08    .54817E-04
  21  Normalizat    1.1299        .18985        .42252E-05    .32228E-03
  22  Prefactor     .52734        .19520       -.55687E-05    .20571E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.93444
  norm       = 2.18845
  Prefactor  = 22.5458
  norm       = 5.11676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32753
  Prefactor  = 7.4108
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 25.2744
  Prefactor  = 11.5801
  Prefactor  = 0.000100002
  Prefactor  = 0.00010883
  Prefactor  = 46.0209
  norm       = 7.15653
  Prefactor  = 203.487
  Prefactor  = 0.000100001
  norm       = 4.13123
  Normalizat = 1.12991
  Prefactor  = 0.527342
 **********
 **   18 **HESSE 
 **********

 FCN=   5217.722     FROM HESSE     STATUS=OK           352 CALLS     2830 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9344        2.1439        .74404E-04   -1.5311    
   2  norm          2.1884        2.8940        .13239E-03   -1.5412    
   3  Prefactor     22.546        28.989        .84338E-04   -1.4758    
   4  norm          5.1168        2.4385        .72651E-04   -1.5256    
   5  Prefactor     .10000E-03    1.9876        .98955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5276        .13238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3275        5.5610        .14062E-03   -1.5167    
   8  Prefactor     7.4108        7.9088        .14721E-03   -1.5163    
   9  Prefactor     .10000E-03    7.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    302.78        .38011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4535        .13036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.274        31.490        .79686E-04   -1.4702    
  13  Prefactor     11.580        26.266        .11780E-03   -1.5027    
  14  Prefactor     .10000E-03    103.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10883E-03    6.1618        .38893E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.021        50.588        .59067E-04   -1.4350    
  17  norm          7.1565        2.7924        .70589E-04   -1.5173    
  18  Prefactor     203.49        116.51        .14160E-03   -1.2845    
  19  Prefactor     .10000E-03    14.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1312        3.1491        .10781E-03   -1.5301    
  21  Normalizat    1.1299        .20968        .20529E-03   -.88797    
  22  Prefactor     .52734        .21293        .31627E-03   -1.1074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76904e-09
Minuit parameter uncertainties:
  1  2.1439
  2  2.89417
  3  29.0071
  4  2.43858
  5  9.5564e-06
  6  5.78187e-07
  7  5.56138
  8  7.90987
  9  4.58012e-06
  10  0.00348249
  11  4.18153e-08
  12  31.5108
  13  26.2922
  14  0.000979388
  15  0.0147537
  16  50.635
  17  2.79244
  18  116.639
  19  0.000188865
  20  3.14922
  21  0.209836
  22  0.213256
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  7.328e+00  5.561e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  5.273e-01  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.130e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 9.56e-06

TS (Fixed Index): 3.02
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300736/likelihoodResults_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.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) = 5217.70077217
delta logL = 0.0212718786761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5217.69205417
delta logL = 0.0299898845415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5259       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7920       1.0000          .0000       10.000    
     3 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53370       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   5217.692     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5266        6.4208        .12956E-03   -.86360E-03
   2  Index         2.7911        .82409        .74094E-02   -.15138E-03
   3  Normalizat    1.1219        .19756        .20592E-03    .46822E-03
   4  Prefactor     .53390        .21156        .31445E-03    .32123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52656
  Index      = 2.79112
  Normalizat = 1.12191
  Prefactor  = 0.533896
 **********
 **   18 **HESSE 
 **********

 FCN=   5217.692     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5266        6.1474        .51825E-05   -1.5197    
   2  Index         2.7911        .78853        .29638E-03   -.45758    
   3  Normalizat    1.1219        .19757        .41184E-04   -.89051    
   4  Prefactor     .53390        .21155        .12578E-04   -1.1045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4732e-10
Minuit parameter uncertainties:
  1  6.14801
  2  0.792649
  3  0.197696
  4  0.211859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300736': 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) = 5217.69205215
delta logL = 0.0299919037243

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  6.527e+00  6.148e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.791e+00  7.926e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  5.339e-01  2.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.122e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 2.79 +/- 0.79
Photon Flux (Free Index): 5.38e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.21e-05 +/- 9.14e-06

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/300736/cmap_HighResolution_250473601_250732801_4FGL_J0218.9-2305_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.21e-05', photon_flux_error='3.66e-08', dlogl='3.00e-02', energy_flux='1.26e-05', photon_flux2='5.38e-08', job_status='DONE', time_completed='2021-08-15 17:31:57.360310', photon_index_error2='0.79', photon_index2='2.79', ts='3.02', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='9.14e-06', EG='1.13', time_epoch_completed='1629073917.36', return_code='0', job_id='300736', GAL2='0.53', EG2='1.12', return_code2='0', energy_flux_error='9.56e-06', photon_flux_error2='4.51e-08', ts2='3.06', photon_index='2.60' WHERE bin_id='43' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:31:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 300736: <4FGL_J0218.9-2305_daily_bin43> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin43> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:15:38 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:16:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:16:58 2021
Terminated at Sun Aug 15 17:31:58 2021
Results reported at Sun Aug 15 17:31:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin43 34.731 -23.0986 250473601 250732801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9-2305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            980 sec.

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

