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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1582
RA = 154.607, Dec = 35.6802
tmin = 649382401, tmax = 649641601
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='816907', job_status='RUN', time_executed='2021-09-01 18:10:39.568833', time_epoch_executed='1630545039.57' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816907/ft1_4FGL_J1018.4+3540_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816907/ft1_4FGL_J1018.4+3540_daily_bin1582.fits outfile=/scratch/kocevski/816907/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1582.fits ra=154.607 dec=35.6802 rad=12.0 tmin=649382401.0 tmax=649641601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.78
user 2.59
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.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/816907/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/816907/ltcube_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.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/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits
.....................!
real 18.22
user 17.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/816907/ltcube_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.fits outfile=/scratch/kocevski/816907/expmap_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.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/816907/ltcube_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.fits
.....................!
real 191.31
user 186.70
sys 4.05

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits scfile=/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits outfile=/scratch/kocevski/816907/cmap_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.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.607 yref=35.6802 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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits scfile=/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits outfile=/scratch/kocevski/816907/cmap_HighResolution_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.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.607 yref=35.6802 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816907/Model_4FGL_J1018.4+3540_daily_bin1582.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/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits.....................!
real 38.92
user 37.71
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits', '/scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits', expMap='/scratch/kocevski/816907/expmap_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.fits', expCube='/scratch/kocevski/816907/ltcube_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816907/Model_4FGL_J1018.4+3540_daily_bin1582.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/816907/ft1_filtered_4FGL_J1018.4+3540_daily_bin1582.fits
Spacecraft file(s): /scratch/kocevski/816907/ft2_4FGL_J1018.4+3540_daily_bin1582.fits
Exposure map: /scratch/kocevski/816907/expmap_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.fits
Exposure cube: /scratch/kocevski/816907/ltcube_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816907/Model_4FGL_J1018.4+3540_daily_bin1582.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) = 3731.78227018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.704       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.868       1.0000         .10000E-03   10000.    
    22 'norm      '    .88651       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.091       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.905       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3731.771     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3282 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.705       -.16064E-05** at limit **
   2  norm          .10000E-03    11.532        .25468E-05** at limit **
   3  Prefactor     .10000E-03    28.621        .34445E-05** at limit **
   4  Prefactor     .10000E-03    36.334        .67640E-05** at limit **
   5  Prefactor     .10000E-03    30.890       -.22112E-04** at limit **
   6  Prefactor     .10000E-03    8.4364        .94337E-06** at limit **
   7  Prefactor     10.704        17.290       -.59668E-06   -.82071E-04
   8  Prefactor     .10000E-03    2.8880        .90644E-07** at limit **
   9  norm          .10000E-03    35.567        .69979E-05** at limit **
  10  Prefactor     .10000E-03    10.207        .12236E-04** at limit **
  11  Prefactor     34.686        61.442        .88123E-05   -.21071E-05
  12  Prefactor     .10000E-03    11.646       -.88241E-05** at limit **
  13  norm          .10000E-03    7.3897       -.11757E-06** at limit **
  14  Prefactor     .10000E-03    35.790       -.18398E-05** at limit **
  15  Prefactor     .10000E-03    14.532        .31028E-05** at limit **
  16  Prefactor     .10000E-03    2.0434       -.19300E-07** at limit **
  17  Prefactor     .10000E-03    2.3729        .78664E-07** at limit **
  18  Prefactor     .10000E-03    28.314        .77337E-05** at limit **
  19  Prefactor     50.093        44.949        .13730E-05   -.83192E-05
  20  Prefactor     .10000E-03    377.56       -.12482E-04** at limit **
  21  Prefactor     36.867        22.877        .16486E-05   -.14199E-04
  22  norm          .88650        .32430        .18032E-07    .76204E-03
  23  Prefactor     18.091        16.199        .16813E-06    .43422E-04
  24  Prefactor     .10000E-03    9.7730       -.82506E-05** at limit **
  25  norm          13.905        16.412        .88890E-06   -.41545E-06
  26  Normalizat    1.0704        .26419       -.23664E-05   -.50216E-04
  27  Prefactor     1.5825        .31224       -.10236E-06   -.10556E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7036
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6864
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.0928
  Prefactor  = 0.0001
  Prefactor  = 36.8668
  norm       = 0.886505
  Prefactor  = 18.0914
  Prefactor  = 0.0001
  norm       = 13.9048
  Normalizat = 1.07043
  Prefactor  = 1.58249
 **********
 **   18 **HESSE 
 **********

 FCN=   3731.771     FROM HESSE     STATUS=OK           476 CALLS     3758 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4513        .17331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.704        17.292        .12246E-03   -1.5054    
   8  Prefactor     .10000E-03    2.9159        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    36.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.686        61.904        .68053E-04   -1.4529    
  12  Prefactor     .10000E-03    12.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.4054        .16213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0557        .85262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3771        .91895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.093        44.977        .56667E-04   -1.4291    
  20  Prefactor     .10000E-03    379.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.867        22.884        .66006E-04   -1.4493    
  22  norm          .88650        .32493        .20160E-04   -1.5520    
  23  Prefactor     18.091        16.208        .94165E-04   -1.4857    
  24  Prefactor     .10000E-03    9.7897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.905        16.402        .10741E-03   -1.4962    
  26  Normalizat    1.0704        .31670        .28973E-03   -.90707    
  27  Prefactor     1.5825        .37426        .29764E-03   -.75255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93839e-11
