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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin80
RA = 154.548, Dec = 19.0963
tmin = 260064001, tmax = 260323201
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='785890', job_status='RUN', time_executed='2021-09-01 16:34:05.769633', time_epoch_executed='1630539245.77' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785890/ft1_4FGL_J1018.1+1905_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785890/ft2_4FGL_J1018.1+1905_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785890/ft1_4FGL_J1018.1+1905_daily_bin80.fits outfile=/scratch/kocevski/785890/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin80.fits ra=154.548 dec=19.0963 rad=12.0 tmin=260064001.0 tmax=260323201.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.67
user 1.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785890/ft1_filtered_4FGL_J1018.1+1905_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/785890/ft2_4FGL_J1018.1+1905_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/785890/ltcube_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.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/785890/ft2_4FGL_J1018.1+1905_daily_bin80.fits
.....................!
real 17.94
user 17.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785890/ft1_filtered_4FGL_J1018.1+1905_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/785890/ft2_4FGL_J1018.1+1905_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/785890/ltcube_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.fits outfile=/scratch/kocevski/785890/expmap_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.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/785890/ltcube_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.fits
.....................!
real 196.41
user 187.09
sys 4.85

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/785890/ft1_filtered_4FGL_J1018.1+1905_daily_bin80.fits scfile=/scratch/kocevski/785890/ft2_4FGL_J1018.1+1905_daily_bin80.fits outfile=/scratch/kocevski/785890/cmap_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785890/ft1_filtered_4FGL_J1018.1+1905_daily_bin80.fits scfile=/scratch/kocevski/785890/ft2_4FGL_J1018.1+1905_daily_bin80.fits outfile=/scratch/kocevski/785890/cmap_HighResolution_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.050       1.0000         .10000E-03   10000.    
     2 'norm      '    .65109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12690E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99348       1.0000         .10000E-03   10000.    
     7 'norm      '    19.369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0863       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97979       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=   7326.902     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1369 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.039        20.246        .11173E-04    .16670E-04
   2  norm          .65141        1.3371       -.26029E-06   -.12670E-02
   3  Prefactor     5.2465        219.81        .88873E-04   -.26547E-05
   4  Prefactor     .10000E-03    15.802        .27457E-06** at limit **
   5  Prefactor     .10000E-03    4.3002       -.56416E-06** at limit **
   6  Prefactor     .99416        2.2328       -.17928E-05   -.17173E-02
   7  norm          19.376        8.8707       -.80533E-06    .32511E-04
   8  Prefactor     8.2799        102.59       -.20400E-03    .24887E-04
   9  Prefactor     2.6914        75.405        .14761E-04   -.36389E-04
  10  Prefactor     .10000E-03    2.2117       -.71943E-07** at limit **
  11  Prefactor     4.0866        2.0824       -.18203E-07   -.11021E-03
  12  Prefactor     .10000E-03    1.8929       -.89498E-07** at limit **
  13  Prefactor     17.889        8.2432       -.36851E-05   -.25488E-04
  14  Prefactor     .10000E-03    3.5239        .19913E-06** at limit **
  15  Prefactor     .10000E-03    9.3803        .77705E-06** at limit **
  16  Normalizat    1.0674        .16079        .58655E-05   -.13266E-03
  17  Prefactor     .97983        .15202       -.16484E-05    .36882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0391
  norm       = 0.651412
  Prefactor  = 5.24653
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.994157
  norm       = 19.3759
  Prefactor  = 8.27991
  Prefactor  = 2.69143
  Prefactor  = 0.0001
  Prefactor  = 4.08656
  Prefactor  = 0.0001
  Prefactor  = 17.8894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06737
  Prefactor  = 0.979828
 **********
 **   18 **HESSE 
 **********

 FCN=   7326.902     FROM HESSE     STATUS=OK           225 CALLS     1594 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.039        20.254        .80037E-04   -1.4707    
   2  norm          .65141        1.3134        .13434E-03   -1.5547    
   3  Prefactor     5.2465        217.56        .17597E-03   -1.5250    
   4  Prefactor     .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3564        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99416        2.2269        .18295E-03   -1.5509    
   7  norm          19.376        8.8697        .91008E-04   -1.4827    
   8  Prefactor     8.2799        103.16        .13863E-03   -1.5132    
   9  Prefactor     2.6914        75.214        .24577E-03   -1.5380    
  10  Prefactor     .10000E-03    2.2259        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0866        2.0794        .84424E-04   -1.5304    
  12  Prefactor     .10000E-03    1.9024        .11498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.889        8.2603        .94673E-04   -1.4862    
  14  Prefactor     .10000E-03    3.5322        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0674        .18544        .23500E-03   -.90806    
  17  Prefactor     .97983        .17601        .24141E-03   -.93405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0598e-09
