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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1592
RA = 154.548, Dec = 19.0963
tmin = 651974401, tmax = 652233601
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='926698', job_status='RUN', time_executed='2021-09-02 00:39:50.472283', time_epoch_executed='1630568390.47' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926698

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926698/ft1_4FGL_J1018.1+1905_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926698/ft1_4FGL_J1018.1+1905_daily_bin1592.fits outfile=/scratch/kocevski/926698/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1592.fits ra=154.548 dec=19.0963 rad=12.0 tmin=651974401.0 tmax=652233601.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.44
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926698/ft1_filtered_4FGL_J1018.1+1905_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/926698/ltcube_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.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/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits
.....................!
real 16.70
user 16.35
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926698/ft1_filtered_4FGL_J1018.1+1905_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/926698/ltcube_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.fits outfile=/scratch/kocevski/926698/expmap_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.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/926698/ltcube_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.fits
.....................!
real 190.98
user 185.63
sys 4.89

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/926698/ft1_filtered_4FGL_J1018.1+1905_daily_bin1592.fits scfile=/scratch/kocevski/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits outfile=/scratch/kocevski/926698/cmap_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.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/926698/ft1_filtered_4FGL_J1018.1+1905_daily_bin1592.fits scfile=/scratch/kocevski/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits outfile=/scratch/kocevski/926698/cmap_HighResolution_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.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/926698/ft1_filtered_4FGL_J1018.1+1905_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/926698/ft2_4FGL_J1018.1+1905_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926698/Model_4FGL_J1018.1+1905_daily_bin1592.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/926698/ft1_filtered_4FGL_J1018.1+1905_daily_bin1592.fits.....................!
real 56.94
user 55.26
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.916       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4165       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64972E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.480       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.050       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0646       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3800       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=   5970.381     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1610 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.103       -.67994E-06** at limit **
   2  norm          .76531        1.0302       -.38512E-07   -.45370E-03
   3  Prefactor     .10000E-03    28.621       -.11798E-05** at limit **
   4  Prefactor     .10000E-03    18.060        .17612E-05** at limit **
   5  Prefactor     .10000E-03    6.4009        .15606E-06** at limit **
   6  Prefactor     .10000E-03    .68755        .19906E-07** at limit **
   7  norm          .10000E-03    6.9244        .16949E-06** at limit **
   8  Prefactor     45.909        114.26        .35123E-05   -.49031E-04
   9  Prefactor     .10000E-03    14.789       -.61699E-06** at limit **
  10  Prefactor     .10000E-03    2.6201        .48504E-07** at limit **
  11  Prefactor     2.4169        2.8783       -.45683E-07   -.35121E-03
  12  Prefactor     6.0446        7.1339        .25837E-05    .70380E-03
  13  Prefactor     .10011E-03    43.393       -.12923E-04** at limit **
  14  Prefactor     14.487        13.319       -.12536E-05   -.76035E-03
  15  Prefactor     17.054        19.348       -.19271E-05   -.49907E-03
  16  Normalizat    1.0648        .19842       -.13992E-05   -.32449E-03
  17  Prefactor     1.3799        .18911       -.18352E-06   -.48066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.765311
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.9085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41691
  Prefactor  = 6.04462
  Prefactor  = 0.000100111
  Prefactor  = 14.487
  Prefactor  = 17.054
  Normalizat = 1.06477
  Prefactor  = 1.37986
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.381     FROM HESSE     STATUS=OK           215 CALLS     1825 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76531        .90056        .88824E-03   -1.5533    
   3  Prefactor     .10000E-03    28.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .69019        .62565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.9837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.909        114.46        .59170E-04   -1.4352    
   9  Prefactor     .10000E-03    14.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6257        .12212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4169        2.8680        .13554E-03   -1.5397    
  12  Prefactor     6.0446        9.3625        .81654E-03   -1.5216    
  13  Prefactor     .10011E-03    55.525        .41814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.487        13.116        .10526E-03   -1.4947    
  15  Prefactor     17.054        19.224        .96996E-04   -1.4882    
  16  Normalizat    1.0648        .23788        .27383E-03   -.90891    
  17  Prefactor     1.3799        .22672        .24356E-03   -.80962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19491e-09
Minuit parameter uncertainties:
  1  0.000222658
  2  0.900574
  3  0.000368536
  4  0.000350901
  5  4.76743e-05
  6  2.44183e-06
  7  3.07902e-05
  8  115.013
  9  0.000144531
  10  8.52148e-06
  11  2.86819
  12  9.36476
  13  0.00497379
  14  13.1189
  15  19.2307
  16  0.238116
  17  0.226887
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.445e-04  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.380e+00  2.269e-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.065e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/926698/likelihoodResults_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.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) = 5970.38168917
delta logL = -0.000320359505167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5970.38136914
delta logL = -3.2860225474e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1650       1.0000          .0000       10.000    
     3 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3799       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=   5970.381     FROM MIGRAD    STATUS=FAILED        93 CALLS      279 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    886.94        .18142E-02** at limit **
   2  Index         2.1440        5.0777        .50000        .12659E-04
   3  Normalizat    1.0648        .43996E-01    .27383E-03    .21049E-04
   4  Prefactor     1.3799        .43998E-01    .24356E-03    .22125E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5970.381     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      461 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    886.94        .68668E-03** at limit **
   2  Index         2.1440        5.0777        .28456E-05    .12659E-04
   3  Normalizat    1.0648        .43996E-01    .10099E-06    .21049E-04
   4  Prefactor     1.3799        .43998E-01    .40887E-07    .22125E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5970.381     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      495 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6303.5        .36285E-03** at limit **
   2  Index         2.1439        5.0300        .50000        .12657E-04
   3  Normalizat    1.0648        .12077        .10953E-04    .21382E-04
   4  Prefactor     1.3799        .12078        .97426E-05    .22405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.14392
  Normalizat = 1.06477
  Prefactor  = 1.37987
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.381     FROM HESSE     STATUS=OK            29 CALLS      524 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.792        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1439        6.0646        .50000       -.60799    
   3  Normalizat    1.0648        .22386        .21906E-05   -.90891    
   4  Prefactor     1.3799        .22393        .19485E-05   -.80962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53156e-10
Minuit parameter uncertainties:
  1  0.000363586
  2  4.26542
  3  0.224055
  4  0.224087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926698': 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) = 5970.38136906
delta logL = -2.42525857175e-07

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.636e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.144e+00  4.265e+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:  1.380e+00  2.241e-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.065e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.548 19.096

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/926698/cmap_HighResolution_651974401_652233601_4FGL_J1018.1+1905_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-02 00:48:48.756693', job_id='926698', GAL2='1.38', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630568928.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='-2.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1592' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:48:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 926698: <4FGL_J1018.1+1905_daily_bin1592> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1592> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 00:36:05 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:37:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:37:08 2021
Terminated at Thu Sep  2 00:48:49 2021
Results reported at Thu Sep  2 00:48:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1592 154.548 19.0963 651974401 652233601 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 :                                   540.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            764 sec.

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