Minuit parameter uncertainties:
  1  4.93626e-06
  2  7.22602e-07
  3  1.58078e-06
  4  4.58905e-06
  5  3.47449e-06
  6  2.23432e-06
  7  17.3004
  8  4.17681e-06
  9  2.90512e-05
  10  2.91388e-05
  11  62.0194
  12  3.91709e-06
  13  2.71671e-05
  14  7.97672e-06
  15  6.73865e-07
  16  1.30314e-06
  17  1.27085e-07
  18  2.88608e-06
  19  45.0071
  20  0.000670892
  21  22.8891
  22  0.324929
  23  16.2116
  24  6.95033e-06
  25  16.4071
  26  0.317257
  27  0.374923
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.917e-06  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.582e+00  3.749e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.070e+00  3.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816907/likelihoodResults_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.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) = 3731.77097033
delta logL = -0.000396457146053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3731.77057377
delta logL = 1.05681010609e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5647       1.0000          .0000       10.000    
     3 'Normalizat'    1.0704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   3731.771     FROM MIGRAD    STATUS=FAILED        96 CALLS      261 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10605E-03    104.65        .36285E-02** at limit **
   2  Index         2.4369        6.9165        .50000        .17144E-04
   3  Normalizat    1.0704        .18367E-01    .28973E-03   -.34648E-04
   4  Prefactor     1.5825        .22391E-01    .29764E-03   -.40197E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3731.771     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS      385 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10445E-03    104.65        .50888E-03** at limit **
   2  Index         2.4360        6.9165        .30702E-03    .17144E-04
   3  Normalizat    1.0704        .18367E-01    .32903E-05   -.34648E-04
   4  Prefactor     1.5825        .22391E-01    .17501E-05   -.40197E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3731.771     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      457 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7438        .72569E-01** at limit **
   2  Index         1.6493        7.8635        .50000       -.31439E-06
   3  Normalizat    1.0704        .81842E-02    .11589E-04    .14911E-04
   4  Prefactor     1.5825        .99773E-02    .59529E-04    .11516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.6493
  Normalizat = 1.07043
  Prefactor  = 1.58249
 **********
 **   18 **HESSE 
 **********

 FCN=   3731.771     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      488 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1703.7        .28795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6493        6.7625        .50000       -.73440    
   3  Normalizat    1.0704        .50246E-01    .23178E-05   -.90707    
   4  Prefactor     1.5825        .61275E-01    .11906E-04   -.75255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.14465e-09
Minuit parameter uncertainties:
  1  0.000362032
  2  603.413
  3  0.0502485
  4  0.0612779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816907': 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) = 3731.7705711
delta logL = 2.77946946881e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.620e-04  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.649e+00  6.034e+02  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.582e+00  6.128e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.070e+00  5.025e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/816907/cmap_HighResolution_649382401_649641601_4FGL_J1018.4+3540_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-01 18:20:56.192242', job_id='816907', GAL2='1.58', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630545656.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.58', dlogl='2.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1582' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 816907: <4FGL_J1018.4+3540_daily_bin1582> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1582> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:24 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:10:26 2021
Terminated at Wed Sep  1 18:20:56 2021
Results reported at Wed Sep  1 18:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1582 154.607 35.6802 649382401 649641601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   613.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

