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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1042
RA = 154.607, Dec = 35.6802
tmin = 509414401, tmax = 509673601
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='813031', job_status='RUN', time_executed='2021-09-01 17:56:33.363319', time_epoch_executed='1630544193.36' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813031/ft1_4FGL_J1018.4+3540_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813031/ft1_4FGL_J1018.4+3540_daily_bin1042.fits outfile=/scratch/kocevski/813031/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1042.fits ra=154.607 dec=35.6802 rad=12.0 tmin=509414401.0 tmax=509673601.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.66
user 3.45
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.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/813031/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1042.fits evtable="EVENTS" outfile="/scratch/kocevski/813031/ft1_filtered_4FGL_J1018.4+3540_daily_bin1042.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/813031/ft1_filtered_4FGL_J1018.4+3540_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/813031/ltcube_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.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/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.fits
.....................!
real 13.15
user 12.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813031/ft1_filtered_4FGL_J1018.4+3540_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/813031/ltcube_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.fits outfile=/scratch/kocevski/813031/expmap_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.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/813031/ltcube_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.fits
.....................!
real 192.67
user 186.30
sys 5.89

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/813031/ft1_filtered_4FGL_J1018.4+3540_daily_bin1042.fits scfile=/scratch/kocevski/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.fits outfile=/scratch/kocevski/813031/cmap_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.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.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813031/ft1_filtered_4FGL_J1018.4+3540_daily_bin1042.fits scfile=/scratch/kocevski/813031/ft2_4FGL_J1018.4+3540_daily_bin1042.fits outfile=/scratch/kocevski/813031/cmap_HighResolution_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .23173E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.268       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.4207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1400       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8819       1.0000         .10000E-03   10000.    
    13 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12317E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5657       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3625       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9524       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8290       1.0000         .10000E-03   10000.    
    25 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97456       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=   5763.840     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3487 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8015        .49166E-07** at limit **
   2  norm          .10010E-03    22.179        .24076E-05** at limit **
   3  Prefactor     21.272        30.289        .15765E-07   -.51772E-05
   4  Prefactor     19.779        26.500       -.22947E-05   -.25674E-03
   5  Prefactor     19.476        24.602       -.19315E-05   -.11661E-03
   6  Prefactor     10.340        9.1066        .96690E-06   -.16934E-04
   7  Prefactor     12.703        9.4770        .16468E-05   -.11601E-04
   8  Prefactor     .10000E-03    .93538        .32629E-07** at limit **
   9  norm          7.4228        9.8872        .18796E-05   -.13003E-04
  10  Prefactor     3.1441        4.0027       -.23716E-06   -.10899E-03
  11  Prefactor     .10000E-03    41.807       -.11296E-05** at limit **
  12  Prefactor     2.8712        .93601        .15594E-07   -.14615E-02
  13  norm          .10000E-03    12.876        .19868E-07** at limit **
  14  Prefactor     .10000E-03    96.556       -.23523E-05** at limit **
  15  Prefactor     .10000E-03    146.78        .21749E-04** at limit **
  16  Prefactor     1.4452        4.2992        .17086E-06   -.12490E-03
  17  Prefactor     .10000E-03    7.4159       -.89996E-07** at limit **
  18  Prefactor     .10000E-03    35.496        .11141E-05** at limit **
  19  Prefactor     .10000E-03    10.476       -.27225E-06** at limit **
  20  Prefactor     65.581        70.829        .70201E-05   -.20801E-05
  21  Prefactor     9.5671        9.7210        .18636E-05    .35133E-06
  22  norm          1.3625        .34997       -.18601E-07   -.13778E-04
  23  Prefactor     9.9488        13.259        .27541E-06   -.15364E-04
  24  Prefactor     5.8321        11.896        .11048E-05   -.10534E-04
  25  norm          .10000E-03    5.9931       -.90514E-07** at limit **
  26  Normalizat    1.0923        .18271       -.54152E-06   -.22622E-03
  27  Prefactor     .97461        .20883       -.95533E-06   -.19144E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100098
  Prefactor  = 21.2722
  Prefactor  = 19.779
  Prefactor  = 19.4761
  Prefactor  = 10.3402
  Prefactor  = 12.7029
  Prefactor  = 0.0001
  norm       = 7.42275
  Prefactor  = 3.14408
  Prefactor  = 0.0001
  Prefactor  = 2.87119
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.44522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.5815
  Prefactor  = 9.56705
  norm       = 1.36253
  Prefactor  = 9.94881
  Prefactor  = 5.8321
  norm       = 0.0001
  Normalizat = 1.09225
  Prefactor  = 0.974606
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.840     FROM HESSE     STATUS=OK           490 CALLS     3977 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10010E-03    214.08        .61810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.272        30.294        .86852E-04   -1.4785    
   4  Prefactor     19.779        24.668        .90073E-04   -1.4818    
   5  Prefactor     19.476        24.492        .90755E-04   -1.4825    
   6  Prefactor     10.340        9.0996        .12462E-03   -1.5065    
   7  Prefactor     12.703        9.4652        .11240E-03   -1.4995    
   8  Prefactor     .10000E-03    .94626        .71656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4228        9.8781        .14723E-03   -1.5163    
  10  Prefactor     3.1441        4.6912        .16054E-03   -1.5353    
  11  Prefactor     .10000E-03    42.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8712        6.4485        .11329E-02   -1.5369    
  13  norm          .10000E-03    13.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    96.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    148.99        .41238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4452        4.2706        .25629E-03   -1.5468    
  17  Prefactor     .10000E-03    7.6206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     65.581        70.591        .24781E-03   -1.4087    
  21  Prefactor     9.5671        9.7059        .12957E-03   -1.5089    
  22  norm          1.3625        .35254        .21324E-04   -1.5475    
  23  Prefactor     9.9488        13.254        .12702E-03   -1.5077    
  24  Prefactor     5.8321        11.937        .16635E-03   -1.5225    
  25  norm          .10000E-03    5.9992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0923        .21521        .23820E-03   -.90001    
  27  Prefactor     .97461        .24322        .29389E-03   -.93581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49653e-09
