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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin855
RA = 34.731, Dec = -23.0986
tmin = 460944001, tmax = 461203201
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='304979', job_status='RUN', time_executed='2021-08-15 17:35:13.577104', time_epoch_executed='1629074113.58' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304979/ft1_4FGL_J0218.9-2305_daily_bin855.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304979/ft1_4FGL_J0218.9-2305_daily_bin855.fits outfile=/scratch/kocevski/304979/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin855.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=460944001.0 tmax=461203201.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 5.92
user 3.20
sys 2.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.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/304979/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin855.fits evtable="EVENTS" outfile="/scratch/kocevski/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.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 3.01
user 0.31
sys 2.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.fits" evtable="EVENTS" scfile=/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits sctable="SC_DATA" outfile=/scratch/kocevski/304979/ltcube_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.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/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits
.....................!
real 16.53
user 13.32
sys 3.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits sctable="SC_DATA" expcube=/scratch/kocevski/304979/ltcube_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.fits outfile=/scratch/kocevski/304979/expmap_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.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/304979/ltcube_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.fits
.....................!
real 195.72
user 186.80
sys 8.40

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/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.fits scfile=/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits outfile=/scratch/kocevski/304979/cmap_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.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.98
user 0.37
sys 2.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.fits scfile=/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits outfile=/scratch/kocevski/304979/cmap_HighResolution_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.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.81
user 0.39
sys 2.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/304979/ft2_4FGL_J0218.9-2305_daily_bin855.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304979/Model_4FGL_J0218.9-2305_daily_bin855.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/304979/ft1_filtered_4FGL_J0218.9-2305_daily_bin855.fits.....................!
real 115.65
user 111.03
sys 4.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.080       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1236       1.0000         .10000E-03   10000.    
    10 'norm      '    .16441E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.626       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .50916       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0771       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=   5707.848     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2434 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .51013        .90712E-02** at limit **
   2  norm          2.0143        2.6424        .72899E-02    .69709E-03
   3  Prefactor     16.080        26.260        .24970E-02    .60245E-04
   4  norm          2.5447        1.8447        .64001E-02    .46183E-03
   5  Prefactor     .18307        1.8304        .58751E-01    .13448E-02
   6  Prefactor     .10000E-03    3.8792        .90712E-02** at limit **
   7  Prefactor     6.8865        4.7630        .38221E-02   -.30110E-03
   8  Prefactor     .10000E-03    9.0532        .90712E-02** at limit **
   9  Prefactor     9.1243        12.804        .33172E-02    .39761E-03
  10  norm          .10000E-03    198.83        .90712E-02** at limit **
  11  Prefactor     .94862        3.9139        .12986E-01    .11166E-02
  12  Prefactor     47.784        30.747        .14503E-02   -.70555E-03
  13  Prefactor     35.155        34.498        .16897E-02    .15528E-03
  14  Prefactor     .10000E-03    21.050        .90712E-02** at limit **
  15  Prefactor     1.7246        1.6973        .79950E-02   -.24925E-03
  16  Prefactor     20.624        24.880        .22048E-02   -.44493E-03
  17  norm          1.2241        1.3983        .10180E-01    .79071E-03
  18  Prefactor     .10000E-03    19.685        .90712E-02** at limit **
  19  Prefactor     .10000E-03    5.1993        .90712E-02** at limit **
  20  norm          .10000E-03    .54837        .90712E-02** at limit **
  21  Normalizat    .50918        .14156        .39682E-01    .22547E-04
  22  Prefactor     1.0771        .15372        .38530E-01   -.11903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.01431
  Prefactor  = 16.0803
  norm       = 2.54472
  Prefactor  = 0.183075
  Prefactor  = 0.0001
  Prefactor  = 6.88648
  Prefactor  = 0.0001
  Prefactor  = 9.12434
  norm       = 0.0001
  Prefactor  = 0.94862
  Prefactor  = 47.7843
  Prefactor  = 35.1555
  Prefactor  = 0.0001
  Prefactor  = 1.72458
  Prefactor  = 20.6236
  norm       = 1.22409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.509177
  Prefactor  = 1.07713
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.848     FROM HESSE     STATUS=OK           342 CALLS     2776 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52055        .52620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0143        2.6267        .12912E-03   -1.5424    
   3  Prefactor     16.080        26.251        .99880E-04   -1.4906    
   4  norm          2.5447        1.8354        .80482E-04   -1.5389    
   5  Prefactor     .18307        10.943        .19545E-02   -1.5622    
   6  Prefactor     .10000E-03    3.8937        .14527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8865        4.7446        .12732E-03   -1.5183    
   8  Prefactor     .10000E-03    9.3794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1243        12.799        .13269E-03   -1.5104    
  10  norm          .10000E-03    205.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94862        3.7901        .27954E-03   -1.5513    
  12  Prefactor     47.784        30.697        .58010E-04   -1.4324    
  13  Prefactor     35.155        34.498        .67586E-04   -1.4521    
  14  Prefactor     .10000E-03    21.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7246        1.7138        .95025E-04   -1.5445    
  16  Prefactor     20.624        24.940        .88192E-04   -1.4799    
  17  norm          1.2241        1.3751        .90467E-04   -1.5487    
  18  Prefactor     .10000E-03    19.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2475        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .55006        .54632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .50918        .16135        .23787E-03   -1.1199    
  22  Prefactor     1.0771        .17708        .20065E-03   -.90201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6268e-09
