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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin344
RA = 154.617, Dec = 5.4702
tmin = 328492801, tmax = 328752001
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='803776', job_status='RUN', time_executed='2021-09-01 17:30:31.029089', time_epoch_executed='1630542631.03' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803776/ft1_4FGL_J1018.4+0528_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803776/ft1_4FGL_J1018.4+0528_daily_bin344.fits outfile=/scratch/kocevski/803776/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin344.fits ra=154.617 dec=5.4702 rad=12.0 tmin=328492801.0 tmax=328752001.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.44
user 3.21
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.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/803776/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin344.fits evtable="EVENTS" outfile="/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.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 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits" evtable="EVENTS" scfile=/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits sctable="SC_DATA" outfile=/scratch/kocevski/803776/ltcube_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.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/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits
.....................!
real 16.12
user 15.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/803776/ltcube_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.fits outfile=/scratch/kocevski/803776/expmap_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.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/803776/ltcube_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.fits
.....................!
real 190.63
user 186.28
sys 3.91

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

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits scfile=/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits outfile=/scratch/kocevski/803776/cmap_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.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=154.617 yref=5.4702 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 0.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits scfile=/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits outfile=/scratch/kocevski/803776/cmap_HighResolution_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.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=154.617 yref=5.4702 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 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803776/Model_4FGL_J1018.4+0528_daily_bin344.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/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits.....................!
real 50.82
user 49.46
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits', '/scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits', expMap='/scratch/kocevski/803776/expmap_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.fits', expCube='/scratch/kocevski/803776/ltcube_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803776/Model_4FGL_J1018.4+0528_daily_bin344.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/803776/ft1_filtered_4FGL_J1018.4+0528_daily_bin344.fits
Spacecraft file(s): /scratch/kocevski/803776/ft2_4FGL_J1018.4+0528_daily_bin344.fits
Exposure map: /scratch/kocevski/803776/expmap_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.fits
Exposure cube: /scratch/kocevski/803776/ltcube_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803776/Model_4FGL_J1018.4+0528_daily_bin344.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) = 5164.28892458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4586       1.0000         .10000E-03   10000.    
     2 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.933       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.441       1.0000         .10000E-03   10000.    
     6 'norm      '    16.320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7483       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5717       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.216       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4041       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .57409       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2761       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5164.278     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2050 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4582        1.3269       -.23253E-07   -.39368E-03
   2  norm          .10000E-03    .30320       -.12770E-06** at limit **
   3  Prefactor     29.193        18.602       -.10057E-04    .12629E-05
   4  Prefactor     14.957        28.788        .36905E-04    .14767E-04
   5  Prefactor     18.272        44.762       -.11363E-04   -.21290E-04
   6  norm          16.318        22.403        .99417E-05   -.41712E-05
   7  Prefactor     .10000E-03    4.2227        .18594E-06** at limit **
   8  Prefactor     66.685        61.168       -.93004E-05    .21045E-05
   9  Prefactor     .10000E-03    38.256        .91083E-08** at limit **
  10  Prefactor     .10000E-03    5.8963        .25659E-06** at limit **
  11  norm          1.7484        1.4468       -.15784E-06   -.28541E-03
  12  Prefactor     .10000E-03    6.3398       -.48149E-06** at limit **
  13  Prefactor     3.5712        4.6485       -.13514E-05   -.47361E-03
  14  Prefactor     6.3155        7.5640        .22363E-05   -.10863E-03
  15  Prefactor     30.214        13.038       -.16145E-06    .70473E-05
  16  norm          3.4040        .86532       -.15196E-07    .81294E-04
  17  Prefactor     .10000E-03    2.7237        .29978E-07** at limit **
  18  Prefactor     .10000E-03    6.9832        .20750E-06** at limit **
  19  Normalizat    .57394        .22124        .39132E-05   -.11393E-04
  20  Prefactor     1.2764        .18203       -.12995E-05    .16115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45818
  norm       = 0.0001
  Prefactor  = 29.1934
  Prefactor  = 14.9566
  Prefactor  = 18.2725
  norm       = 16.3177
  Prefactor  = 0.0001
  Prefactor  = 66.6852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74841
  Prefactor  = 0.0001
  Prefactor  = 3.57122
  Prefactor  = 6.31553
  Prefactor  = 30.2143
  norm       = 3.40397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.573945
  Prefactor  = 1.27637
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.278     FROM HESSE     STATUS=OK           295 CALLS     2345 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4582        1.3072        .74517E-04   -1.5466    
   2  norm          .10000E-03    .50896        .75931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.193        18.612        .74153E-04   -1.4627    
   4  Prefactor     14.957        28.759        .10365E-03   -1.4934    
   5  Prefactor     18.272        44.763        .93268E-04   -1.4853    
   6  norm          16.318        22.381        .99142E-04   -1.4900    
   7  Prefactor     .10000E-03    4.2304        .14419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.685        61.179        .49145E-04   -1.4073    
   9  Prefactor     .10000E-03    38.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9000        .17042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7484        1.4395        .75487E-04   -1.5444    
  12  Prefactor     .10000E-03    6.4129        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5712        4.6197        .15449E-03   -1.5330    
  14  Prefactor     6.3155        7.5613        .15972E-03   -1.5205    
  15  Prefactor     30.214        12.973        .72889E-04   -1.4608    
  16  norm          3.4040        .86544        .32431E-04   -1.5339    
  17  Prefactor     .10000E-03    2.7250        .11580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .57394        .24270        .33824E-03   -1.0910    
  20  Prefactor     1.2764        .20269        .20798E-03   -.84012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20113e-10