Minuit parameter uncertainties:
  1  1.21236e-05
  2  0.00920478
  3  30.3156
  4  24.681
  5  24.5049
  6  9.1008
  7  9.4663
  8  1.2361e-06
  9  9.88022
  10  4.69177
  11  6.99176e-05
  12  6.45001
  13  1.4397e-05
  14  8.10062e-05
  15  0.000668303
  16  4.27148
  17  1.05896e-05
  18  9.64646e-07
  19  2.47608e-06
  20  70.6814
  21  9.70753
  22  0.352541
  23  13.258
  24  11.9423
  25  6.32173e-07
  26  0.215383
  27  0.243495
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.871e+00  6.450e+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:  9.746e-01  2.435e-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.092e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813031/likelihoodResults_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.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) = 5763.83816368
delta logL = 0.0023071342921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5763.83774152
delta logL = 0.00272930224946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0208       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4980       1.0000          .0000       10.000    
     3 'Normalizat'    1.0945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97262       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=   5763.838     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0203        6.0001        .23277E-03    .97733E-04
   2  Index         2.4977        1.2438        .14480E-01    .24760E-04
   3  Normalizat    1.0944        .20990        .23800E-03    .20909E-03
   4  Prefactor     .97273        .24318        .29413E-03    .22005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0203
  Index      = 2.49772
  Normalizat = 1.09439
  Prefactor  = 0.972731
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.838     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0203        5.8277        .93106E-05   -1.5360    
   2  Index         2.4977        1.2085        .57919E-03   -.52413    
   3  Normalizat    1.0944        .21013        .47599E-04   -.89932    
   4  Prefactor     .97273        .24327        .11765E-04   -.93644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05849e-10
Minuit parameter uncertainties:
  1  5.82881
  2  1.22475
  3  0.210292
  4  0.243544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813031': 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) = 5763.83774136
delta logL = 0.00272945688448

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.020e+00  5.829e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.498e+00  1.225e+00  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:  9.727e-01  2.435e-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.094e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/813031/cmap_HighResolution_509414401_509673601_4FGL_J1018.4+3540_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-01 18:09:39.898759', job_id='813031', GAL2='0.97', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630544979.9', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.73e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1042' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:09:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 813031: <4FGL_J1018.4+3540_daily_bin1042> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1042> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:12 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:56:23 2021
Terminated at Wed Sep  1 18:09:40 2021
Results reported at Wed Sep  1 18:09:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1042 154.607 35.6802 509414401 509673601 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 :                                   775.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            808 sec.

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

