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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1305
RA = 34.731, Dec = -23.0986
tmin = 577584001, tmax = 577843201
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='306646', job_status='RUN', time_executed='2021-08-15 17:40:44.111241', time_epoch_executed='1629074444.11' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306646/ft1_4FGL_J0218.9-2305_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306646/ft1_4FGL_J0218.9-2305_daily_bin1305.fits outfile=/scratch/kocevski/306646/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1305.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=577584001.0 tmax=577843201.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.57
user 2.61
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.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/306646/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.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 1.27
user 0.32
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/306646/ltcube_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.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/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits
.....................!
real 15.98
user 14.70
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/306646/ltcube_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.fits outfile=/scratch/kocevski/306646/expmap_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.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/306646/ltcube_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.fits
.....................!
real 192.40
user 185.75
sys 5.99

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/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.fits scfile=/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits outfile=/scratch/kocevski/306646/cmap_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.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 1.25
user 0.37
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.fits scfile=/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits outfile=/scratch/kocevski/306646/cmap_HighResolution_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.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 1.29
user 0.40
sys 0.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/306646/ft2_4FGL_J0218.9-2305_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306646/Model_4FGL_J0218.9-2305_daily_bin1305.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/306646/ft1_filtered_4FGL_J0218.9-2305_daily_bin1305.fits.....................!
real 102.23
user 99.69
sys 2.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3210       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4829       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    99.961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.962       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    90.366       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    112.65       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94783       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74791       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=   4876.265     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2356 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3206        2.6188       -.18844E-06   -.36871E-03
   2  norm          .10000E-03    1.2329        .10085E-06** at limit **
   3  Prefactor     4.4621        52.734       -.55333E-04   -.14690E-04
   4  norm          1.0083        2.0143       -.34758E-06   -.88238E-03
   5  Prefactor     .10000E-03    4.6650       -.36586E-06** at limit **
   6  Prefactor     21.352        14.519        .91009E-06    .81463E-04
   7  Prefactor     9.1591        6.2993        .64080E-06   -.53439E-04
   8  Prefactor     .10001E-03    25.171        .71154E-05** at limit **
   9  Prefactor     .10000E-03    41.156        .28592E-06** at limit **
  10  norm          99.951        61.587       -.86737E-05   -.17105E-03
  11  Prefactor     11.146        7.6748        .45327E-06   -.20347E-04
  12  Prefactor     .10000E-03    19.012        .36755E-05** at limit **
  13  Prefactor     .10000E-03    21.571       -.92444E-05** at limit **
  14  Prefactor     27.957        30.272       -.56506E-05    .14772E-04
  15  Prefactor     .10000E-03    1.2749        .33650E-07** at limit **
  16  Prefactor     90.360        50.152       -.53333E-05    .26230E-04
  17  norm          1.8899        1.9838       -.10417E-06   -.29136E-03
  18  Prefactor     112.64        96.103       -.98062E-05    .32428E-05
  19  Prefactor     .10000E-03    7.1763       -.14321E-06** at limit **
  20  norm          .10000E-03    1.1616        .40520E-07** at limit **
  21  Normalizat    .94800        .18227        .28669E-05   -.25657E-04
  22  Prefactor     .74771        .18556        .25768E-05    .57282E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32063
  norm       = 0.0001
  Prefactor  = 4.46215
  norm       = 1.00827
  Prefactor  = 0.0001
  Prefactor  = 21.3521
  Prefactor  = 9.15911
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 99.9509
  Prefactor  = 11.1456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9567
  Prefactor  = 0.0001
  Prefactor  = 90.3596
  norm       = 1.88988
  Prefactor  = 112.637
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.948004
  Prefactor  = 0.747707
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.265     FROM HESSE     STATUS=OK           340 CALLS     2696 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3206        2.6200        .11265E-03   -1.5403    
   2  norm          .10000E-03    1.2583        .75634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4621        52.591        .19017E-03   -1.5285    
   4  norm          1.0083        1.9667        .13301E-03   -1.5507    
   5  Prefactor     .10000E-03    4.7096        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.352        14.537        .86681E-04   -1.4783    
   7  Prefactor     9.1591        6.3022        .13243E-03   -1.5103    
   8  Prefactor     .10001E-03    25.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          99.951        61.339        .40210E-04   -1.3705    
  11  Prefactor     11.146        7.6772        .12000E-03   -1.5040    
  12  Prefactor     .10000E-03    19.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.957        30.244        .75762E-04   -1.4650    
  15  Prefactor     .10000E-03    1.2841        .76985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     90.360        50.510        .42270E-04   -1.3804    
  17  norm          1.8899        1.9671        .94799E-04   -1.5433    
  18  Prefactor     112.64        96.091        .37902E-04   -1.3581    
  19  Prefactor     .10000E-03    7.2058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1718        .73466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94800        .21462        .22021E-03   -.94793    
  22  Prefactor     .74771        .21680        .26669E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53142e-10
