/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 93 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 = 7298
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1237
RA = 154.548, Dec = 19.0963
tmin = 559958401, tmax = 560217601
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='792635', job_status='RUN', time_executed='2021-09-01 16:54:00.203350', time_epoch_executed='1630540440.2' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792635/ft1_4FGL_J1018.1+1905_daily_bin1237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792635/ft1_4FGL_J1018.1+1905_daily_bin1237.fits outfile=/scratch/kocevski/792635/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1237.fits ra=154.548 dec=19.0963 rad=12.0 tmin=559958401.0 tmax=560217601.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.78
user 3.44
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.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/792635/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1237.fits evtable="EVENTS" outfile="/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.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.61
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits" evtable="EVENTS" scfile=/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits sctable="SC_DATA" outfile=/scratch/kocevski/792635/ltcube_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.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/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits
.....................!
real 14.42
user 14.03
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits evtable="EVENTS" scfile=/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits sctable="SC_DATA" expcube=/scratch/kocevski/792635/ltcube_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.fits outfile=/scratch/kocevski/792635/expmap_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.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/792635/ltcube_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.fits
.....................!
real 193.25
user 188.19
sys 4.48

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

Setting source of interest to:
4FGL J1018.1+1905 @ 154.548 19.0963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits scfile=/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits outfile=/scratch/kocevski/792635/cmap_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.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.548 yref=19.0963 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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits scfile=/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits outfile=/scratch/kocevski/792635/cmap_HighResolution_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.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.548 yref=19.0963 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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits evtable="EVENTS" scfile=/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792635/Model_4FGL_J1018.1+1905_daily_bin1237.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/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits.....................!
real 44.02
user 42.73
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits', '/scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits', expMap='/scratch/kocevski/792635/expmap_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.fits', expCube='/scratch/kocevski/792635/ltcube_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792635/Model_4FGL_J1018.1+1905_daily_bin1237.xml', optimizer='MINUIT')

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

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/792635/ft1_filtered_4FGL_J1018.1+1905_daily_bin1237.fits
Spacecraft file(s): /scratch/kocevski/792635/ft2_4FGL_J1018.1+1905_daily_bin1237.fits
Exposure map: /scratch/kocevski/792635/expmap_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.fits
Exposure cube: /scratch/kocevski/792635/ltcube_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792635/Model_4FGL_J1018.1+1905_daily_bin1237.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) = 4553.77284835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5589       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48847       1.0000         .10000E-03   10000.    
     7 'norm      '    7.6542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3228       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3392       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .66888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4553.772     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1575 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.960       -.65733E-06** at limit **
   2  norm          1.5588        2.5136       -.20814E-06   -.24690E-03
   3  Prefactor     22.145        66.575       -.66944E-04    .27719E-05
   4  Prefactor     .10000E-03    14.682       -.11518E-05** at limit **
   5  Prefactor     .10000E-03    5.4938        .11023E-05** at limit **
   6  Prefactor     .48821        1.7326       -.86085E-06   -.12395E-02
   7  norm          7.6544        7.7256        .85653E-07   -.65919E-04
   8  Prefactor     .10000E-03    99.944        .65798E-06** at limit **
   9  Prefactor     55.430        51.948       -.13239E-05    .65944E-05
  10  Prefactor     .10000E-03    6.3667       -.59246E-07** at limit **
  11  Prefactor     .10000E-03    .95641       -.58020E-08** at limit **
  12  Prefactor     .10000E-03    3.2227       -.15083E-06** at limit **
  13  Prefactor     3.3241        10.074        .24933E-05   -.21471E-03
  14  Prefactor     8.3763        8.3009       -.13342E-05   -.39675E-05
  15  Prefactor     .10000E-03    14.909       -.14773E-06** at limit **
  16  Normalizat    1.3394        .19971        .16949E-05   -.58812E-04
  17  Prefactor     .66875        .18355        .14717E-05    .35717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.55881
  Prefactor  = 22.1455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.488213
  norm       = 7.65442
  Prefactor  = 0.0001
  Prefactor  = 55.4301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32407
  Prefactor  = 8.37632
  Prefactor  = 0.0001
  Normalizat = 1.33939
  Prefactor  = 0.668748
 **********
 **   18 **HESSE 
 **********

 FCN=   4553.772     FROM HESSE     STATUS=OK           221 CALLS     1796 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5588        2.4834        .13206E-03   -1.5458    
   3  Prefactor     22.145        66.644        .85039E-04   -1.4766    
   4  Prefactor     .10000E-03    14.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5847        .15447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .48821        1.7301        .16008E-03   -1.5568    
   7  norm          7.6544        7.7230        .14495E-03   -1.5155    
   8  Prefactor     .10000E-03    99.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.430        51.994        .53878E-04   -1.4218    
  10  Prefactor     .10000E-03    6.4391        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .97996        .12876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2285        .11831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3241        10.029        .22206E-03   -1.5343    
  14  Prefactor     8.3763        8.2456        .13851E-03   -1.5129    
  15  Prefactor     .10000E-03    14.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3394        .23611        .21578E-03   -.82398    
  17  Prefactor     .66875        .21598        .28115E-03   -1.0476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25367e-09
