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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin158
RA = 34.731, Dec = -23.0986
tmin = 280281601, tmax = 280540801
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='302049', job_status='RUN', time_executed='2021-08-15 17:25:04.114130', time_epoch_executed='1629073504.11' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302049/ft1_4FGL_J0218.9-2305_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302049/ft1_4FGL_J0218.9-2305_daily_bin158.fits outfile=/scratch/kocevski/302049/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin158.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=280281601.0 tmax=280540801.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 10.16
user 4.06
sys 5.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/302049/ltcube_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.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/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits
.....................!
real 19.60
user 12.77
sys 6.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/302049/ltcube_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.fits outfile=/scratch/kocevski/302049/expmap_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.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/302049/ltcube_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.fits
.....................!
real 201.09
user 188.31
sys 12.29

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/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits scfile=/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits outfile=/scratch/kocevski/302049/cmap_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.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 6.07
user 0.37
sys 5.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits scfile=/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits outfile=/scratch/kocevski/302049/cmap_HighResolution_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.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 6.16
user 0.39
sys 5.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302049/Model_4FGL_J0218.9-2305_daily_bin158.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/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits.....................!
real 100.22
user 91.24
sys 8.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits', '/scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits', expMap='/scratch/kocevski/302049/expmap_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.fits', expCube='/scratch/kocevski/302049/ltcube_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302049/Model_4FGL_J0218.9-2305_daily_bin158.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/302049/ft1_filtered_4FGL_J0218.9-2305_daily_bin158.fits
Spacecraft file(s): /scratch/kocevski/302049/ft2_4FGL_J0218.9-2305_daily_bin158.fits
Exposure map: /scratch/kocevski/302049/expmap_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.fits
Exposure cube: /scratch/kocevski/302049/ltcube_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302049/Model_4FGL_J0218.9-2305_daily_bin158.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) = 4434.31360043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77020       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4714       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5413       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3721       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .76561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.648       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5105       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91764       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56112       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=   4434.313     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2394 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77022        2.0265       -.81409E-06   -.94207E-03
   2  norm          .10000E-03    1.2934        .63728E-07** at limit **
   3  Prefactor     .10000E-03    22.043       -.24129E-04** at limit **
   4  norm          .10000E-03    .71291       -.74543E-07** at limit **
   5  Prefactor     6.4715        4.1627       -.18075E-06    .18670E-04
   6  Prefactor     2.7898        7.7651       -.70683E-06   -.22186E-03
   7  Prefactor     9.5407        7.3848        .18921E-06   -.14325E-04
   8  Prefactor     8.6297        7.0170       -.23468E-06    .32331E-05
   9  Prefactor     .10000E-03    8.4256       -.11121E-06** at limit **
  10  norm          .10000E-03    18.839        .16834E-04** at limit **
  11  Prefactor     2.3725        5.1330       -.10773E-05   -.39519E-03
  12  Prefactor     .10000E-03    58.429       -.23262E-04** at limit **
  13  Prefactor     56.805        50.405        .19569E-05    .21699E-05
  14  Prefactor     .10000E-03    10.497       -.41802E-06** at limit **
  15  Prefactor     8.2824        4.4697       -.26011E-05   -.47469E-04
  16  Prefactor     .10000E-03    34.845        .27232E-04** at limit **
  17  norm          .76558        1.5695       -.51116E-06   -.11228E-02
  18  Prefactor     .10000E-03    19.968       -.50024E-05** at limit **
  19  Prefactor     17.647        13.140       -.70257E-06   -.63207E-03
  20  norm          1.5106        1.5092        .53075E-06    .35081E-02
  21  Normalizat    .91761        .15458        .68989E-06    .73642E-04
  22  Prefactor     .56112        .16269        .90467E-06    .74383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.770224
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.47154
  Prefactor  = 2.78981
  Prefactor  = 9.54069
  Prefactor  = 8.62967
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.37248
  Prefactor  = 0.0001
  Prefactor  = 56.8049
  Prefactor  = 0.0001
  Prefactor  = 8.2824
  Prefactor  = 0.0001
  norm       = 0.765583
  Prefactor  = 0.0001
  Prefactor  = 17.6472
  norm       = 1.51056
  Normalizat = 0.91761
  Prefactor  = 0.561121
 **********
 **   18 **HESSE 
 **********

 FCN=   4434.313     FROM HESSE     STATUS=OK           344 CALLS     2738 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77022        2.0322        .14439E-03   -1.5532    
   2  norm          .10000E-03    1.3179        .73854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .72611        .54855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4715        4.1631        .10586E-03   -1.5199    
   6  Prefactor     2.7898        7.7300        .24361E-03   -1.5374    
   7  Prefactor     9.5407        7.3958        .12974E-03   -1.5090    
   8  Prefactor     8.6297        7.0217        .13644E-03   -1.5120    
   9  Prefactor     .10000E-03    8.4268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    18.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3725        5.0933        .20728E-03   -1.5400    
  12  Prefactor     .10000E-03    58.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.805        50.506        .53227E-04   -1.4199    
  14  Prefactor     .10000E-03    10.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.2824        4.4660        .98974E-04   -1.5132    
  16  Prefactor     .10000E-03    34.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76558        1.5511        .11237E-03   -1.5533    
  18  Prefactor     .10000E-03    19.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.647        13.196        .47669E-03   -1.4868    
  20  norm          1.5106        1.5397        .40261E-03   -1.5462    
  21  Normalizat    .91761        .18553        .18657E-03   -.95844    
  22  Prefactor     .56112        .19354        .26070E-03   -1.0925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78982e-09
