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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin54
RA = 34.731, Dec = -23.0986
tmin = 253324801, tmax = 253584001
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='300752', job_status='RUN', time_executed='2021-08-15 17:17:47.200978', time_epoch_executed='1629073067.2' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300752/ft1_4FGL_J0218.9-2305_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300752/ft1_4FGL_J0218.9-2305_daily_bin54.fits outfile=/scratch/kocevski/300752/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin54.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=253324801.0 tmax=253584001.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 3.50
user 1.25
sys 2.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.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/300752/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.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 2.57
user 0.36
sys 2.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/300752/ltcube_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.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/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits
.....................!
real 16.37
user 13.92
sys 2.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/300752/ltcube_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.fits outfile=/scratch/kocevski/300752/expmap_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.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/300752/ltcube_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.fits
.....................!
real 196.67
user 188.57
sys 7.52

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/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.fits scfile=/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits outfile=/scratch/kocevski/300752/cmap_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.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 2.46
user 0.39
sys 2.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.fits scfile=/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits outfile=/scratch/kocevski/300752/cmap_HighResolution_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.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 2.53
user 0.37
sys 2.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/300752/ft2_4FGL_J0218.9-2305_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300752/Model_4FGL_J0218.9-2305_daily_bin54.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/300752/ft1_filtered_4FGL_J0218.9-2305_daily_bin54.fits.....................!
real 122.14
user 117.64
sys 4.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4970       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0558       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2637       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .80139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8074       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2397       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.205       1.0000         .10000E-03   10000.    
    17 'norm      '    12.891       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11862E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.9879       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68290       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6141.499     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     1947 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4962        1.9046        .45109E-06    .11757E-03
   2  norm          4.0556        2.5726       -.11161E-06    .65996E-04
   3  Prefactor     .10000E-03    8.5608       -.36317E-05** at limit **
   4  norm          1.2637        1.4490       -.44440E-07   -.35242E-05
   5  Prefactor     .79986        2.9492        .12155E-06    .52186E-04
   6  Prefactor     8.8068        1.0351        .39170E-06    .15420E-02
   7  Prefactor     7.1281        2.7059        .43998E-05    .10632E-01
   8  Prefactor     4.3462        1.2271        .17534E-05    .91990E-03
   9  Prefactor     .10004E-03    16.199       -.31052E-04** at limit **
  10  norm          .10002E-03    18.796        .22151E-04** at limit **
  11  Prefactor     .10000E-03    2.1945       -.10387E-05** at limit **
  12  Prefactor     1.2009        6.5543       -.19028E-04    .18681E-02
  13  Prefactor     35.714        1.2837       -.62549E-06    .23578E-02
  14  Prefactor     .10000E-03    12.434        .26168E-05** at limit **
  15  Prefactor     .10000E-03    1.3186       -.51526E-06** at limit **
  16  Prefactor     18.200        1.2363       -.72641E-06    .11283E-02
  17  norm          12.891        2.8250        .39707E-06    .10227E-02
  18  Prefactor     .10046E-03    98.731       -.20793E-04** at limit **
  19  Prefactor     .10000E-03    4.4243        .19182E-05** at limit **
  20  norm          9.9872        3.9449       -.21070E-05   -.23116E-02
  21  Normalizat    .68290        .16462       -.12229E-05   -.24893E-04
  22  Prefactor     .95798        .18337       -.30478E-05   -.54168E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49622
  norm       = 4.05564
  Prefactor  = 0.0001
  norm       = 1.26366
  Prefactor  = 0.799856
  Prefactor  = 8.80682
  Prefactor  = 7.12807
  Prefactor  = 4.3462
  Prefactor  = 0.000100035
  norm       = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 1.20093
  Prefactor  = 35.7139
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 18.2001
  norm       = 12.8911
  Prefactor  = 0.000100463
  Prefactor  = 0.0001
  norm       = 9.98724
  Normalizat = 0.682901
  Prefactor  = 0.957984
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.499     FROM HESSE     STATUS=OK           388 CALLS     2335 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4962        1.9436        .87532E-02   -1.5463    
   2  norm          4.0556        2.5913        .50054E-02   -1.5305    
   3  Prefactor     .10000E-03    8.5653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2637        1.4822        .99115E-02   -1.5483    
   5  Prefactor     .79986        2.9974        .12445E-01   -1.5529    
   6  Prefactor     8.8068        8.2865        .33765E-02   -1.5114    
   7  Prefactor     7.1281        5.1580        .37569E-02   -1.5174    
   8  Prefactor     4.3462        6.1246        .48328E-02   -1.5291    
   9  Prefactor     .10004E-03    18.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    21.020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2009        261.51        .10071E-01   -1.5489    
  13  Prefactor     35.714        49.144        .16764E-02   -1.4512    
  14  Prefactor     .10000E-03    12.487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.200        29.973        .23468E-02   -1.4854    
  17  norm          12.891        2.8441        .27891E-02   -1.4990    
  18  Prefactor     .10046E-03    100.14        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.9872        3.9727        .31698E-02   -1.5076    
  21  Normalizat    .68290        .15275        .42062E-01   -1.0457    
  22  Prefactor     .95798        .15945        .45738E-01   -.94143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87204e-07
