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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin109
RA = 154.617, Dec = 5.4702
tmin = 267580801, tmax = 267840001
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='802398', job_status='RUN', time_executed='2021-09-01 17:24:38.344945', time_epoch_executed='1630542278.34' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802398

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802398/ft1_4FGL_J1018.4+0528_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802398/ft2_4FGL_J1018.4+0528_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802398/ft1_4FGL_J1018.4+0528_daily_bin109.fits outfile=/scratch/kocevski/802398/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin109.fits ra=154.617 dec=5.4702 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.41
user 1.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802398/ft1_filtered_4FGL_J1018.4+0528_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/802398/ft2_4FGL_J1018.4+0528_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/802398/ltcube_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.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/802398/ft2_4FGL_J1018.4+0528_daily_bin109.fits
.....................!
real 19.63
user 19.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802398/ft1_filtered_4FGL_J1018.4+0528_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/802398/ft2_4FGL_J1018.4+0528_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/802398/ltcube_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.fits outfile=/scratch/kocevski/802398/expmap_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.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/802398/ltcube_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.fits
.....................!
real 191.63
user 186.89
sys 4.19

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/802398/ft1_filtered_4FGL_J1018.4+0528_daily_bin109.fits scfile=/scratch/kocevski/802398/ft2_4FGL_J1018.4+0528_daily_bin109.fits outfile=/scratch/kocevski/802398/cmap_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802398/ft1_filtered_4FGL_J1018.4+0528_daily_bin109.fits scfile=/scratch/kocevski/802398/ft2_4FGL_J1018.4+0528_daily_bin109.fits outfile=/scratch/kocevski/802398/cmap_HighResolution_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81065       1.0000         .10000E-03   10000.    
     2 'norm      '    .24153       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6711       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.558       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9936       1.0000         .10000E-03   10000.    
     8 'Prefactor '    206.61       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.268       1.0000         .10000E-03   10000.    
    16 'norm      '    .98726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.392       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2884       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75626       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=   6294.371     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2689 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81055        1.3527        .96097E-07   -.22093E-04
   2  norm          .24162        .56615        .71551E-07   -.13642E-03
   3  Prefactor     5.6697        11.673        .54620E-06    .59284E-04
   4  Prefactor     30.539        42.931        .18546E-05   -.43626E-04
   5  Prefactor     .10000E-03    22.529        .44864E-07** at limit **
   6  norm          .10000E-03    7.4107       -.25418E-06** at limit **
   7  Prefactor     4.0139        16.587       -.13568E-04   -.18750E-03
   8  Prefactor     206.60        94.115       -.10417E-06    .45429E-05
   9  Prefactor     56.542        106.00        .25880E-04   -.32712E-04
  10  Prefactor     .10000E-03    14.169       -.31482E-05** at limit **
  11  norm          .10000E-03    .36218        .41164E-07** at limit **
  12  Prefactor     1.8396        7.5993        .72797E-05   -.23381E-03
  13  Prefactor     11.175        5.1953        .20993E-07   -.48797E-04
  14  Prefactor     9.3070        7.1485        .19537E-07    .35494E-05
  15  Prefactor     40.266        13.735       -.30537E-07   -.47291E-04
  16  norm          .98727        .64289       -.84884E-08   -.29911E-03
  17  Prefactor     .10000E-03    12.756        .63521E-06** at limit **
  18  Prefactor     11.390        25.511        .43641E-06   -.61409E-05
  19  Normalizat    1.2887        .21554        .69861E-06    .12648E-03
  20  Prefactor     .75602        .16103       -.22888E-05    .99390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.810546
  norm       = 0.241621
  Prefactor  = 5.6697
  Prefactor  = 30.5388
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.01395
  Prefactor  = 206.605
  Prefactor  = 56.5418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.83963
  Prefactor  = 11.1746
  Prefactor  = 9.30703
  Prefactor  = 40.2657
  norm       = 0.987267
  Prefactor  = 0.0001
  Prefactor  = 11.3896
  Normalizat = 1.28869
  Prefactor  = 0.756023
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.371     FROM HESSE     STATUS=OK           299 CALLS     2988 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81055        1.3374        .10990E-03   -1.5528    
   2  norm          .24162        .56622        .83609E-04   -1.5610    
   3  Prefactor     5.6697        11.634        .16868E-03   -1.5232    
   4  Prefactor     30.539        42.915        .72480E-04   -1.4602    
   5  Prefactor     .10000E-03    22.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.4140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0139        16.591        .20182E-03   -1.5307    
   8  Prefactor     206.60        94.795        .14060E-03   -1.2823    
   9  Prefactor     56.542        106.25        .26634E-03   -1.4203    
  10  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .36826        .46600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8396        7.7999        .15379E-02   -1.5437    
  13  Prefactor     11.175        5.2009        .11100E-03   -1.5039    
  14  Prefactor     9.3070        7.1574        .13136E-03   -1.5098    
  15  Prefactor     40.266        13.717        .63167E-04   -1.4438    
  16  norm          .98727        .63248        .48291E-04   -1.5509    
  17  Prefactor     .10000E-03    12.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.390        25.513        .11870E-03   -1.5033    
  19  Normalizat    1.2887        .25541        .25594E-03   -.83905    
  20  Prefactor     .75602        .18851        .26329E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83989e-10
