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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin741
RA = 154.617, Dec = 5.4702
tmin = 431395201, tmax = 431654401
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='806245', job_status='RUN', time_executed='2021-09-01 17:38:21.793545', time_epoch_executed='1630543101.79' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806245/ft1_4FGL_J1018.4+0528_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806245/ft1_4FGL_J1018.4+0528_daily_bin741.fits outfile=/scratch/kocevski/806245/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin741.fits ra=154.617 dec=5.4702 rad=12.0 tmin=431395201.0 tmax=431654401.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 5.72
user 5.37
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.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/806245/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/806245/ltcube_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.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/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits
.....................!
real 16.85
user 16.37
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/806245/ltcube_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.fits outfile=/scratch/kocevski/806245/expmap_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.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/806245/ltcube_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.fits
.....................!
real 192.87
user 186.66
sys 5.43

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/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.fits scfile=/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits outfile=/scratch/kocevski/806245/cmap_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.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.90
user 0.39
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.fits scfile=/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits outfile=/scratch/kocevski/806245/cmap_HighResolution_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.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 1.43
user 0.40
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.fits', '/scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits', expMap='/scratch/kocevski/806245/expmap_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.fits', expCube='/scratch/kocevski/806245/ltcube_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806245/Model_4FGL_J1018.4+0528_daily_bin741.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/806245/ft1_filtered_4FGL_J1018.4+0528_daily_bin741.fits
Spacecraft file(s): /scratch/kocevski/806245/ft2_4FGL_J1018.4+0528_daily_bin741.fits
Exposure map: /scratch/kocevski/806245/expmap_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.fits
Exposure cube: /scratch/kocevski/806245/ltcube_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806245/Model_4FGL_J1018.4+0528_daily_bin741.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) = 6790.47224438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1451       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6595       1.0000         .10000E-03   10000.    
     6 'norm      '    8.2948       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.423       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19893E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.117       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3616       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56792E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.580       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .38359       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.7203       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=   6790.461     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2093 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1453        1.5805        .13225E-07   -.24057E-03
   2  norm          1.0656        .60964       -.17962E-07   -.72254E-03
   3  Prefactor     .10000E-03    15.536        .54771E-07** at limit **
   4  Prefactor     .10000E-03    10.708       -.18309E-06** at limit **
   5  Prefactor     1.6574        119.50        .26324E-04   -.54159E-04
   6  norm          8.2963        16.204        .58627E-06   -.86240E-05
   7  Prefactor     19.541        24.882        .13751E-05    .26937E-04
   8  Prefactor     .10000E-03    94.204        .35818E-06** at limit **
   9  Prefactor     6.0033        367.49       -.16467E-04   -.10751E-04
  10  Prefactor     .10000E-03    6.1839        .16909E-08** at limit **
  11  norm          3.9607        1.5546       -.29301E-07   -.12602E-03
  12  Prefactor     8.2870        5.9124       -.49005E-07   -.24039E-03
  13  Prefactor     8.4192        4.9756        .20506E-06   -.23135E-03
  14  Prefactor     .10000E-03    8.8322        .61252E-07** at limit **
  15  Prefactor     20.114        12.499        .29432E-06   -.14869E-03
  16  norm          1.3615        .68084        .31421E-07   -.12558E-02
  17  Prefactor     .10000E-03    6.4262        .75095E-06** at limit **
  18  Prefactor     98.584        45.389       -.53310E-05   -.40518E-04
  19  Normalizat    .38345        .24843       -.17827E-05   -.15645E-03
  20  Prefactor     1.7204        .20441        .33398E-06   -.15946E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14529
  norm       = 1.06556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6574
  norm       = 8.29632
  Prefactor  = 19.5412
  Prefactor  = 0.0001
  Prefactor  = 6.00327
  Prefactor  = 0.0001
  norm       = 3.96065
  Prefactor  = 8.28697
  Prefactor  = 8.41923
  Prefactor  = 0.0001
  Prefactor  = 20.1138
  norm       = 1.36147
  Prefactor  = 0.000100002
  Prefactor  = 98.5841
  Normalizat = 0.383452
  Prefactor  = 1.72037
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.461     FROM HESSE     STATUS=OK           297 CALLS     2390 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1453        1.5666        .68792E-04   -1.5353    
   2  norm          1.0656        .59609        .46018E-04   -1.5502    
   3  Prefactor     .10000E-03    15.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6574        111.97        .32752E-03   -1.5450    
   6  norm          8.2963        16.170        .13920E-03   -1.5132    
   7  Prefactor     19.541        23.732        .90880E-04   -1.4824    
   8  Prefactor     .10000E-03    95.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0033        336.81        .15796E-03   -1.5218    
  10  Prefactor     .10000E-03    6.1840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9607        1.5521        .61893E-04   -1.5310    
  12  Prefactor     8.2870        5.9048        .13927E-03   -1.5132    
  13  Prefactor     8.4192        4.9408        .12838E-03   -1.5128    
  14  Prefactor     .10000E-03    9.0127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.114        12.305        .89300E-04   -1.4811    
  16  norm          1.3615        .62246        .42631E-04   -1.5475    
  17  Prefactor     .10000E-03    43.356        .36515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     98.584        45.317        .40488E-04   -1.3719    
  19  Normalizat    .38345        .24566        .47647E-03   -1.1817    
  20  Prefactor     1.7204        .21050        .21609E-03   -.71541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83409e-10