Minuit parameter uncertainties:
  1  1.96349e-07
  2  2.62688
  3  26.2699
  4  1.83541
  5  2.83058
  6  1.00459e-06
  7  4.7449
  8  5.80156e-05
  9  12.803
  10  0.000328722
  11  3.79111
  12  30.7074
  13  34.518
  14  0.000106313
  15  1.71383
  16  24.9523
  17  1.37517
  18  8.80953e-05
  19  1.82866e-06
  20  2.55942e-07
  21  0.161496
  22  0.177177
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  6.886e+00  4.745e+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:  1.077e+00  1.772e-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:  5.092e-01  1.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.57
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 8.16e-06

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

Saving results to:
/scratch/kocevski/304979/likelihoodResults_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.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) = 5707.71220916
delta logL = 0.135707496365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5707.70935175
delta logL = 0.138564898555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9687       1.0000          .0000       10.000    
     3 'Normalizat'    .49436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0890       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=   5707.709     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      256 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3870        66.844        .43285E-02   -.99492E-04
   2  Index         2.9686        6.4576        .17680        .79630E-04
   3  Normalizat    .49442        .52113E-01    .39474E-01    .17285E-04
   4  Prefactor     1.0890        .55160E-01    .38019E-01   -.85169E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38705
  Index      = 2.96864
  Normalizat = 0.494416
  Prefactor  = 1.08896
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.709     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3870        5.3088        .10494E-03   -1.5244    
   2  Index         2.9686        .78504        .64237E-02   -.41837    
   3  Normalizat    .49442        .15145        .24120E-03   -1.1267    
   4  Prefactor     1.0890        .17762        .19969E-03   -.89820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77677e-09
Minuit parameter uncertainties:
  1  5.30929
  2  0.788954
  3  0.151581
  4  0.177711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304979': 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) = 5707.70935167
delta logL = 0.138564981282

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  5.387e+00  5.309e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.969e+00  7.890e-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:  1.089e+00  1.777e-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:  4.944e-01  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 2.97 +/- 0.79
Photon Flux (Free Index): 5.55e-08 +/- 3.84e-08
Energy Flux (Free Index): 1.13e-05 +/- 7.39e-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/304979/cmap_HighResolution_460944001_461203201_4FGL_J0218.9-2305_daily_bin855.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='1.13e-05', photon_flux_error='3.12e-08', dlogl='1.39e-01', energy_flux='1.18e-05', photon_flux2='5.55e-08', job_status='DONE', time_completed='2021-08-15 17:47:22.582828', photon_index_error2='0.79', photon_index2='2.97', ts='3.57', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='7.39e-06', EG='0.51', time_epoch_completed='1629074842.58', return_code='0', job_id='304979', GAL2='1.09', EG2='0.49', return_code2='0', energy_flux_error='8.16e-06', photon_flux_error2='3.84e-08', ts2='3.89', photon_index='2.60' WHERE bin_id='855' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 304979: <4FGL_J0218.9-2305_daily_bin855> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin855> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:30:45 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:31:41 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:31:41 2021
Terminated at Sun Aug 15 17:47:23 2021
Results reported at Sun Aug 15 17:47:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin855 34.731 -23.0986 460944001 461203201 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            998 sec.

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

