/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7501
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0218.9-2305_daily_bin1539
RA = 34.731, Dec = -23.0986
tmin = 638236801, tmax = 638496001
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='307991', job_status='RUN', time_executed='2021-08-15 17:43:26.165983', time_epoch_executed='1629074606.17' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307991

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307991/ft1_4FGL_J0218.9-2305_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307991/ft1_4FGL_J0218.9-2305_daily_bin1539.fits outfile=/scratch/kocevski/307991/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin1539.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=638236801.0 tmax=638496001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.01
user 3.39
sys 3.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307991/ft1_filtered_4FGL_J0218.9-2305_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/307991/ltcube_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.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/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits
.....................!
real 17.57
user 13.14
sys 4.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307991/ft1_filtered_4FGL_J0218.9-2305_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/307991/ltcube_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.fits outfile=/scratch/kocevski/307991/expmap_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.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/307991/ltcube_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.fits
.....................!
real 196.47
user 185.96
sys 9.95

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/307991/ft1_filtered_4FGL_J0218.9-2305_daily_bin1539.fits scfile=/scratch/kocevski/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits outfile=/scratch/kocevski/307991/cmap_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.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 7.00
user 0.39
sys 3.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307991/ft1_filtered_4FGL_J0218.9-2305_daily_bin1539.fits scfile=/scratch/kocevski/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits outfile=/scratch/kocevski/307991/cmap_HighResolution_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=34.731 yref=-23.0986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.87
user 0.41
sys 3.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307991/ft1_filtered_4FGL_J0218.9-2305_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/307991/ft2_4FGL_J0218.9-2305_daily_bin1539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307991/Model_4FGL_J0218.9-2305_daily_bin1539.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/307991/ft1_filtered_4FGL_J0218.9-2305_daily_bin1539.fits.....................!
real 118.58
user 112.61
sys 5.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.201       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9462       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.052       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31502E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.048       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4381       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18536E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7325       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.2339       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73667       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85353       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=   5774.075     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2117 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .72177        .90712E-02** at limit **
   2  norm          .10000E-03    1.5558        .30070E-01** at limit **
   3  Prefactor     28.197        31.751        .18861E-02   -.13670E-03
   4  norm          5.9462        2.1531        .41168E-02    .14902E-03
   5  Prefactor     1.2500        4.1390        .10001E-01    .95357E-03
   6  Prefactor     16.052        9.4283        .24992E-02   -.14405E-03
   7  Prefactor     .21675E-03    1.5294        .52911E-01** at limit **
   8  Prefactor     18.047        8.9471        .23569E-02    .28354E-03
   9  Prefactor     .10000E-03    8.3831        .90712E-02** at limit **
  10  norm          .10002E-03    24.131        .90712E-02** at limit **
  11  Prefactor     3.4384        3.6523        .54534E-02    .79472E-04
  12  Prefactor     .10000E-03    16.388        .90712E-02** at limit **
  13  Prefactor     .10000E-03    35.897        .90712E-02** at limit **
  14  Prefactor     .10000E-03    18.412        .10799    ** at limit **
  15  Prefactor     1.7695        2.0945        .78714E-02    .10661E-03
  16  Prefactor     .10000E-03    10.728        .90712E-02** at limit **
  17  norm          3.7325        1.7375        .52251E-02    .28346E-03
  18  Prefactor     .10002E-03    23.813        .90712E-02** at limit **
  19  Prefactor     .10000E-03    6.0592        .90712E-02** at limit **
  20  norm          9.2339        3.2971        .32972E-02   -.23797E-04
  21  Normalizat    .73662        .14197        .42778E-01   -.52508E-04
  22  Prefactor     .85358        .15909        .44410E-01   -.20283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.197
  norm       = 5.9462
  Prefactor  = 1.25003
  Prefactor  = 16.0522
  Prefactor  = 0.000216754
  Prefactor  = 18.0467
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 3.43837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.76953
  Prefactor  = 0.0001
  norm       = 3.73251
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 9.23391
  Normalizat = 0.736624
  Prefactor  = 0.85358
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.075     FROM HESSE     STATUS=OK           362 CALLS     2479 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .74294        .12592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.5898        .18157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.197        31.733        .75442E-04   -1.4645    
   4  norm          5.9462        2.1517        .63612E-04   -1.5220    
   5  Prefactor     1.2500        4.1215        .26847E-03   -1.5484    
   6  Prefactor     16.052        9.4261        .99967E-04   -1.4906    
   7  Prefactor     .21675E-03    2.2807        .35254E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.047        8.9439        .94278E-04   -1.4858    
   9  Prefactor     .10000E-03    8.3849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    24.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4384        3.6462        .14301E-03   -1.5337    
  12  Prefactor     .10000E-03    16.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.514        .91390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7695        2.0879        .11624E-03   -1.5442    
  16  Prefactor     .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7325        1.7350        .64929E-04   -1.5322    
  18  Prefactor     .10002E-03    23.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.2339        3.2962        .79552E-04   -1.5100    
  21  Normalizat    .73662        .16534        .21528E-03   -1.0246    
  22  Prefactor     .85358        .18702        .23442E-03   -.97783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67576e-09
