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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1392
RA = 19.6884, Dec = -8.808
tmin = 600134401, tmax = 600393601
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='536499', job_status='RUN', time_executed='2021-08-13 22:51:42.256099', time_epoch_executed='1628920302.26' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536499/ft1_4FGL_J0118.7-0848_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536499/ft1_4FGL_J0118.7-0848_daily_bin1392.fits outfile=/scratch/kocevski/536499/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1392.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=600134401.0 tmax=600393601.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.36
user 4.64
sys 2.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.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/536499/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.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.00
user 0.33
sys 2.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/536499/ltcube_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.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/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits
.....................!
real 15.33
user 12.00
sys 3.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/536499/ltcube_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.fits outfile=/scratch/kocevski/536499/expmap_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.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/536499/ltcube_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.fits
.....................!
real 194.91
user 185.45
sys 8.69

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
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.7-0848 @ 19.6884 -8.808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits scfile=/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits outfile=/scratch/kocevski/536499/cmap_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.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=19.6884 yref=-8.808 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.92
user 0.38
sys 2.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits scfile=/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits outfile=/scratch/kocevski/536499/cmap_HighResolution_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.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=19.6884 yref=-8.808 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.40
sys 2.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536499/Model_4FGL_J0118.7-0848_daily_bin1392.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 GAL_V02
Working on...
/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits......................!
real 47.12
user 42.02
sys 4.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits', '/scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits', expMap='/scratch/kocevski/536499/expmap_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.fits', expCube='/scratch/kocevski/536499/ltcube_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/536499/Model_4FGL_J0118.7-0848_daily_bin1392.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.7-0848'

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.571e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/536499/ft1_filtered_4FGL_J0118.7-0848_daily_bin1392.fits
Spacecraft file(s): /scratch/kocevski/536499/ft2_4FGL_J0118.7-0848_daily_bin1392.fits
Exposure map: /scratch/kocevski/536499/expmap_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.fits
Exposure cube: /scratch/kocevski/536499/ltcube_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/536499/Model_4FGL_J0118.7-0848_daily_bin1392.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) = 4066.19224497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.366       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7588       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9754       1.0000         .10000E-03   10000.    
    13 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2529       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6368       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .55964       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4066.186     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1734 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3392        .22865E-06** at limit **
   2  norm          .10000E-03    3.3210        .85278E-06** at limit **
   3  norm          5.1154        6.7938        .48599E-06    .14095E-03
   4  Prefactor     .10000E-03    14.288        .30172E-07** at limit **
   5  Prefactor     .10000E-03    22.060       -.28713E-06** at limit **
   6  Prefactor     .10000E-03    14.439       -.36047E-06** at limit **
   7  norm          .10010E-03    .83918       -.16306E-05** at limit **
   8  Prefactor     70.352        57.659        .33076E-06   -.20085E-05
   9  Prefactor     4.1156        6.3518        .18178E-05    .12691E-04
  10  Prefactor     1.7625        6.1787        .10529E-04   -.83036E-04
  11  Prefactor     34.375        51.419       -.63470E-05   -.19196E-03
  12  Prefactor     2.9769        10.376        .50569E-05   -.22454E-03
  13  norm          .10000E-03    15.235       -.52289E-06** at limit **
  14  norm          1.2531        1.7221        .23441E-06    .24902E-03
  15  norm          7.6363        6.5874       -.39241E-06   -.81361E-03
  16  Prefactor     .10000E-03    36.548        .41810E-06** at limit **
  17  Normalizat    .55945        .21610       -.37315E-05   -.16499E-03
  18  Prefactor     1.4081        .21098       -.90850E-06   -.25995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.11535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100102
  Prefactor  = 70.3515
  Prefactor  = 4.11563
  Prefactor  = 1.76254
  Prefactor  = 34.3752
  Prefactor  = 2.97695
  norm       = 0.000100003
  norm       = 1.25311
  norm       = 7.6363
  Prefactor  = 0.0001
  Normalizat = 0.55945
  Prefactor  = 1.4081
 **********
 **   18 **HESSE 
 **********

 FCN=   4066.186     FROM HESSE     STATUS=OK           246 CALLS     1980 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3515        .72056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.3974        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1154        6.7944        .17774E-03   -1.5256    
   4  Prefactor     .10000E-03    14.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10010E-03    21.924        .10353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.352        57.549        .47854E-04   -1.4028    
   9  Prefactor     4.1156        6.3058        .91482E-03   -1.5302    
  10  Prefactor     1.7625        6.2082        .13264E-02   -1.5442    
  11  Prefactor     34.375        51.502        .68327E-04   -1.4535    
  12  Prefactor     2.9769        10.363        .11769E-02   -1.5363    
  13  norm          .10000E-03    15.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2531        1.6906        .93282E-04   -1.5484    
  15  norm          7.6363        6.6041        .14511E-03   -1.5155    
  16  Prefactor     .10000E-03    36.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .55945        .24661        .31766E-03   -1.0973    
  18  Prefactor     1.4081        .24379        .20834E-03   -.80147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67948e-09
