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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin544
RA = 34.731, Dec = -23.0986
tmin = 380332801, tmax = 380592001
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='303558', job_status='RUN', time_executed='2021-08-15 17:29:53.568647', time_epoch_executed='1629073793.57' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303558/ft1_4FGL_J0218.9-2305_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303558/ft1_4FGL_J0218.9-2305_daily_bin544.fits outfile=/scratch/kocevski/303558/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin544.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=380332801.0 tmax=380592001.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 7.24
user 3.23
sys 3.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.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/303558/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin544.fits evtable="EVENTS" outfile="/scratch/kocevski/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.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.66
user 0.35
sys 4.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/303558/ltcube_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.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/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits
.....................!
real 18.39
user 13.40
sys 4.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/303558/ltcube_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.fits outfile=/scratch/kocevski/303558/expmap_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.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/303558/ltcube_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.fits
.....................!
real 196.52
user 186.30
sys 9.43

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/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.fits scfile=/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits outfile=/scratch/kocevski/303558/cmap_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.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 4.56
user 0.38
sys 4.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.fits scfile=/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits outfile=/scratch/kocevski/303558/cmap_HighResolution_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.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 4.15
user 0.39
sys 3.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/303558/ft2_4FGL_J0218.9-2305_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303558/Model_4FGL_J0218.9-2305_daily_bin544.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/303558/ft1_filtered_4FGL_J0218.9-2305_daily_bin544.fits.....................!
real 83.35
user 76.31
sys 6.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.287       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4821       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.3371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18532E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.989       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.255       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0120       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92121       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=   3733.596     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2823 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .95634       -.10668E-06** at limit **
   2  norm          1.5927        4.5025        .19282E-06   -.71582E-04
   3  Prefactor     96.254        78.195        .46644E-05    .24153E-04
   4  norm          .10000E-03    .91501        .45368E-07** at limit **
   5  Prefactor     2.4831        6.6234        .59218E-05   -.32072E-05
   6  Prefactor     .10000E-03    14.336       -.22096E-06** at limit **
   7  Prefactor     10.130        11.074       -.27426E-06    .33078E-04
   8  Prefactor     12.951        21.686        .81136E-06    .11641E-04
   9  Prefactor     .10000E-03    11.534       -.28086E-06** at limit **
  10  norm          9.3263        180.31        .64991E-05    .12345E-04
  11  Prefactor     1.8139        15.529        .12743E-04   -.58434E-04
  12  Prefactor     31.129        67.166       -.19777E-04   -.54696E-04
  13  Prefactor     .10000E-03    87.619       -.44103E-05** at limit **
  14  Prefactor     .10000E-03    97.464        .34409E-05** at limit **
  15  Prefactor     .10000E-03    3.7870       -.66789E-06** at limit **
  16  Prefactor     69.962        72.795        .36141E-05    .46528E-05
  17  norm          8.3437        4.0939        .14185E-06   -.14350E-04
  18  Prefactor     .10000E-03    41.704       -.38838E-07** at limit **
  19  Prefactor     .10000E-03    8.9647       -.18000E-07** at limit **
  20  norm          10.255        6.4992       -.46838E-07   -.90681E-05
  21  Normalizat    1.0118        .25204       -.46825E-05    .11558E-03
  22  Prefactor     .92135        .25192        .27614E-05    .28815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.5927
  Prefactor  = 96.2541
  norm       = 0.0001
  Prefactor  = 2.48305
  Prefactor  = 0.0001
  Prefactor  = 10.1304
  Prefactor  = 12.9511
  Prefactor  = 0.0001
  norm       = 9.32634
  Prefactor  = 1.8139
  Prefactor  = 31.1288
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 69.9618
  norm       = 8.34366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2549
  Normalizat = 1.01181
  Prefactor  = 0.921353
 **********
 **   18 **HESSE 
 **********

 FCN=   3733.596     FROM HESSE     STATUS=OK           344 CALLS     3167 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .96317        .58333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5927        4.4845        .20137E-03   -1.5456    
   3  Prefactor     96.254        78.150        .20481E-03   -1.3743    
   4  norm          .10000E-03    .92235        .57041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4831        6.6064        .12119E-02   -1.5393    
   6  Prefactor     .10000E-03    14.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.130        11.086        .12591E-03   -1.5071    
   8  Prefactor     12.951        21.322        .11131E-03   -1.4988    
   9  Prefactor     .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.3263        174.60        .13115E-03   -1.5097    
  11  Prefactor     1.8139        15.640        .15526E-02   -1.5439    
  12  Prefactor     31.129        67.423        .71937E-04   -1.4592    
  13  Prefactor     .10000E-03    87.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    97.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0235        .23027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     69.962        73.019        .47983E-04   -1.4033    
  17  norm          8.3437        4.0954        .79084E-04   -1.5130    
  18  Prefactor     .10000E-03    41.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9748        .17867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.255        6.4978        .11584E-03   -1.5067    
  21  Normalizat    1.0118        .29645        .24389E-03   -.92636    
  22  Prefactor     .92135        .29552        .27740E-03   -.95399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98746e-10
