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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1063
RA = 154.548, Dec = 19.0963
tmin = 514857601, tmax = 515116801
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='792378', job_status='RUN', time_executed='2021-09-01 16:52:52.424637', time_epoch_executed='1630540372.42' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792378/ft1_4FGL_J1018.1+1905_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792378/ft2_4FGL_J1018.1+1905_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792378/ft1_4FGL_J1018.1+1905_daily_bin1063.fits outfile=/scratch/kocevski/792378/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1063.fits ra=154.548 dec=19.0963 rad=12.0 tmin=514857601.0 tmax=515116801.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.56
user 3.25
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792378/ft1_filtered_4FGL_J1018.1+1905_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/792378/ft2_4FGL_J1018.1+1905_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/792378/ltcube_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.fits outfile=/scratch/kocevski/792378/expmap_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.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/792378/ltcube_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.fits
.....................!
real 192.06
user 184.75
sys 5.09

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/792378/ft1_filtered_4FGL_J1018.1+1905_daily_bin1063.fits scfile=/scratch/kocevski/792378/ft2_4FGL_J1018.1+1905_daily_bin1063.fits outfile=/scratch/kocevski/792378/cmap_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792378/ft1_filtered_4FGL_J1018.1+1905_daily_bin1063.fits scfile=/scratch/kocevski/792378/ft2_4FGL_J1018.1+1905_daily_bin1063.fits outfile=/scratch/kocevski/792378/cmap_HighResolution_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.753       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.361       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7286       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0766       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2965       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=   5965.117     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1919 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.697        .50322E-06** at limit **
   2  norm          .10000E-03    .99482       -.64361E-07** at limit **
   3  Prefactor     .10000E-03    23.760       -.48505E-05** at limit **
   4  Prefactor     .10000E-03    22.129        .41274E-05** at limit **
   5  Prefactor     2.5115        7.7135       -.23783E-06   -.40290E-03
   6  Prefactor     .10000E-03    1.7058        .58760E-07** at limit **
   7  norm          .10000E-03    2.6069        .53083E-07** at limit **
   8  Prefactor     19.783        118.91        .59248E-04   -.25200E-05
   9  Prefactor     10.790        42.479        .19810E-06   -.12935E-04
  10  Prefactor     6.2487        7.0209       -.10221E-06   -.31266E-03
  11  Prefactor     .10000E-03    1.1158        .18392E-06** at limit **
  12  Prefactor     13.360        7.8823        .21461E-07   -.11663E-03
  13  Prefactor     .10001E-03    5.5790        .77729E-06** at limit **
  14  Prefactor     .10000E-03    8.9454        .14776E-06** at limit **
  15  Prefactor     6.7302        13.366       -.99920E-06   -.18711E-03
  16  Normalizat    1.0766        .19745       -.26299E-05   -.90148E-04
  17  Prefactor     1.2965        .18446        .26867E-06   -.23841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7826
  Prefactor  = 10.7903
  Prefactor  = 6.24874
  Prefactor  = 0.000100001
  Prefactor  = 13.3598
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 6.7302
  Normalizat = 1.07661
  Prefactor  = 1.29651
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.117     FROM HESSE     STATUS=OK           227 CALLS     2146 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5685        .14897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5115        7.7255        .25777E-03   -1.5391    
   6  Prefactor     .10000E-03    1.7532        .19683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6116        .12177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.783        116.78        .90118E-04   -1.4818    
   9  Prefactor     10.790        42.469        .12197E-03   -1.5051    
  10  Prefactor     6.2487        6.9292        .16056E-03   -1.5208    
  11  Prefactor     .10000E-03    15.153        .15418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.360        7.8831        .10958E-03   -1.4977    
  13  Prefactor     .10001E-03    85.089        .33009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7302        12.878        .15469E-03   -1.5189    
  16  Normalizat    1.0766        .23359        .26400E-03   -.90506    
  17  Prefactor     1.2965        .22134        .24214E-03   -.83411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57727e-10
Minuit parameter uncertainties:
  1  4.67336e-05
  2  3.35131e-06
  3  1.54655e-05
  4  2.52211e-05
  5  7.72855
  6  9.7434e-06
  7  4.80416e-06
  8  96.4125
  9  42.5888
  10  6.93007
  11  0.000284337
  12  7.88375
  13  0.00154311
  14  2.41105e-05
  15  12.8835
  16  0.233813
  17  0.2215
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.079e+01  4.259e+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.297e+00  2.215e-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.077e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/792378/likelihoodResults_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.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) = 5964.41330297
delta logL = 0.703962006597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5964.40896579
delta logL = 0.708299187978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5147       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6164       1.0000          .0000       10.000    
     3 'Normalizat'    1.0130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3309       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=   5964.409     FROM MIGRAD    STATUS=FAILED        82 CALLS      355 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5139        61.979        .83824E-04   -.70596E-02
   2  Index         3.6168        3.9469        .41901E-02   -.14403E-02
   3  Normalizat    1.0131        .19720        .27076E-03   -.10139E-02
   4  Prefactor     1.3309        .19486        .23934E-03   -.99229E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5964.409     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      443 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5139        61.979        .15266E-03   -.70596E-02
   2  Index         3.6168        3.9469        .80604E-03   -.14403E-02
   3  Normalizat    1.0131        .19720        .14910E-03   -.10139E-02
   4  Prefactor     1.3309        .19486        .11199E-03   -.99229E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5964.409     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      475 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5131        10.492        .33529E-05   -.11528E-04
   2  Index         3.6170        1.8557        .16760E-03   -.12210E-05
   3  Normalizat    1.0131        .22916        .54151E-04    .55929E-04
   4  Prefactor     1.3309        .22476        .47868E-04    .19238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51314
  Index      = 3.61697
  Normalizat = 1.01308
  Prefactor  = 1.3309
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.409     FROM HESSE     STATUS=OK            23 CALLS      498 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5131        8.7072        .67059E-06   -1.5462    
   2  Index         3.6170        1.6981        .67041E-05   -.28026    
   3  Normalizat    1.0131        .22893        .10830E-04   -.92594    
   4  Prefactor     1.3309        .22443        .95735E-05   -.82393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05705e-11
Minuit parameter uncertainties:
  1  7.26093
  2  1.73554
  3  0.229153
  4  0.224593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792378': 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) = 5964.4089656
delta logL = 0.70829938373

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.513e+00  7.261e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.617e+00  1.736e+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.331e+00  2.246e-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.013e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 154.548 19.096
Photon Index (Free Index): 3.62 +/- 1.74
Photon Flux (Free Index): 6.47e-08 +/- 6.20e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.00e-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/792378/cmap_HighResolution_514857601_515116801_4FGL_J1018.1+1905_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='7.08e-01', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-01 17:02:04.238935', photon_index_error2='1.74', photon_index2='3.62', ts='0.07', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='8.20e-08', energy_flux_error2='1.00e-05', EG='1.08', time_epoch_completed='1630540924.24', return_code='0', job_id='792378', GAL2='1.33', EG2='1.01', return_code2='0', photon_flux_error2='6.20e-08', ts2='1.55', photon_index='2.06' WHERE bin_id='1063' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:02:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 792378: <4FGL_J1018.1+1905_daily_bin1063> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1063> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:50:35 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:50: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:50:51 2021
Terminated at Wed Sep  1 17:02:05 2021
Results reported at Wed Sep  1 17:02:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1063 154.548 19.0963 514857601 515116801 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 :                                   548.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            690 sec.

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

