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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1486
RA = 154.607, Dec = 35.6802
tmin = 624499201, tmax = 624758401
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='816767', job_status='RUN', time_executed='2021-09-01 18:12:54.142579', time_epoch_executed='1630545174.14' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816767/ft1_4FGL_J1018.4+3540_daily_bin1486.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816767/ft1_4FGL_J1018.4+3540_daily_bin1486.fits outfile=/scratch/kocevski/816767/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1486.fits ra=154.607 dec=35.6802 rad=12.0 tmin=624499201.0 tmax=624758401.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.50
user 3.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816767/ft1_filtered_4FGL_J1018.4+3540_daily_bin1486.fits" evtable="EVENTS" scfile=/scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits sctable="SC_DATA" outfile=/scratch/kocevski/816767/ltcube_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.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/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits
.....................!
real 16.18
user 15.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816767/ft1_filtered_4FGL_J1018.4+3540_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits sctable="SC_DATA" expcube=/scratch/kocevski/816767/ltcube_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.fits outfile=/scratch/kocevski/816767/expmap_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.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/816767/ltcube_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.fits
.....................!
real 190.73
user 186.49
sys 3.84

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/816767/ft1_filtered_4FGL_J1018.4+3540_daily_bin1486.fits scfile=/scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits outfile=/scratch/kocevski/816767/cmap_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.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.55
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816767/ft1_filtered_4FGL_J1018.4+3540_daily_bin1486.fits scfile=/scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits outfile=/scratch/kocevski/816767/cmap_HighResolution_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816767/ft1_filtered_4FGL_J1018.4+3540_daily_bin1486.fits', '/scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits', expMap='/scratch/kocevski/816767/expmap_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.fits', expCube='/scratch/kocevski/816767/ltcube_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816767/Model_4FGL_J1018.4+3540_daily_bin1486.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/816767/ft1_filtered_4FGL_J1018.4+3540_daily_bin1486.fits
Spacecraft file(s): /scratch/kocevski/816767/ft2_4FGL_J1018.4+3540_daily_bin1486.fits
Exposure map: /scratch/kocevski/816767/expmap_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.fits
Exposure cube: /scratch/kocevski/816767/ltcube_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816767/Model_4FGL_J1018.4+3540_daily_bin1486.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) = 6276.53546893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10616E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22151E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.629       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4940       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19760E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0293       1.0000         .10000E-03   10000.    
    13 'norm      '    17.078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.405       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8651       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.124       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.732       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5805       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.566       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .53025       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2918       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=   6276.530     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3273 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0460       -.22530E-07** at limit **
   2  norm          .10000E-03    17.755        .70030E-06** at limit **
   3  Prefactor     29.963        23.900       -.11666E-05    .10359E-04
   4  Prefactor     .10007E-03    80.083        .14144E-04** at limit **
   5  Prefactor     25.586        29.512       -.25993E-04   -.97923E-04
   6  Prefactor     9.4943        7.5229       -.47566E-06   -.36707E-04
   7  Prefactor     11.343        8.5953       -.25280E-06    .13020E-03
   8  Prefactor     .10000E-03    .72678       -.61437E-07** at limit **
   9  norm          22.228        10.446       -.49824E-06    .35142E-05
  10  Prefactor     .10000E-03    2.1970       -.53733E-06** at limit **
  11  Prefactor     .10000E-03    19.410       -.23096E-05** at limit **
  12  Prefactor     8.0297        5.1444        .11359E-06    .48545E-03
  13  norm          17.077        9.9815       -.94585E-07    .64020E-04
  14  Prefactor     38.402        57.063       -.57458E-05    .23576E-04
  15  Prefactor     .10000E-03    16.789        .31911E-05** at limit **
  16  Prefactor     5.1247        4.5426       -.87523E-06   -.33603E-03
  17  Prefactor     3.8649        3.5425       -.16101E-06    .71100E-04
  18  Prefactor     .10000E-03    9.2987        .60801E-06** at limit **
  19  Prefactor     7.1670        21.003       -.37352E-05   -.21818E-04
  20  Prefactor     50.120        76.029       -.56802E-05    .59045E-05
  21  Prefactor     14.732        10.924       -.42963E-06   -.21053E-04
  22  norm          1.5805        .32720       -.20643E-07    .47155E-03
  23  Prefactor     .10000E-03    10.843       -.92582E-06** at limit **
  24  Prefactor     .10000E-03    5.4390        .32764E-07** at limit **
  25  norm          28.570        15.807       -.18438E-05    .17492E-04
  26  Normalizat    .53025        .16851        .75887E-05   -.72718E-04
  27  Prefactor     1.2917        .19431       -.92216E-06    .19709E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 29.9629
  Prefactor  = 0.000100074
  Prefactor  = 25.5864
  Prefactor  = 9.49433
  Prefactor  = 11.3429
  Prefactor  = 0.0001
  norm       = 22.2281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.02973
  norm       = 17.0772
  Prefactor  = 38.4019
  Prefactor  = 0.0001
  Prefactor  = 5.12471
  Prefactor  = 3.8649
  Prefactor  = 0.0001
  Prefactor  = 7.16703
  Prefactor  = 50.12
  Prefactor  = 14.732
  norm       = 1.58053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.57
  Normalizat = 0.530252
  Prefactor  = 1.2917
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.530     FROM HESSE     STATUS=OK           492 CALLS     3765 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0755        .15561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.963        23.895        .73195E-04   -1.4613    
   4  Prefactor     .10007E-03    84.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.586        29.564        .79128E-04   -1.4696    
   6  Prefactor     9.4943        7.5171        .13006E-03   -1.5092    
   7  Prefactor     11.343        8.5490        .11895E-03   -1.5034    
   8  Prefactor     .10000E-03    .73516        .65912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.228        10.441        .84959E-04   -1.4765    
  10  Prefactor     .10000E-03    20.424        .19963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0297        4.6960        .12143E-03   -1.5141    
  13  norm          17.077        9.9740        .96918E-04   -1.4881    
  14  Prefactor     38.402        57.048        .64675E-04   -1.4468    
  15  Prefactor     .10000E-03    16.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1247        4.5499        .14511E-03   -1.5255    
  17  Prefactor     3.8649        3.5418        .13706E-03   -1.5315    
  18  Prefactor     .10000E-03    9.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1670        20.998        .14984E-03   -1.5172    
  20  Prefactor     50.120        76.034        .56644E-04   -1.4291    
  21  Prefactor     14.732        10.923        .10435E-03   -1.4940    
  22  norm          1.5805        .32764        .19940E-04   -1.5457    
  23  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.4486        .18043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.570        15.786        .74958E-04   -1.4638    
  26  Normalizat    .53025        .19434        .29214E-03   -1.1103    
  27  Prefactor     1.2917        .22832        .24429E-03   -.83554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64281e-09
