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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1357
RA = 19.6884, Dec = -8.808
tmin = 591062401, tmax = 591321601
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='536448', job_status='RUN', time_executed='2021-08-13 22:49:30.886874', time_epoch_executed='1628920170.89' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536448/ft1_4FGL_J0118.7-0848_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536448/ft1_4FGL_J0118.7-0848_daily_bin1357.fits outfile=/scratch/kocevski/536448/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1357.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=591062401.0 tmax=591321601.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 10.89
user 2.80
sys 8.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.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/536448/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1357.fits evtable="EVENTS" outfile="/scratch/kocevski/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.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 8.33
user 0.32
sys 7.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/536448/ltcube_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.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/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits
.....................!
real 24.96
user 15.18
sys 9.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/536448/ltcube_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.fits outfile=/scratch/kocevski/536448/expmap_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.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/536448/ltcube_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.fits
.....................!
real 201.90
user 185.82
sys 15.01

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/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits scfile=/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits outfile=/scratch/kocevski/536448/cmap_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.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 8.18
user 0.39
sys 7.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits scfile=/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits outfile=/scratch/kocevski/536448/cmap_HighResolution_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.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 8.19
user 0.40
sys 7.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536448/Model_4FGL_J0118.7-0848_daily_bin1357.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/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits......................!
real 31.41
user 20.01
sys 11.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits', '/scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits', expMap='/scratch/kocevski/536448/expmap_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.fits', expCube='/scratch/kocevski/536448/ltcube_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/536448/Model_4FGL_J0118.7-0848_daily_bin1357.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/536448/ft1_filtered_4FGL_J0118.7-0848_daily_bin1357.fits
Spacecraft file(s): /scratch/kocevski/536448/ft2_4FGL_J0118.7-0848_daily_bin1357.fits
Exposure map: /scratch/kocevski/536448/expmap_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.fits
Exposure cube: /scratch/kocevski/536448/ltcube_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/536448/Model_4FGL_J0118.7-0848_daily_bin1357.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) = 1052.76007355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    15.871       1.0000         .10000E-03   10000.    
     3 'norm      '    .11722E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    127.91       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41288E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10718E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .33561       1.0000         .10000E-03   10000.    
    15 'norm      '    10.264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28767       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1084       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .34253       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=   1052.748     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1732 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1957        .20746E-06** at limit **
   2  norm          15.895        15.413        .54880E-06    .31653E-04
   3  norm          .10000E-03    23.682        .24949E-06** at limit **
   4  Prefactor     .10000E-03    59.171        .81773E-06** at limit **
   5  Prefactor     127.97        123.91       -.11630E-04    .23737E-04
   6  Prefactor     .10001E-03    311.18       -.38692E-04** at limit **
   7  norm          .10000E-03    11.762        .20878E-06** at limit **
   8  Prefactor     .10001E-03    138.50        .97586E-05** at limit **
   9  Prefactor     30.679        65.189       -.14248E-03    .65225E-04
  10  Prefactor     5.2038        7.2734       -.11146E-05    .10648E-03
  11  Prefactor     .10000E-03    83.097       -.31302E-05** at limit **
  12  Prefactor     .10000E-03    30.381        .10779E-05** at limit **
  13  norm          .10000E-03    21.697        .23523E-06** at limit **
  14  norm          .33465        2.6277       -.37524E-05   -.91192E-04
  15  norm          10.252        13.505       -.58455E-06    .30672E-03
  16  Prefactor     .10179E-03    7302.5       -.51498E-03** at limit **
  17  Normalizat    1.1085        .37727        .26418E-05    .60442E-03
  18  Prefactor     .34286        .34539        .31672E-04    .37261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.8954
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 127.968
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 30.6788
  Prefactor  = 5.20378
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.334655
  norm       = 10.2517
  Prefactor  = 0.000101794
  Normalizat = 1.10847
  Prefactor  = 0.342859
 **********
 **   18 **HESSE 
 **********

 FCN=   1052.748     FROM HESSE     STATUS=OK           236 CALLS     1968 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2147        .96112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.895        15.394        .10054E-03   -1.4910    
   3  norm          .10000E-03    23.736        .15424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     127.97        123.97        .17798E-03   -1.3441    
   6  Prefactor     .10001E-03    312.12        .19455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.762        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    138.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.679        65.258        .72412E-04   -1.4600    
  10  Prefactor     5.2038        7.2630        .98778E-04   -1.5252    
  11  Prefactor     .10000E-03    83.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.546        .17474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    21.700        .14768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .33465        3.7361        .90544E-03   -1.5592    
  15  norm          10.252        13.480        .12507E-03   -1.5067    
  16  Prefactor     .10179E-03    7354.3        .41483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1085        .41662        .19653E-03   -.89480    
  18  Prefactor     .34286        .37976        .31456E-03   -1.1983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46687e-09
Minuit parameter uncertainties:
  1  8.28876e-05
  2  15.3981
  3  0.00010718
  4  0.000570144
  5  124.223
  6  0.00323721
  7  4.82895e-05
  8  0.00226506
  9  65.4105
  10  7.26424
  11  0.000156174
  12  0.000721942
  13  3.29997e-05
  14  2.23619
  15  13.484
  16  0.202588
  17  0.417864
  18  0.382575
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.562e-04  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:  3.429e-01  3.826e-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:  1.108e+00  4.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/536448/likelihoodResults_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.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) = 1052.74763783
delta logL = -5.71823143218e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1052.74758116
delta logL = -5.14401790497e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2147       1.0000          .0000       10.000    
     3 'Normalizat'    1.1085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34286       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=   1052.748     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10809E-03    66.742        .18142E-01** at limit **
   2  Index         3.0359        5.6632        .50000        .46819E-05
   3  Normalizat    1.1085        .95673E-02    .19653E-03   -.21560E-04
   4  Prefactor     .34286        .88921E-02    .31453E-03   -.46175E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108094
  Index      = 3.03591
  Normalizat = 1.10847
  Prefactor  = 0.342857
 **********
 **   18 **HESSE 
 **********

 FCN=   1052.748     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10809E-03    562.21        .23484E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0359        5.4905        .50000       -.40369    
   3  Normalizat    1.1085        .28215E-01    .39306E-04   -.89480    
   4  Prefactor     .34286        .26224E-01    .12581E-04   -1.1983    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12822e-08
Minuit parameter uncertainties:
  1  0.136212
  2  1301.12
  3  0.0282159
  4  0.0262245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536448': 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): 102
logL (Free Index) = 1052.74758102
delta logL = -3.80179699278e-07

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.081e-04  1.362e-01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.036e+00  1.301e+03  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:  3.429e-01  2.622e-02  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:  1.108e+00  2.822e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.688 -8.808

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/536448/cmap_HighResolution_591062401_591321601_4FGL_J0118.7-0848_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-02', job_status='DONE', photon_flux_upper_limit='2.95e-07', time_completed='2021-08-13 22:57:40.374238', job_id='536448', GAL2='0.34', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1628920660.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='-3.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1357' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 536448: <4FGL_J0118.7-0848_daily_bin1357> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin1357> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 22:45:36 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:47:14 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:14 2021
Terminated at Fri Aug 13 22:57:42 2021
Results reported at Fri Aug 13 22:57:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1357 19.6884 -8.808 591062401 591321601 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 :                                   603.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            726 sec.

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