Minuit parameter uncertainties:
  1  2.62011
  2  2.54594e-06
  3  30.6714
  4  1.96679
  5  1.18503e-05
  6  14.539
  7  6.30263
  8  0.000790313
  9  5.27172e-05
  10  61.3779
  11  7.67786
  12  3.4764e-05
  13  2.62956e-05
  14  30.2601
  15  3.60202e-06
  16  50.534
  17  1.96718
  18  96.224
  19  1.35121e-05
  20  1.73959e-06
  21  0.214814
  22  0.217042
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  9.159e+00  6.303e+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:  7.477e-01  2.170e-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.480e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.08e-05

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) = 4876.24979551
delta logL = 0.0147052878592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4876.24527219
delta logL = 0.0192286043648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5510       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7411       1.0000          .0000       10.000    
     3 'Normalizat'    .94074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75331       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=   4876.245     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5506        6.9167        .12782E-03    .63505E-03
   2  Index         2.7413        .73857        .70298E-02    .10452E-03
   3  Normalizat    .94072        .20136        .22093E-03   -.12541E-03
   4  Prefactor     .75329        .21594        .26580E-03   -.12455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.55064
  Index      = 2.7413
  Normalizat = 0.940724
  Prefactor  = 0.753288
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.245     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5506        6.7025        .51128E-05   -1.5123    
   2  Index         2.7413        .71515        .28119E-03   -.46871    
   3  Normalizat    .94072        .20141        .88371E-05   -.95044    
   4  Prefactor     .75329        .21600        .10632E-04   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53526e-10
Minuit parameter uncertainties:
  1  6.70313
  2  0.718251
  3  0.20157
  4  0.216242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306646': 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) = 4876.24527212
delta logL = 0.019228673159

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  8.551e+00  6.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.741e+00  7.183e-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:  7.533e-01  2.162e-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.407e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 2.74 +/- 0.72
Photon Flux (Free Index): 6.63e-08 +/- 5.27e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.03e-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/306646/cmap_HighResolution_577584001_577843201_4FGL_J0218.9-2305_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='1.55e-05', photon_flux_error='4.14e-08', dlogl='1.92e-02', energy_flux='1.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-08-15 17:50:39.389008', photon_index_error2='0.72', photon_index2='2.74', ts='4.21', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.95', time_epoch_completed='1629075039.39', return_code='0', job_id='306646', GAL2='0.75', EG2='0.94', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.27e-08', ts2='4.27', photon_index='2.60' WHERE bin_id='1305' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 306646: <4FGL_J0218.9-2305_daily_bin1305> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1305> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 17:35:50 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:38:01 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:38:01 2021
Terminated at Sun Aug 15 17:50:40 2021
Results reported at Sun Aug 15 17:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1305 34.731 -23.0986 577584001 577843201 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 :                                   604.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            890 sec.

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