Minuit parameter uncertainties:
  1  20.2597
  2  1.31346
  3  67.8351
  4  0.000112657
  5  0.000134686
  6  2.22712
  7  8.87035
  8  58.576
  9  28.4949
  10  9.68893e-07
  11  2.07941
  12  2.99943e-06
  13  8.2608
  14  3.46473e-05
  15  0.000101645
  16  0.185554
  17  0.176113
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.691e+00  2.849e+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:  9.798e-01  1.761e-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.067e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/785890/likelihoodResults_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7326.82064181
delta logL = 0.0809382253537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7326.7917081
delta logL = 0.109871934233

Fit tolerance = 1e-08

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

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

 FCN=   7326.792     FROM MIGRAD    STATUS=FAILED        88 CALLS      279 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45765        92.320        .11368E-03   -.37638E-02
   2  Index         3.6454        5.9375        .91376E-02   -.40992E-03
   3  Normalizat    1.0438        .12937        .23736E-03   -.80142E-03
   4  Prefactor     .99256        .12178        .24004E-03   -.54915E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7326.792     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      372 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45765        92.320        .41510E-03   -.37638E-02
   2  Index         3.6454        5.9375        .34282E-02   -.40992E-03
   3  Normalizat    1.0438        .12937        .11375E-03   -.80142E-03
   4  Prefactor     .99256        .12178        .33145E-04   -.54915E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7326.792     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      401 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45724        19.234        .45471E-05   -.40613E-02
   2  Index         3.6457        4.0283        .36550E-03   -.35754E-03
   3  Normalizat    1.0438        .18659        .47473E-04   -.85441E-03
   4  Prefactor     .99256        .18003        .48009E-04   -.71117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.457236
  Index      = 3.64575
  Normalizat = 1.04383
  Prefactor  = 0.992563
 **********
 **   18 **HESSE 
 **********

 FCN=   7326.792     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45724        12.535        .90943E-06   -1.5573    
   2  Index         3.6457        3.4536        .14620E-04   -.27428    
   3  Normalizat    1.0438        .18566        .94946E-05   -.91576    
   4  Prefactor     .99256        .17909        .96017E-05   -.92978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25553e-09
Minuit parameter uncertainties:
  1  4.78875
  2  3.85182
  3  0.185771
  4  0.179193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785890': 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) = 7326.79170799
delta logL = 0.10987204403

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.572e-01  4.789e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.646e+00  3.852e+00  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:  9.926e-01  1.792e-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.044e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 154.548 19.096

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/785890/cmap_HighResolution_260064001_260323201_4FGL_J1018.1+1905_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-01 16:43:37.113849', job_id='785890', GAL2='0.99', fit_tolerance='1e-08', EG2='1.04', EG='1.07', time_epoch_completed='1630539817.11', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.10e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='80' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:43:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 785890: <4FGL_J1018.1+1905_daily_bin80> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin80 154.548 19.0963 260064001 260323201 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 :                                   565.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            703 sec.

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

