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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin101
RA = 154.548, Dec = 19.0963
tmin = 265507201, tmax = 265766401
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='785911', job_status='RUN', time_executed='2021-09-01 16:34:59.870678', time_epoch_executed='1630539299.87' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785911

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785911/ft1_4FGL_J1018.1+1905_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785911/ft1_4FGL_J1018.1+1905_daily_bin101.fits outfile=/scratch/kocevski/785911/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin101.fits ra=154.548 dec=19.0963 rad=12.0 tmin=265507201.0 tmax=265766401.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 2.01
user 1.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.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/785911/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.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.76
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/785911/ltcube_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.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/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits
.....................!
real 19.02
user 18.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/785911/ltcube_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.fits outfile=/scratch/kocevski/785911/expmap_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.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/785911/ltcube_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.fits
.....................!
real 194.09
user 188.09
sys 4.65

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/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.fits scfile=/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits outfile=/scratch/kocevski/785911/cmap_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.fits scfile=/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits outfile=/scratch/kocevski/785911/cmap_HighResolution_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.fits', '/scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits', expMap='/scratch/kocevski/785911/expmap_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.fits', expCube='/scratch/kocevski/785911/ltcube_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/785911/Model_4FGL_J1018.1+1905_daily_bin101.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/785911/ft1_filtered_4FGL_J1018.1+1905_daily_bin101.fits
Spacecraft file(s): /scratch/kocevski/785911/ft2_4FGL_J1018.1+1905_daily_bin101.fits
Exposure map: /scratch/kocevski/785911/expmap_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.fits
Exposure cube: /scratch/kocevski/785911/ltcube_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/785911/Model_4FGL_J1018.1+1905_daily_bin101.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) = 9056.59320338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14826E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4086       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7223       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.875       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36262E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .92653       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2192       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=   9056.591     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1627 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.761        .12358E-07** at limit **
   2  norm          2.3427        1.3234        .35686E-07   -.96334E-04
   3  Prefactor     51.213        43.435       -.19853E-05   -.17896E-03
   4  Prefactor     20.985        29.198        .50978E-06    .21930E-05
   5  Prefactor     6.4059        5.1620        .37463E-06    .10683E-03
   6  Prefactor     3.7217        2.0082        .26270E-07   -.54209E-04
   7  norm          6.0954        5.2709       -.28413E-07   -.88666E-04
   8  Prefactor     23.882        54.753        .39321E-05    .86847E-04
   9  Prefactor     40.880        32.524       -.14057E-06   -.31404E-04
  10  Prefactor     1.0597        4.3667        .21536E-05   -.45356E-03
  11  Prefactor     .10000E-03    .85731       -.16107E-06** at limit **
  12  Prefactor     .10000E-03    2.5701        .30937E-07** at limit **
  13  Prefactor     12.188        6.7154        .51756E-06    .44162E-03
  14  Prefactor     .10000E-03    6.5581        .60788E-07** at limit **
  15  Prefactor     .10000E-03    19.425        .32086E-06** at limit **
  16  Normalizat    .92648        .15416       -.94187E-06   -.88502E-05
  17  Prefactor     1.2193        .14642        .16219E-06   -.86569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.34272
  Prefactor  = 51.2127
  Prefactor  = 20.9851
  Prefactor  = 6.40593
  Prefactor  = 3.72174
  norm       = 6.09541
  Prefactor  = 23.882
  Prefactor  = 40.8796
  Prefactor  = 1.05974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.926478
  Prefactor  = 1.21926
 **********
 **   18 **HESSE 
 **********

 FCN=   9056.591     FROM HESSE     STATUS=OK           229 CALLS     1856 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3427        1.3197        .79295E-04   -1.5402    
   3  Prefactor     51.213        44.823        .56038E-04   -1.4275    
   4  Prefactor     20.985        29.197        .87437E-04   -1.4791    
   5  Prefactor     6.4059        5.1733        .15855E-03   -1.5202    
   6  Prefactor     3.7217        2.0073        .95594E-04   -1.5322    
   7  norm          6.0954        5.2699        .16262E-03   -1.5214    
   8  Prefactor     23.882        55.855        .81979E-04   -1.4730    
   9  Prefactor     40.880        32.542        .62694E-04   -1.4428    
  10  Prefactor     1.0597        5.7424        .42357E-03   -1.5502    
  11  Prefactor     .10000E-03    2.1348        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5071        .29481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.188        6.8812        .11473E-03   -1.5010    
  14  Prefactor     .10000E-03    6.6419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .92648        .17915        .26292E-03   -.95536    
  17  Prefactor     1.2193        .17272        .23523E-03   -.85741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34312e-10
Minuit parameter uncertainties:
  1  2.97556e-05
  2  1.31972
  3  44.8526
  4  29.2164
  5  5.17366
  6  2.00738
  7  5.27032
  8  55.9778
  9  32.5556
  10  4.93423
  11  6.36325e-06
  12  2.51585e-05
  13  6.88169
  14  4.05533e-05
  15  8.54458e-05
  16  0.179268
  17  0.172805
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.088e+01  3.256e+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:  1.219e+00  1.728e-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:  9.265e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.35
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.38e-05

TS (Fixed Index): 3.35
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/785911/likelihoodResults_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.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) = 9056.41350749
delta logL = 0.177810560526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9056.39406138
delta logL = 0.197256669971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.855       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4505       1.0000          .0000       10.000    
     3 'Normalizat'    .90403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2300       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=   9056.394     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.859        39.600        .77305E-04    .29466E-03
   2  Index         2.4505        .76497        .57704E-02    .16631E-03
   3  Normalizat    .90403        .17677        .26578E-03    .54625E-03
   4  Prefactor     1.2301        .17426        .23428E-03    .79601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8593
  Index      = 2.45054
  Normalizat = 0.904034
  Prefactor  = 1.23009
 **********
 **   18 **HESSE 
 **********

 FCN=   9056.394     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.859        31.807        .15461E-04   -1.4671    
   2  Index         2.4505        .61400        .23082E-03   -.53506    
   3  Normalizat    .90403        .17488        .53156E-04   -.96319    
   4  Prefactor     1.2301        .17346        .46857E-04   -.85410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66472e-10
Minuit parameter uncertainties:
  1  31.8271
  2  0.616105
  3  0.174993
  4  0.17354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785911': 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) = 9056.39406115
delta logL = 0.197256899544

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.686e+01  3.183e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.451e+00  6.161e-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:  1.230e+00  1.735e-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:  9.040e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.45 +/- 0.62
Photon Flux (Free Index): 4.87e-08 +/- 4.34e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/785911/cmap_HighResolution_265507201_265766401_4FGL_J1018.1+1905_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='1.50e-05', photon_flux_error='2.31e-08', dlogl='1.97e-01', energy_flux='1.73e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-01 16:45:46.424910', photon_index_error2='0.62', photon_index2='2.45', ts='3.35', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='8.13e-08', energy_flux_error2='1.04e-05', EG='0.93', time_epoch_completed='1630539946.42', return_code='0', job_id='785911', GAL2='1.23', EG2='0.90', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.34e-08', ts2='3.75', photon_index='2.06' WHERE bin_id='101' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 785911: <4FGL_J1018.1+1905_daily_bin101> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin101> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 16:31:56 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:32:57 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:32:57 2021
Terminated at Wed Sep  1 16:45:47 2021
Results reported at Wed Sep  1 16:45:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin101 154.548 19.0963 265507201 265766401 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            831 sec.

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

