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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1418
RA = 154.607, Dec = 35.6802
tmin = 606873601, tmax = 607132801
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='815665', job_status='RUN', time_executed='2021-09-01 18:05:57.609140', time_epoch_executed='1630544757.61' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815665/ft1_4FGL_J1018.4+3540_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815665/ft1_4FGL_J1018.4+3540_daily_bin1418.fits outfile=/scratch/kocevski/815665/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1418.fits ra=154.607 dec=35.6802 rad=12.0 tmin=606873601.0 tmax=607132801.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 5.47
user 5.17
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.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/815665/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1418.fits evtable="EVENTS" outfile="/scratch/kocevski/815665/ft1_filtered_4FGL_J1018.4+3540_daily_bin1418.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/815665/ft1_filtered_4FGL_J1018.4+3540_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/815665/ltcube_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.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/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.fits
.....................!
real 16.56
user 16.15
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815665/ft1_filtered_4FGL_J1018.4+3540_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/815665/ltcube_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.fits outfile=/scratch/kocevski/815665/expmap_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.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/815665/ltcube_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.fits
.....................!
real 193.61
user 187.92
sys 5.23

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/815665/ft1_filtered_4FGL_J1018.4+3540_daily_bin1418.fits scfile=/scratch/kocevski/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.fits outfile=/scratch/kocevski/815665/cmap_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815665/ft1_filtered_4FGL_J1018.4+3540_daily_bin1418.fits scfile=/scratch/kocevski/815665/ft2_4FGL_J1018.4+3540_daily_bin1418.fits outfile=/scratch/kocevski/815665/cmap_HighResolution_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0854       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6945       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.978       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12942E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11213E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.772       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2258       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7109       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    25 'norm      '    .11462E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96847       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90361       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=   6439.194     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3317 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0834        7.5438       -.25894E-05   -.15139E-03
   2  norm          .10000E-03    7.9193        .52725E-07** at limit **
   3  Prefactor     15.991        22.734       -.19633E-05    .70767E-04
   4  Prefactor     34.450        26.228        .82922E-05    .19014E-03
   5  Prefactor     4.3308        50.985       -.34921E-04   -.28161E-04
   6  Prefactor     6.8707        6.7184        .32609E-05    .19330E-03
   7  Prefactor     2.5096        7.4815       -.70508E-05   -.30803E-03
   8  Prefactor     .10001E-03    1.1528       -.10760E-05** at limit **
   9  norm          25.283        10.185       -.11452E-06    .16953E-03
  10  Prefactor     2.6842        3.1410        .74217E-06    .68588E-03
  11  Prefactor     25.142        31.871       -.16032E-04    .12820E-03
  12  Prefactor     2.6932        5.1030       -.16858E-06    .16428E-03
  13  norm          .10000E-03    6.7156        .26925E-05** at limit **
  14  Prefactor     20.961        52.740       -.44696E-04    .60680E-04
  15  Prefactor     22.064        56.640        .13605E-03   -.37893E-04
  16  Prefactor     14.885        5.5669        .18973E-06    .77016E-03
  17  Prefactor     3.1721        9.0137       -.48620E-04   -.22192E-03
  18  Prefactor     .10000E-03    22.091       -.18725E-04** at limit **
  19  Prefactor     .10000E-03    79.038        .14053E-04** at limit **
  20  Prefactor     .10000E-03    52.574        .26484E-06** at limit **
  21  Prefactor     13.769        11.571       -.83723E-06   -.12144E-04
  22  norm          2.2258        .39045       -.36046E-07    .85186E-03
  23  Prefactor     8.7089        9.0313        .82532E-06   -.10079E-03
  24  Prefactor     10.776        11.360       -.12161E-06   -.57401E-04
  25  norm          .10000E-03    20.712        .15815E-04** at limit **
  26  Normalizat    .96864        .17230        .91955E-05    .32225E-03
  27  Prefactor     .90349        .19650       -.42010E-05    .82732E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.08339
  norm       = 0.0001
  Prefactor  = 15.9908
  Prefactor  = 34.4503
  Prefactor  = 4.3308
  Prefactor  = 6.8707
  Prefactor  = 2.5096
  Prefactor  = 0.000100007
  norm       = 25.2831
  Prefactor  = 2.68418
  Prefactor  = 25.1418
  Prefactor  = 2.69316
  norm       = 0.0001
  Prefactor  = 20.9614
  Prefactor  = 22.0642
  Prefactor  = 14.8852
  Prefactor  = 3.17206
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7693
  norm       = 2.22581
  Prefactor  = 8.70886
  Prefactor  = 10.7763
  norm       = 0.000100002
  Normalizat = 0.968637
  Prefactor  = 0.903489
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.194     FROM HESSE     STATUS=OK           490 CALLS     3807 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0834        7.5506        .17830E-03   -1.5257    
   2  norm          .10000E-03    7.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.991        22.720        .10014E-03   -1.4908    
   4  Prefactor     34.450        26.071        .68297E-04   -1.4533    
   5  Prefactor     4.3308        50.365        .19323E-03   -1.5292    
   6  Prefactor     6.8707        6.6884        .15303E-03   -1.5184    
   7  Prefactor     2.5096        7.4811        .25756E-03   -1.5391    
   8  Prefactor     .10001E-03    6.7720        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.283        10.182        .79686E-04   -1.4702    
  10  Prefactor     2.6842        3.0848        .13518E-03   -1.5380    
  11  Prefactor     25.142        31.925        .79856E-04   -1.4705    
  12  Prefactor     2.6932        5.0087        .21109E-03   -1.5380    
  13  norm          .10000E-03    6.7524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.961        52.848        .87424E-04   -1.4792    
  15  Prefactor     22.064        57.097        .85439E-04   -1.4768    
  16  Prefactor     14.885        5.5769        .10381E-03   -1.4936    
  17  Prefactor     3.1721        9.0999        .20647E-03   -1.5352    
  18  Prefactor     .10000E-03    22.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    81.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.769        11.570        .10793E-03   -1.4966    
  22  norm          2.2258        .39196        .19967E-04   -1.5410    
  23  Prefactor     8.7089        9.0314        .13581E-03   -1.5118    
  24  Prefactor     10.776        11.376        .12204E-03   -1.5051    
  25  norm          .10000E-03    21.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96864        .20428        .23607E-03   -.94089    
  27  Prefactor     .90349        .23320        .29882E-03   -.96019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64314e-09