Minuit parameter uncertainties:
  1  1.33742
  2  0.566234
  3  11.6382
  4  42.9586
  5  7.81667e-05
  6  9.61744e-06
  7  16.3286
  8  94.8651
  9  106.61
  10  0.000163418
  11  2.07885e-06
  12  7.57746
  13  5.20107
  14  7.15804
  15  13.7178
  16  0.632484
  17  5.91818e-05
  18  25.5375
  19  0.255658
  20  0.188674
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.654e+01  1.066e+02  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:  7.560e-01  1.887e-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:  1.289e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802398/likelihoodResults_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.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) = 6293.81661516
delta logL = 0.554583734266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6293.79437843
delta logL = 0.576820466243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.044       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1136       1.0000          .0000       10.000    
     3 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78239       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=   6293.794     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      316 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.041        1084.8        .94288E-04   -.51533E-03
   2  Index         3.1138        6.4913        .42441E-02   -.24120E-03
   3  Normalizat    1.2366        .27476        .25993E-03   -.28586E-03
   4  Prefactor     .78290        .22578        .25906E-03   -.34217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.041
  Index      = 3.11377
  Normalizat = 1.23656
  Prefactor  = 0.782899
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.794     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.041        38.904        .37715E-05   -1.4858    
   2  Index         3.1138        .88675        .16976E-03   -.38682    
   3  Normalizat    1.2366        .23506        .51985E-04   -.85480    
   4  Prefactor     .78290        .18767        .51812E-04   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37177e-10
Minuit parameter uncertainties:
  1  38.9588
  2  0.892259
  3  0.235264
  4  0.187824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802398': 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) = 6293.79437442
delta logL = 0.576824475002

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.804e+01  3.896e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.114e+00  8.923e-01  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:  7.829e-01  1.878e-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:  1.237e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 154.617 5.470
Photon Index (Free Index): 3.11 +/- 0.89
Photon Flux (Free Index): 8.95e-08 +/- 7.17e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.34e-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/802398/cmap_HighResolution_267580801_267840001_4FGL_J1018.4+0528_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='5.77e-01', photon_flux2='8.95e-08', job_status='DONE', time_completed='2021-09-01 17:35:02.782564', photon_index_error2='0.89', photon_index2='3.11', ts='0.88', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.34e-05', EG='1.29', time_epoch_completed='1630542902.78', return_code='0', job_id='802398', GAL2='0.78', EG2='1.24', return_code2='0', photon_flux_error2='7.17e-08', ts2='2.13', photon_index='2.28' WHERE bin_id='109' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:35:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 802398: <4FGL_J1018.4+0528_daily_bin109> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin109> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:21:07 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:20 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:22:20 2021
Terminated at Wed Sep  1 17:35:04 2021
Results reported at Wed Sep  1 17:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin109 154.617 5.4702 267580801 267840001 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            837 sec.

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