Minuit parameter uncertainties:
  1  8.14123e-07
  2  0.00055249
  3  23.903
  4  0.00498654
  5  29.5811
  6  7.51781
  7  8.54997
  8  4.77963e-06
  9  10.4415
  10  7.03916e-05
  11  3.7788e-05
  12  4.69621
  13  9.97492
  14  57.1291
  15  2.25199e-05
  16  4.55023
  17  3.54197
  18  6.04319e-07
  19  21.0194
  20  76.1821
  21  10.9249
  22  0.327638
  23  1.03568e-05
  24  2.81228e-06
  25  15.7878
  26  0.19459
  27  0.228493
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  8.030e+00  4.696e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.292e+00  2.285e-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:  5.303e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.78
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.02e-05

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) = 6276.43091328
delta logL = 0.0987113838446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6276.42342175
delta logL = 0.106202914704

Fit tolerance = 1e-08

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

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

 FCN=   6276.423     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5493        6.1345        .99311E-04    .30966E-03
   2  Index         2.9168        .83306        .57978E-02    .58000E-04
   3  Normalizat    .50468        .19021        .29893E-03    .22507E-03
   4  Prefactor     1.3137        .23223        .24256E-03    .36429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.54926
  Index      = 2.9168
  Normalizat = 0.50468
  Prefactor  = 1.31373
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.423     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5493        5.4853        .39724E-05   -1.5196    
   2  Index         2.9168        .74451        .23191E-03   -.42975    
   3  Normalizat    .50468        .18938        .11957E-04   -1.1220    
   4  Prefactor     1.3137        .23152        .48512E-04   -.82900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47642e-10
Minuit parameter uncertainties:
  1  5.4857
  2  0.747881
  3  0.189623
  4  0.231698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816767': 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) = 6276.4234214
delta logL = 0.106203262279

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  6.549e+00  5.486e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.917e+00  7.479e-01  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.314e+00  2.317e-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:  5.047e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.08
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.92 +/- 0.75
Photon Flux (Free Index): 8.24e-08 +/- 5.25e-08
Energy Flux (Free Index): 1.72e-05 +/- 9.06e-06

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/816767/cmap_HighResolution_624499201_624758401_4FGL_J1018.4+3540_daily_bin1486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='1.72e-05', photon_flux_error='3.85e-08', dlogl='1.06e-01', energy_flux='1.74e-05', photon_flux2='8.24e-08', job_status='DONE', time_completed='2021-09-01 18:25:07.398750', photon_index_error2='0.75', photon_index2='2.92', ts='5.78', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='9.06e-06', EG='0.53', time_epoch_completed='1630545907.4', return_code='0', job_id='816767', GAL2='1.31', EG2='0.50', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.25e-08', ts2='6.08', photon_index='2.59' WHERE bin_id='1486' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:25:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 816767: <4FGL_J1018.4+3540_daily_bin1486> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1486> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:15 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:16 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:16 2021
Terminated at Wed Sep  1 18:25:08 2021
Results reported at Wed Sep  1 18:25:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1486 154.607 35.6802 624499201 624758401 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 :                                   728.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