Minuit parameter uncertainties:
  1  2.33496e-05
  2  0.000131209
  3  6.79547
  4  0.000141531
  5  9.31913e-05
  6  5.88395e-05
  7  0.00299577
  8  57.5947
  9  6.30678
  10  6.21047
  11  51.5683
  12  10.3692
  13  0.000437382
  14  1.69065
  15  6.60473
  16  6.85962e-05
  17  0.24709
  18  0.243988
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  3.438e+01  5.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.408e+00  2.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  5.595e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 19.688 -8.808
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/536499/likelihoodResults_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.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) = 4065.97154618
delta logL = 0.214780180602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4065.96460116
delta logL = 0.221725198408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.465       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3884       1.0000          .0000       10.000    
     3 'Normalizat'    .52795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   4065.965     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      307 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.468        49.244        .90781E-04    .94237E-04
   2  Index         3.3888        1.6440        .73254E-02    .46285E-04
   3  Normalizat    .52769        .24809        .32641E-03    .22745E-03
   4  Prefactor     1.4261        .24336        .20714E-03    .37452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4685
  Index      = 3.38876
  Normalizat = 0.527689
  Prefactor  = 1.42611
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.468        38.512        .36312E-05   -1.4825    
   2  Index         3.3888        1.2926        .29302E-03   -.32810    
   3  Normalizat    .52769        .24734        .13056E-04   -1.1115    
   4  Prefactor     1.4261        .24256        .41428E-04   -.79631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63494e-10
Minuit parameter uncertainties:
  1  38.5617
  2  1.30918
  3  0.247858
  4  0.242758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536499': 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) = 4065.96460054
delta logL = 0.221725822921

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.947e+01  3.856e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.389e+00  1.309e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.426e+00  2.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  5.277e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 3.39 +/- 1.31
Photon Flux (Free Index): 6.50e-08 +/- 7.43e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.21e-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/536499/cmap_HighResolution_600134401_600393601_4FGL_J0118.7-0848_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='2.22e-01', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-08-13 23:00:49.081972', photon_index_error2='1.31', photon_index2='3.39', ts='0.65', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.21e-05', EG='0.56', time_epoch_completed='1628920849.08', return_code='0', job_id='536499', GAL2='1.43', EG2='0.53', return_code2='0', photon_flux_error2='7.43e-08', ts2='1.13', photon_index='2.60' WHERE bin_id='1392' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 536499: <4FGL_J0118.7-0848_daily_bin1392> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin1392> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 22:45:39 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:47:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 22:47:32 2021
Terminated at Fri Aug 13 23:00:50 2021
Results reported at Fri Aug 13 23:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1392 19.6884 -8.808 600134401 600393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0118.7-0848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.07 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             262.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            911 sec.

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