Minuit parameter uncertainties:
  1  1.94373
  2  2.59132
  3  4.78044e-05
  4  1.48227
  5  2.99792
  6  8.28757
  7  5.1583
  8  6.12552
  9  0.00161925
  10  0.00132085
  11  2.83812e-06
  12  35.6004
  13  49.1993
  14  0.00039996
  15  2.84026e-06
  16  29.998
  17  2.84411
  18  0.0136357
  19  1.86399e-05
  20  3.97276
  21  0.152844
  22  0.159533
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  7.128e+00  5.158e+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:  9.580e-01  1.595e-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:  6.829e-01  1.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 8.87e-06

TS (Fixed Index): 2.93
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300752/likelihoodResults_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.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) = 6141.18080913
delta logL = 0.318473034176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6141.16066719
delta logL = 0.338614974314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3433       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1946       1.0000          .0000       10.000    
     3 'Normalizat'    .66429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97340       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=   6141.161     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      268 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3427        5.6685        .99168E-04    .66492E-05
   2  Index         3.1949        .92563        .61986E-02    .36223E-03
   3  Normalizat    .66449        .16153        .24075E-03   -.28173E-03
   4  Prefactor     .97320        .18433        .23348E-03   -.12582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34273
  Index      = 3.19494
  Normalizat = 0.664494
  Prefactor  = 0.973197
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.161     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3427        5.0441        .39667E-05   -1.5291    
   2  Index         3.1949        .82423        .12397E-02   -.36935    
   3  Normalizat    .66449        .16167        .96299E-05   -1.0531    
   4  Prefactor     .97320        .18438        .93391E-05   -.93628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60479e-10
Minuit parameter uncertainties:
  1  5.0446
  2  0.828588
  3  0.161784
  4  0.184502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300752': 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) = 6141.16066593
delta logL = 0.338616231543

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  4.343e+00  5.045e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  3.195e+00  8.286e-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:  9.732e-01  1.845e-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:  6.645e-01  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 3.19 +/- 0.83
Photon Flux (Free Index): 6.02e-08 +/- 3.98e-08
Energy Flux (Free Index): 1.10e-05 +/- 7.40e-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/300752/cmap_HighResolution_253324801_253584001_4FGL_J0218.9-2305_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='1.10e-05', photon_flux_error='3.39e-08', dlogl='3.39e-01', energy_flux='1.23e-05', photon_flux2='6.02e-08', job_status='DONE', time_completed='2021-08-15 17:29:32.006885', photon_index_error2='0.83', photon_index2='3.19', ts='2.93', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='7.40e-06', EG='0.68', time_epoch_completed='1629073772.01', return_code='0', job_id='300752', GAL2='0.97', EG2='0.66', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='3.98e-08', ts2='3.64', photon_index='2.60' WHERE bin_id='54' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:29:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 300752: <4FGL_J0218.9-2305_daily_bin54> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin54> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:15:39 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:17:06 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:17:06 2021
Terminated at Sun Aug 15 17:29:33 2021
Results reported at Sun Aug 15 17:29:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin54 34.731 -23.0986 253324801 253584001 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 :                                   734.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            834 sec.

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

