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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin399
RA = 34.731, Dec = -23.0986
tmin = 342748801, tmax = 343008001
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='302388', job_status='RUN', time_executed='2021-08-15 17:24:34.704453', time_epoch_executed='1629073474.7' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302388

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302388/ft1_4FGL_J0218.9-2305_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302388/ft1_4FGL_J0218.9-2305_daily_bin399.fits outfile=/scratch/kocevski/302388/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin399.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=342748801.0 tmax=343008001.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.39
user 3.31
sys 1.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302388/ft1_filtered_4FGL_J0218.9-2305_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/302388/ltcube_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.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/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits
.....................!
real 16.95
user 14.50
sys 2.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302388/ft1_filtered_4FGL_J0218.9-2305_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/302388/ltcube_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.fits outfile=/scratch/kocevski/302388/expmap_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.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/302388/ltcube_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.fits
.....................!
real 195.12
user 187.43
sys 6.54

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/302388/ft1_filtered_4FGL_J0218.9-2305_daily_bin399.fits scfile=/scratch/kocevski/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits outfile=/scratch/kocevski/302388/cmap_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.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.34
user 0.37
sys 1.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302388/ft1_filtered_4FGL_J0218.9-2305_daily_bin399.fits scfile=/scratch/kocevski/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits outfile=/scratch/kocevski/302388/cmap_HighResolution_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.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.34
user 0.39
sys 1.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302388/ft1_filtered_4FGL_J0218.9-2305_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/302388/ft2_4FGL_J0218.9-2305_daily_bin399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302388/Model_4FGL_J0218.9-2305_daily_bin399.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/302388/ft1_filtered_4FGL_J0218.9-2305_daily_bin399.fits.....................!
real 79.15
user 74.91
sys 3.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .23261E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.337       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13311E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    103.34       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.073       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0653       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1801       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3089       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3032       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .42982       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=   3605.713     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2487 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5997        .93835E-07** at limit **
   2  norm          .56568E-01    2.4314        .20397E-05   -.10953E-02
   3  Prefactor     .10000E-03    187.43        .17703E-03** at limit **
   4  norm          3.5132        3.1204       -.62868E-07   -.51224E-03
   5  Prefactor     .10000E-03    2.1217        .32918E-07** at limit **
   6  Prefactor     8.7325        20.313        .97703E-06   -.43937E-03
   7  Prefactor     15.347        11.001       -.17295E-05   -.43767E-03
   8  Prefactor     .10001E-03    11.224       -.21047E-05** at limit **
   9  Prefactor     .10000E-03    13.145       -.21780E-07** at limit **
  10  norm          103.36        67.073        .21390E-04   -.11265E-04
  11  Prefactor     4.3053        7.1000       -.30806E-05   -.33714E-03
  12  Prefactor     10.367        40.718        .52168E-04   -.13369E-04
  13  Prefactor     .10000E-03    20.769       -.43955E-06** at limit **
  14  Prefactor     27.095        30.965        .26668E-04    .48315E-04
  15  Prefactor     6.0679        5.4354        .27865E-06   -.11286E-03
  16  Prefactor     .10001E-03    81.363       -.41638E-04** at limit **
  17  norm          .10000E-03    1.0057       -.34585E-08** at limit **
  18  Prefactor     .10000E-03    34.136        .31343E-05** at limit **
  19  Prefactor     9.1952        17.994        .11781E-04    .80983E-04
  20  norm          2.3117        4.2215       -.90570E-08   -.36503E-03
  21  Normalizat    1.3020        .22348       -.53969E-05   -.73385E-03
  22  Prefactor     .43049        .21755       -.48770E-05   -.53005E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0565685
  Prefactor  = 0.0001
  norm       = 3.51317
  Prefactor  = 0.0001
  Prefactor  = 8.73248
  Prefactor  = 15.3473
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 103.36
  Prefactor  = 4.30525
  Prefactor  = 10.3671
  Prefactor  = 0.0001
  Prefactor  = 27.0953
  Prefactor  = 6.06787
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1952
  norm       = 2.31168
  Normalizat = 1.30198
  Prefactor  = 0.430491
 **********
 **   18 **HESSE 
 **********

 FCN=   3605.713     FROM HESSE     STATUS=OK           342 CALLS     2829 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6301        .74032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .56568E-01    100.61        .17159E-02   -1.5660    
   3  Prefactor     .10000E-03    187.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5132        3.1345        .93315E-04   -1.5333    
   5  Prefactor     .10000E-03    2.1283        .85413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7325        20.315        .13563E-03   -1.5117    
   7  Prefactor     15.347        11.005        .10227E-03   -1.4924    
   8  Prefactor     .10001E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          103.36        66.943        .19777E-03   -1.3671    
  11  Prefactor     4.3053        7.0919        .19428E-03   -1.5293    
  12  Prefactor     10.367        40.656        .12457E-03   -1.5064    
  13  Prefactor     .10000E-03    20.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.095        31.077        .76993E-04   -1.4666    
  15  Prefactor     6.0679        5.4336        .12733E-03   -1.5215    
  16  Prefactor     .10001E-03    81.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0181        .58752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1952        18.028        .13228E-03   -1.5101    
  20  norm          2.3117        4.1993        .15867E-03   -1.5404    
  21  Normalizat    1.3020        .26080        .19695E-03   -.83507    
  22  Prefactor     .43049        .24066        .33976E-03   -1.1528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6591e-08