Minuit parameter uncertainties:
  1  2.78906e-06
  2  4.48543
  3  78.2336
  4  2.50458e-06
  5  6.60835
  6  9.34001e-05
  7  11.0881
  8  21.3349
  9  4.15369e-06
  10  80.9802
  11  10.656
  12  67.5884
  13  0.000232069
  14  0.000683136
  15  3.84597e-05
  16  73.1128
  17  4.09552
  18  7.04037e-06
  19  2.89559e-05
  20  6.49827
  21  0.296932
  22  0.296037
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.013e+01  1.109e+01  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:  9.214e-01  2.960e-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.012e+00  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 7.29e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/303558/likelihoodResults_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.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) = 3733.37152225
delta logL = 0.224543521378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3733.35989687
delta logL = 0.236168904183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7745       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2661       1.0000          .0000       10.000    
     3 'Normalizat'    .96319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96009       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=   3733.360     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      283 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7730        11.524        .12627E-03   -.23274E-03
   2  Index         3.2662        1.2585        .61586E-02   -.45407E-04
   3  Normalizat    .96328        .28428        .24915E-03   -.31802E-03
   4  Prefactor     .96011        .30131        .27237E-03   -.28468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77304
  Index      = 3.26625
  Normalizat = 0.963275
  Prefactor  = 0.960114
 **********
 **   18 **HESSE 
 **********

 FCN=   3733.360     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7730        9.9739        .50507E-05   -1.5187    
   2  Index         3.2662        1.0901        .24634E-03   -.35410    
   3  Normalizat    .96328        .28417        .49830E-04   -.94271    
   4  Prefactor     .96011        .30063        .54475E-04   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10242e-10
Minuit parameter uncertainties:
  1  9.9763
  2  1.1002
  3  0.284617
  4  0.30115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303558': 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) = 3733.35989648
delta logL = 0.236169294953

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  6.773e+00  9.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  3.266e+00  1.100e+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:  9.601e-01  3.012e-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.633e-01  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 3.27 +/- 1.10
Photon Flux (Free Index): 1.03e-07 +/- 9.60e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.63e-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/303558/cmap_HighResolution_380332801_380592001_4FGL_J0218.9-2305_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='1.85e-05', photon_flux_error='7.29e-08', dlogl='2.36e-01', energy_flux='1.74e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-15 17:40:29.031969', photon_index_error2='1.10', photon_index2='3.27', ts='1.16', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='1.63e-05', EG='1.01', time_epoch_completed='1629074429.03', return_code='0', job_id='303558', GAL2='0.96', EG2='0.96', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='9.60e-08', ts2='1.69', photon_index='2.60' WHERE bin_id='544' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 303558: <4FGL_J0218.9-2305_daily_bin544> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin544> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:25:25 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:26:02 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:26:02 2021
Terminated at Sun Aug 15 17:40:30 2021
Results reported at Sun Aug 15 17:40:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin544 34.731 -23.0986 380332801 380592001 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 :                                   693.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            905 sec.

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