Minuit parameter uncertainties:
  1  7.55202
  2  2.9336e-05
  3  22.7319
  4  26.0795
  5  29.5687
  6  6.68912
  7  7.48387
  8  0.000445989
  9  10.1826
  10  3.08499
  11  31.9466
  12  5.00947
  13  1.75151e-05
  14  52.9661
  15  57.239
  16  5.57712
  17  9.1039
  18  0.000220855
  19  0.000297685
  20  0.000117832
  21  11.5716
  22  0.39196
  23  9.0328
  24  11.378
  25  0.000384481
  26  0.204448
  27  0.233458
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.693e+00  5.009e+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.035e-01  2.335e-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:  9.686e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/815665/likelihoodResults_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.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) = 6438.65983906
delta logL = 0.534215280411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6438.65459705
delta logL = 0.5394572918

Fit tolerance = 1e-08

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

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

 FCN=   6438.655     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      252 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2671        21.100        .98875E-02    .94253E-03
   2  Index         3.7850        3.7108        .14014        .13100E-03
   3  Normalizat    .92176        .42537E-01    .45179E-01    .12595E-04
   4  Prefactor     .94049        .52404E-01    .66353E-01    .13776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26712
  Index      = 3.78504
  Normalizat = 0.921764
  Prefactor  = 0.940495
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.655     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2671        7.9784        .76164E-04   -1.5483    
   2  Index         3.7850        2.9471        .72182E-02   -.24545    
   3  Normalizat    .92176        .19494        .24116E-03   -.95700    
   4  Prefactor     .94049        .23406        .29349E-03   -.94740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15598e-07
Minuit parameter uncertainties:
  1  6.36013
  2  3.16755
  3  0.195092
  4  0.234307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815665': 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) = 6438.65459703
delta logL = 0.539457307701

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.267e+00  6.360e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.785e+00  3.168e+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.405e-01  2.343e-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:  9.218e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.79 +/- 3.17
Photon Flux (Free Index): 5.62e-08 +/- 5.16e-08
Energy Flux (Free Index): 8.75e-06 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/815665/cmap_HighResolution_606873601_607132801_4FGL_J1018.4+3540_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', comment='SUCCESS', energy_flux2='8.75e-06', dlogl='5.39e-01', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-09-01 18:20:12.085439', photon_index_error2='3.17', photon_index2='3.79', ts='0.40', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.04e-05', EG='0.97', time_epoch_completed='1630545612.09', return_code='0', job_id='815665', GAL2='0.94', EG2='0.92', return_code2='0', photon_flux_error2='5.16e-08', ts2='1.57', photon_index='2.59' WHERE bin_id='1418' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 815665: <4FGL_J1018.4+3540_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1418> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:45 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05:48 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:05:48 2021
Terminated at Wed Sep  1 18:20:12 2021
Results reported at Wed Sep  1 18:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1418 154.607 35.6802 606873601 607132801 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 :                                   851.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

