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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin123
RA = 154.548, Dec = 19.0963
tmin = 271209601, tmax = 271468801
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='785933', job_status='RUN', time_executed='2021-09-01 16:35:38.431299', time_epoch_executed='1630539338.43' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785933/ft1_4FGL_J1018.1+1905_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785933/ft2_4FGL_J1018.1+1905_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785933/ft1_4FGL_J1018.1+1905_daily_bin123.fits outfile=/scratch/kocevski/785933/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin123.fits ra=154.548 dec=19.0963 rad=12.0 tmin=271209601.0 tmax=271468801.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 4.40
user 1.46
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785933/ft1_filtered_4FGL_J1018.1+1905_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/785933/ft2_4FGL_J1018.1+1905_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/785933/ltcube_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.fits outfile=/scratch/kocevski/785933/expmap_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.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/785933/ltcube_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.fits
.....................!
real 199.64
user 186.81
sys 4.76

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/785933/ft1_filtered_4FGL_J1018.1+1905_daily_bin123.fits scfile=/scratch/kocevski/785933/ft2_4FGL_J1018.1+1905_daily_bin123.fits outfile=/scratch/kocevski/785933/cmap_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.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/785933/ft1_filtered_4FGL_J1018.1+1905_daily_bin123.fits scfile=/scratch/kocevski/785933/ft2_4FGL_J1018.1+1905_daily_bin123.fits outfile=/scratch/kocevski/785933/cmap_HighResolution_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5425       1.0000         .10000E-03   10000.    
     7 'norm      '    70.148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58311E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.551       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2736       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88796       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=   8083.135     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1451 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.677       -.17715E-06** at limit **
   2  norm          .10000E-03    .60091       -.11685E-06** at limit **
   3  Prefactor     .10000E-03    26.625        .15774E-06** at limit **
   4  Prefactor     .10000E-03    13.282        .78932E-08** at limit **
   5  Prefactor     .36451        2.5940        .90905E-07   -.68803E-04
   6  Prefactor     1.5418        1.4722       -.20663E-08   -.39880E-05
   7  norm          70.137        12.753       -.81741E-07    .17733E-04
   8  Prefactor     .10000E-03    104.47       -.41986E-05** at limit **
   9  Prefactor     10.163        35.046       -.65102E-05    .51274E-06
  10  Prefactor     3.5190        4.5159        .19303E-05    .18178E-04
  11  Prefactor     2.1615        1.8256       -.11125E-06    .11547E-04
  12  Prefactor     .10000E-03    7.0484       -.20857E-06** at limit **
  13  Prefactor     .10000E-03    5.3890        .12625E-06** at limit **
  14  Prefactor     5.6122        9.9579        .14772E-05   -.19503E-04
  15  Prefactor     27.554        14.349       -.27603E-06   -.75212E-05
  16  Normalizat    1.2734        .16324       -.47360E-06    .10747E-03
  17  Prefactor     .88806        .15349        .71372E-06    .83261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.364512
  Prefactor  = 1.54184
  norm       = 70.1367
  Prefactor  = 0.0001
  Prefactor  = 10.163
  Prefactor  = 3.519
  Prefactor  = 2.16147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61222
  Prefactor  = 27.554
  Normalizat = 1.27339
  Prefactor  = 0.888056
 **********
 **   18 **HESSE 
 **********

 FCN=   8083.135     FROM HESSE     STATUS=OK           225 CALLS     1676 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2213        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .36451        14.180        .27422E-02   -1.5587    
   6  Prefactor     1.5418        1.4773        .10341E-03   -1.5460    
   7  norm          70.137        12.739        .23964E-03   -1.4031    
   8  Prefactor     .10000E-03    105.57        .21079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.163        35.096        .12593E-03   -1.5070    
  10  Prefactor     3.5190        4.5134        .10394E-02   -1.5333    
  11  Prefactor     2.1615        1.8152        .10687E-03   -1.5414    
  12  Prefactor     .10000E-03    7.2780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6122        9.9225        .84800E-03   -1.5234    
  15  Prefactor     27.554        14.354        .76324E-04   -1.4658    
  16  Normalizat    1.2734        .19176        .23754E-03   -.84364    
  17  Prefactor     .88806        .18119        .26933E-03   -.96560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45261e-08
Minuit parameter uncertainties:
  1  9.41478e-06
  2  3.04502e-06
  3  1.34628e-05
  4  6.75598e-06
  5  4.54756
  6  1.47729
  7  12.7393
  8  4.27233e-05
  9  35.1676
  10  4.51384
  11  1.81521
  12  2.05727e-05
  13  3.69335e-06
  14  9.92536
  15  14.356
  16  0.191864
  17  0.18131
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.016e+01  3.517e+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:  8.881e-01  1.813e-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.273e+00  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/785933/likelihoodResults_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.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) = 8082.6083515
delta logL = 0.526160837194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8082.58529845
delta logL = 0.549213886288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1252       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1954       1.0000          .0000       10.000    
     3 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90647       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.

 FCN=   8082.585     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      274 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1252        81.429        .57335E-02    .14913E-02
   2  Index         3.1954        2.7805        .90512E-01    .26143E-03
   3  Normalizat    1.2359        .49226E-01    .54380E-01    .11368E-04
   4  Prefactor     .90650        .46405E-01    .45087E-01    .71976E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12521
  Index      = 3.19541
  Normalizat = 1.23587
  Prefactor  = 0.906495
 **********
 **   18 **HESSE 
 **********

 FCN=   8082.585     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1252        161.16        .15548E-03   -1.5354    
   2  Index         3.1954        6.5912        .54888E-02   -.36925    
   3  Normalizat    1.2359        .17004        .24045E-03   -.85501    
   4  Prefactor     .90650        .16601        .26675E-03   -.95915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69939e-08
Minuit parameter uncertainties:
  1  45.0131
  2  5.2662
  3  0.170114
  4  0.166102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785933': 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): 102
logL (Free Index) = 8082.58529843
delta logL = 0.5492139092

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  3.125e+00  4.501e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.195e+00  5.266e+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.065e-01  1.661e-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.236e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 154.548 19.096
Photon Index (Free Index): 3.20 +/- 5.27
Photon Flux (Free Index): 4.11e-08 +/- 4.19e-08
Energy Flux (Free Index): 7.53e-06 +/- 1.58e-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/785933/cmap_HighResolution_271209601_271468801_4FGL_J1018.1+1905_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', comment='SUCCESS', energy_flux2='7.53e-06', dlogl='5.49e-01', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-09-01 16:45:52.453202', photon_index_error2='5.27', photon_index2='3.20', ts='0.10', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='1.58e-05', EG='1.27', time_epoch_completed='1630539952.45', return_code='0', job_id='785933', GAL2='0.91', EG2='1.24', return_code2='102', photon_flux_error2='4.19e-08', ts2='1.22', photon_index='2.06' WHERE bin_id='123' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 785933: <4FGL_J1018.1+1905_daily_bin123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin123 154.548 19.0963 271209601 271468801 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 :                                   594.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            832 sec.

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