Minuit parameter uncertainties:
  1  1.19471e-05
  2  4.77504
  3  0.000317484
  4  3.13463
  5  4.77152e-06
  6  20.3309
  7  11.0061
  8  0.000635602
  9  8.01561e-06
  10  66.9918
  11  7.09329
  12  40.765
  13  1.48478e-05
  14  31.0956
  15  5.43403
  16  0.00162168
  17  6.24459e-07
  18  7.4633e-06
  19  18.0383
  20  4.19988
  21  0.261063
  22  0.241224
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.535e+01  1.101e+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:  4.305e-01  2.412e-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.302e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 7.23e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/302388/likelihoodResults_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.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) = 3605.54174173
delta logL = 0.170788795727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3605.52952936
delta logL = 0.183001168656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0777       1.0000          .0000       10.000    
     3 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46362       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=   3605.530     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.828        141.83        .29132E-02    .13335E-03
   2  Index         3.0782        6.5343        .14350        .68369E-04
   3  Normalizat    1.2581        .99668E-01    .33602E-01   -.49933E-04
   4  Prefactor     .46318        .89851E-01    .74171E-01    .42087E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.828
  Index      = 3.07821
  Normalizat = 1.25807
  Prefactor  = 0.463184
 **********
 **   18 **HESSE 
 **********

 FCN=   3605.530     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.828        12.370        .11649E-03   -1.5020    
   2  Index         3.0782        .92893        .54049E-02   -.39451    
   3  Normalizat    1.2581        .24185        .19965E-03   -.84827    
   4  Prefactor     .46318        .24143        .32847E-03   -1.1370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59715e-11
Minuit parameter uncertainties:
  1  12.3726
  2  0.935319
  3  0.24207
  4  0.241968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302388': 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) = 3605.52952226
delta logL = 0.183008268908

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.183e+01  1.237e+01  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  3.078e+00  9.353e-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:  4.632e-01  2.420e-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.258e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 3.08 +/- 0.94
Photon Flux (Free Index): 1.41e-07 +/- 1.02e-07
Energy Flux (Free Index): 2.70e-05 +/- 1.68e-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/302388/cmap_HighResolution_342748801_343008001_4FGL_J0218.9-2305_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.70e-05', photon_flux_error='7.23e-08', dlogl='1.83e-01', energy_flux='2.64e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-08-15 17:34:21.304032', photon_index_error2='0.94', photon_index2='3.08', ts='3.32', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='1.68e-05', EG='1.30', time_epoch_completed='1629074061.3', return_code='0', job_id='302388', GAL2='0.46', EG2='1.26', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='1.02e-07', ts2='3.77', photon_index='2.60' WHERE bin_id='399' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:34:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 302388: <4FGL_J0218.9-2305_daily_bin399> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin399> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:21:14 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:23:53 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:23:53 2021
Terminated at Sun Aug 15 17:34:22 2021
Results reported at Sun Aug 15 17:34:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin399 34.731 -23.0986 342748801 343008001 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 :                                   610.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            788 sec.

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