Minuit parameter uncertainties:
  1  1.30724
  2  9.62268e-06
  3  18.6159
  4  28.7855
  5  44.8458
  6  22.3923
  7  3.5412e-05
  8  61.2366
  9  0.000216776
  10  2.20242e-05
  11  1.4395
  12  4.05622e-05
  13  4.62012
  14  7.56244
  15  12.9741
  16  0.865438
  17  7.27436e-07
  18  1.36139e-07
  19  0.243147
  20  0.202812
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.168e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.276e+00  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  5.739e-01  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803776/likelihoodResults_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.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) = 5164.27775598
delta logL = -0.000124141645756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5164.27763466
delta logL = -2.82280234387e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22752E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4877       1.0000          .0000       10.000    
     3 'Normalizat'    .57394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   5164.278     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      279 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10337E-03    5.2089        .18142E-01** at limit **
   2  Index         2.4016        6.9940        .50000        .11533E-04
   3  Normalizat    .57395        .20117E-02    .33824E-03   -.72600E-05
   4  Prefactor     1.2764        .17947E-02    .20798E-03   -.73247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010337
  Index      = 2.40161
  Normalizat = 0.573947
  Prefactor  = 1.27637
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.278     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10337E-03    77.860        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4016        6.1770        .50000       -.54647    
   3  Normalizat    .57395        .77547E-02    .13530E-04   -1.0910    
   4  Prefactor     1.2764        .69181E-02    .83192E-05   -.84012    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.25446e-10
Minuit parameter uncertainties:
  1  0.0324365
  2  192.849
  3  0.00775472
  4  0.00691807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803776': 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) = 5164.27763215
delta logL = -3.12582415063e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.034e-04  3.244e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.402e+00  1.928e+02  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.276e+00  6.918e-03  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  5.739e-01  7.755e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

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/803776/cmap_HighResolution_328492801_328752001_4FGL_J1018.4+0528_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-01 17:39:20.467008', job_id='803776', GAL2='1.28', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1630543160.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='-3.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='344' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:39:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 803776: <4FGL_J1018.4+0528_daily_bin344> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin344> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:44 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:27:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:27:03 2021
Terminated at Wed Sep  1 17:39:21 2021
Results reported at Wed Sep  1 17:39:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin344 154.617 5.4702 328492801 328752001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   529.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            817 sec.

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