Minuit parameter uncertainties:
  1  2.03241
  2  1.18371e-06
  3  1.31516e-05
  4  1.39903e-06
  5  4.16324
  6  7.73274
  7  7.3965
  8  7.02238
  9  1.20509e-06
  10  1.73081e-06
  11  5.09423
  12  2.77951e-05
  13  50.5441
  14  1.1146e-06
  15  4.46616
  16  2.61139e-05
  17  1.55123
  18  2.20164e-06
  19  13.1979
  20  1.53971
  21  0.185662
  22  0.193768
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  9.541e+00  7.397e+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.611e-01  1.938e-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:  9.176e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/302049/likelihoodResults_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.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) = 4433.40684233
delta logL = 0.906232448055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4433.34169356
delta logL = 0.971381210829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30995       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3061       1.0000          .0000       10.000    
     3 'Normalizat'    .85100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63137       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.

 FCN=   4433.342     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      272 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30720        2.8597        .45173E-02   -.88185E-02
   2  Index         5.3126        3.2172        .10192       -.32965E-03
   3  Normalizat    .85131        .48266E-01    .44272E-01   -.30369E-03
   4  Prefactor     .63121        .54045E-01    .41480E-01   -.15485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.307197
  Index      = 5.31263
  Normalizat = 0.851315
  Prefactor  = 0.63121
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.342     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      303 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30720        4.9124        .20243E-04   -1.5597    
   2  Index         5.3126        7.1717        .41925E-02    .62566E-01
   3  Normalizat    .85131        .16122        .19269E-03   -.98193    
   4  Prefactor     .63121        .17596        .24709E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.40054e-10
Minuit parameter uncertainties:
  1  2.45672
  2  4.99101
  3  0.161314
  4  0.176116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302049': 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): 102
logL (Free Index) = 4433.34168312
delta logL = 0.971391655883

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  3.072e-01  2.457e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  5.313e+00  4.991e+00  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:  6.312e-01  1.761e-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:  8.513e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.56
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 5.31 +/- 4.99
Photon Flux (Free Index): 9.64e-08 +/- 5.84e-08
Energy Flux (Free Index): 1.25e-05 +/- 9.94e-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/302049/cmap_HighResolution_280281601_280540801_4FGL_J0218.9-2305_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.25e-05', photon_flux_error='4.86e-08', dlogl='9.71e-01', energy_flux='1.64e-05', photon_flux2='9.64e-08', job_status='DONE', time_completed='2021-08-15 17:36:44.943793', photon_index_error2='4.99', photon_index2='5.31', ts='2.29', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='9.94e-06', EG='0.92', time_epoch_completed='1629074204.94', return_code='0', job_id='302049', GAL2='0.63', EG2='0.85', return_code2='102', energy_flux_error='1.27e-05', photon_flux_error2='5.84e-08', ts2='4.56', photon_index='2.60' WHERE bin_id='158' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 302049: <4FGL_J0218.9-2305_daily_bin158> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin158> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:20:43 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:21:16 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:21:16 2021
Terminated at Sun Aug 15 17:36:46 2021
Results reported at Sun Aug 15 17:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin158 34.731 -23.0986 280281601 280540801 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 :                                   785.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            963 sec.

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