Minuit parameter uncertainties:
  1  2.32411e-07
  2  7.64958e-06
  3  31.7515
  4  2.15173
  5  4.12247
  6  9.42698
  7  0.0326375
  8  8.94453
  9  1.50795e-05
  10  0.00129933
  11  3.64646
  12  4.64959e-05
  13  0.000198421
  14  0.000413433
  15  2.08795
  16  3.60347e-06
  17  1.73503
  18  0.00129102
  19  1.60027e-05
  20  3.29625
  21  0.165453
  22  0.187164
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.168e-04  3.264e-02  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:  8.536e-01  1.872e-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:  7.366e-01  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 4.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307991/likelihoodResults_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.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): 102
logL (Free Index) = 5774.07509772
delta logL = -1.42013559525e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5774.06932831
delta logL = 0.00575521538576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25642       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1641       1.0000          .0000       10.000    
     3 'Normalizat'    .73645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85277       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=   5774.069     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      453 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25573        6.7369        .23630E-02   -.21965E-03
   2  Index         2.1641        2.6239        .23799E-01   -.30442E-04
   3  Normalizat    .73646        .15923        .21530E-03   -.55708E-04
   4  Prefactor     .85277        .18688        .23452E-03   -.58171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.255727
  Index      = 2.16411
  Normalizat = 0.736458
  Prefactor  = 0.852773
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.069     FROM HESSE     STATUS=OK            25 CALLS      478 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25573        6.0055        .94521E-04   -1.5607    
   2  Index         2.1641        2.5010        .95197E-03   -.60308    
   3  Normalizat    .73646        .15938        .86121E-05   -1.0247    
   4  Prefactor     .85277        .18702        .93808E-05   -.97811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80078e-10
Minuit parameter uncertainties:
  1  2.47831
  2  2.68779
  3  0.159484
  4  0.187162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307991': 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) = 5774.06932827
delta logL = 0.00575525039403

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  2.557e-01  2.478e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.164e+00  2.688e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.528e-01  1.872e-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:  7.365e-01  1.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.731 -23.099

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/307991/cmap_HighResolution_638236801_638496001_4FGL_J0218.9-2305_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2021-08-15 17:55:52.959765', job_id='307991', GAL2='0.85', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1629075352.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.76e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1539' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 307991: <4FGL_J0218.9-2305_daily_bin1539> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin1539> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 17:40:29 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:41:18 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:41:18 2021
Terminated at Sun Aug 15 17:55:54 2021
Results reported at Sun Aug 15 17:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin1539 34.731 -23.0986 638236801 638496001 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 :                                   794.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            925 sec.

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