Minuit parameter uncertainties:
  1  0.000333375
  2  2.48358
  3  66.8688
  4  2.51354e-05
  5  0.00010017
  6  1.73025
  7  7.72402
  8  3.36323e-05
  9  52.0362
  10  4.66862e-05
  11  7.47001e-06
  12  7.93397e-06
  13  10.0343
  14  8.2467
  15  9.06166e-05
  16  0.236305
  17  0.216245
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  5.543e+01  5.204e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  6.687e-01  2.162e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.339e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 2.21e-05

TS (Fixed Index): 1.69
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792635/likelihoodResults_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.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) = 4552.80631758
delta logL = 0.965388426455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4552.79563303
delta logL = 0.976072977405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.775       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9819       1.0000          .0000       10.000    
     3 'Normalizat'    1.2751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   4552.796     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      313 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.752        39.201        .10420E-03    .21341E-03
   2  Index         2.9830        1.0883        .31284E-02    .15357E-03
   3  Normalizat    1.2749        .23476        .21998E-03    .17779E-03
   4  Prefactor     .70147        .21910        .27466E-03   -.35214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7522
  Index      = 2.98301
  Normalizat = 1.27493
  Prefactor  = 0.701468
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.796     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.752        25.300        .41680E-05   -1.4940    
   2  Index         2.9830        .70469        .12514E-03   -.41523    
   3  Normalizat    1.2749        .23164        .43997E-04   -.84318    
   4  Prefactor     .70147        .21674        .54933E-04   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63816e-09
Minuit parameter uncertainties:
  1  25.3181
  2  0.707509
  3  0.23183
  4  0.216996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792635': 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) = 4552.7956292
delta logL = 0.976076809251

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.475e+01  2.532e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.983e+00  7.075e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.015e-01  2.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.275e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.98 +/- 0.71
Photon Flux (Free Index): 1.08e-07 +/- 7.82e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.41e-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/792635/cmap_HighResolution_559958401_560217601_4FGL_J1018.1+1905_daily_bin1237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='2.18e-05', photon_flux_error='3.69e-08', dlogl='9.76e-01', energy_flux='2.35e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-01 17:01:57.648836', photon_index_error2='0.71', photon_index2='2.98', ts='1.69', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.41e-05', EG='1.34', time_epoch_completed='1630540917.65', return_code='0', job_id='792635', GAL2='0.70', EG2='1.27', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='7.82e-08', ts2='3.67', photon_index='2.06' WHERE bin_id='1237' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:01:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 792635: <4FGL_J1018.1+1905_daily_bin1237> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1237> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:50:57 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:52:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:52:12 2021
Terminated at Wed Sep  1 17:01:58 2021
Results reported at Wed Sep  1 17:01:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1237 154.548 19.0963 559958401 560217601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.1+1905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   471.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            661 sec.

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