Minuit parameter uncertainties:
  1  1.56659
  2  0.59609
  3  9.26745e-06
  4  3.04624e-05
  5  27.298
  6  16.1784
  7  23.7436
  8  0.000153244
  9  90.4724
  10  1.28726e-05
  11  1.55209
  12  5.90521
  13  4.94105
  14  1.76634e-05
  15  12.3068
  16  0.622467
  17  0.000648542
  18  45.3333
  19  0.246354
  20  0.210611
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  6.003e+00  9.047e+01  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.720e+00  2.106e-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:  3.835e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806245/likelihoodResults_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.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) = 6790.45840832
delta logL = 0.00237882573947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6790.45588896
delta logL = 0.00489818299411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.284       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9545       1.0000          .0000       10.000    
     3 'Normalizat'    .38437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7195       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6790.456     FROM MIGRAD    STATUS=FAILED        87 CALLS      330 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.238        133.87        .11926E-03   -.11170E-03
   2  Index         1.9535        2.5460        .59004E-02   -.24156E-03
   3  Normalizat    .38445        .23094        .47586E-03   -.12521E-02
   4  Prefactor     1.7195        .20905        .21612E-03   -.25502E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6790.456     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      410 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.238        133.87        .11338E-02   -1.5037    
   2  Index         1.9535        2.5460        .24852E-02   -.65518    
   3  Normalizat    .38445        .23094        .36034E-03   -1.1811    
   4  Prefactor     1.7195        .20905        .15542E-03   -.71564    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6790.456     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      438 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.234        128.78        .23852E-04   -.37940E-04
   2  Index         1.9539        2.5056        .23602E-03    .33815E-05
   3  Normalizat    .38445        .23092        .95172E-04   -.82424E-05
   4  Prefactor     1.7195        .20904        .43225E-04   -.12467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2342
  Index      = 1.95392
  Normalizat = 0.384455
  Prefactor  = 1.7195
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.456     FROM HESSE     STATUS=OK            23 CALLS      461 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.234        128.56        .47704E-05   -1.5037    
   2  Index         1.9539        2.5044        .47203E-04   -.65507    
   3  Normalizat    .38445        .23075        .38069E-05   -1.1811    
   4  Prefactor     1.7195        .20894        .86449E-05   -.71564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40801e-11
Minuit parameter uncertainties:
  1  76.2151
  2  2.71067
  3  0.231325
  4  0.20905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806245': 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) = 6790.45588827
delta logL = 0.00489887497224

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.123e+01  7.622e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.954e+00  2.711e+00  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.720e+00  2.090e-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:  3.845e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 154.617 5.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/806245/cmap_HighResolution_431395201_431654401_4FGL_J1018.4+0528_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-01 17:48:49.309223', job_id='806245', GAL2='1.72', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1630543729.31', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.72', dlogl='4.90e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='741' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:48:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 806245: <4FGL_J1018.4+0528_daily_bin741> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin741> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:30 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:35:38 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:35:38 2021
Terminated at Wed Sep  1 17:48:52 2021
Results reported at Wed Sep  1 17:48:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin741 154.617 5.4702 431395201 431654401 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 :                                   620.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            802 sec.

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

