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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1500
RA = 154.607, Dec = 35.6802
tmin = 628128001, tmax = 628387201
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='816788', job_status='RUN', time_executed='2021-09-01 18:10:34.162426', time_epoch_executed='1630545034.16' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816788/ft1_4FGL_J1018.4+3540_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816788/ft1_4FGL_J1018.4+3540_daily_bin1500.fits outfile=/scratch/kocevski/816788/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1500.fits ra=154.607 dec=35.6802 rad=12.0 tmin=628128001.0 tmax=628387201.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.24
user 5.00
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.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/816788/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1500.fits evtable="EVENTS" outfile="/scratch/kocevski/816788/ft1_filtered_4FGL_J1018.4+3540_daily_bin1500.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816788/ft1_filtered_4FGL_J1018.4+3540_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/816788/ltcube_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.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/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.fits
.....................!
real 14.83
user 14.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816788/ft1_filtered_4FGL_J1018.4+3540_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/816788/ltcube_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.fits outfile=/scratch/kocevski/816788/expmap_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.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/816788/ltcube_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.fits
.....................!
real 191.93
user 187.15
sys 4.13

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/816788/ft1_filtered_4FGL_J1018.4+3540_daily_bin1500.fits scfile=/scratch/kocevski/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.fits outfile=/scratch/kocevski/816788/cmap_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816788/ft1_filtered_4FGL_J1018.4+3540_daily_bin1500.fits scfile=/scratch/kocevski/816788/ft2_4FGL_J1018.4+3540_daily_bin1500.fits outfile=/scratch/kocevski/816788/cmap_HighResolution_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9176       1.0000         .10000E-03   10000.    
     2 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35858E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2537       1.0000         .10000E-03   10000.    
     9 'norm      '    30.399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4490       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38131E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.573       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6398       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.776       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .78679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14413E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6766       1.0000         .10000E-03   10000.    
    25 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88543       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2909       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=   6329.116     FROM MIGRAD    STATUS=CONVERGED   1168 CALLS     4365 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9177        6.0599        .20383E-03    .88683E-05
   2  norm          .10000E-03    10.337        .18142E-02** at limit **
   3  Prefactor     .10000E-03    9.2259        .18142E-02** at limit **
   4  Prefactor     11.799        23.046        .11638E-03    .45324E-04
   5  Prefactor     .10008E-03    258.33        .72995E-02** at limit **
   6  Prefactor     .10000E-03    2.1995        .11512E-02** at limit **
   7  Prefactor     8.7888        11.428        .67606E-03    .29630E-04
   8  Prefactor     1.2537        2.7773        .18633E-03   -.75353E-04
   9  norm          30.399        11.246        .72670E-04    .13141E-04
  10  Prefactor     2.4483        4.5221        .19216E-03    .27025E-03
  11  Prefactor     .10000E-03    7.2377        .18142E-02** at limit **
  12  Prefactor     .33931E-01    5.2707        .39136E-01    .46820E-03
  13  norm          .10000E-03    2.2996        .11774E-02** at limit **
  14  Prefactor     45.648        73.454        .59392E-04    .29019E-04
  15  Prefactor     .10000E-03    47.483        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.3737        .90740E-03** at limit **
  17  Prefactor     9.6406        5.7994        .12907E-03    .16383E-04
  18  Prefactor     20.835        25.998        .87765E-04    .10751E-04
  19  Prefactor     14.779        23.218        .10420E-03    .21058E-04
  20  Prefactor     .10000E-03    36.283        .18142E-02** at limit **
  21  Prefactor     .10000E-03    12.804        .18142E-02** at limit **
  22  norm          .78675        .25508        .21713E-04    .12708E-02
  23  Prefactor     .10005E-03    22.700        .36888E-02** at limit **
  24  Prefactor     4.6741        10.627        .93046E-03    .74055E-04
  25  norm          .10000E-03    7.0702        .18142E-02** at limit **
  26  Normalizat    .88541        .20169        .25512E-03    .30073E-03
  27  Prefactor     1.2908        .24205        .26754E-03    .26784E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.91771
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7992
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 8.78882
  Prefactor  = 1.25374
  norm       = 30.399
  Prefactor  = 2.44829
  Prefactor  = 0.0001
  Prefactor  = 0.0339311
  norm       = 0.0001
  Prefactor  = 45.6485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.64064
  Prefactor  = 20.8354
  Prefactor  = 14.7792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.786746
  Prefactor  = 0.000100047
  Prefactor  = 4.67413
  norm       = 0.0001
  Normalizat = 0.885409
  Prefactor  = 1.29082
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.116     FROM HESSE     STATUS=OK           476 CALLS     4841 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9177        6.0599        .81532E-05   -1.5312    
   2  norm          .10000E-03    10.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.799        22.984        .46554E-05   -1.5021    
   5  Prefactor     .10008E-03    267.43        .29198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1996        .23025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7888        11.424        .27042E-04   -1.5115    
   8  Prefactor     1.2537        2.7765        .74531E-05   -1.5484    
   9  norm          30.399        11.245        .29068E-05   -1.4605    
  10  Prefactor     2.4483        4.4780        .76864E-05   -1.5395    
  11  Prefactor     .10000E-03    7.2379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33931E-01    4.3736        .44158E-01   -1.5671    
  13  norm          .10000E-03    2.2997        .23548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.648        73.451        .11878E-04   -1.4356    
  15  Prefactor     .10000E-03    47.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3737        .18148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6406        5.7980        .51628E-05   -1.5087    
  18  Prefactor     20.835        25.997        .35106E-05   -1.4795    
  19  Prefactor     14.779        23.218        .41679E-05   -1.4939    
  20  Prefactor     .10000E-03    36.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .78675        .25503        .86852E-06   -1.5531    
  23  Prefactor     .10005E-03    22.926        .73777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.6741        10.623        .37218E-04   -1.5276    
  25  norm          .10000E-03    7.0711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .88541        .20185        .51023E-04   -.96975    
  27  Prefactor     1.2908        .24227        .53507E-04   -.83580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65219e-09
Minuit parameter uncertainties:
  1  6.06081
  2  7.60184e-06
  3  5.59056e-07
  4  23.0015
  5  0.00927037
  6  3.33328e-07
  7  11.4271
  8  2.77682
  9  11.246
  10  4.47859
  11  9.05649e-07
  12  0.769378
  13  2.0289e-07
  14  73.5973
  15  4.27584e-05
  16  2.31249e-07
  17  5.79833
  18  26.0116
  19  23.2317
  20  1.54119e-05
  21  7.52484e-06
  22  0.255032
  23  0.00208141
  24  10.6277
  25  6.63461e-06
  26  0.202018
  27  0.242482
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.393e-02  7.694e-01  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.291e+00  2.425e-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:  8.854e-01  2.020e-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: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816788/likelihoodResults_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.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) = 6329.11607121
delta logL = 1.56791247719e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6329.11145995
delta logL = 0.00462693879945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39131       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1747       1.0000          .0000       10.000    
     3 'Normalizat'    .88491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2899       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=   6329.111     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      364 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39395        28.520        .70366E-01    .54338E-03
   2  Index         2.1734        3.3950        .50000       -.27789E-05
   3  Normalizat    .88484        .13794E-01    .44708E-01    .13638E-04
   4  Prefactor     1.2900        .17179E-01    .60509E-01    .11369E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.39395
  Index      = 2.1734
  Normalizat = 0.884844
  Prefactor  = 1.28996
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.111     FROM HESSE     STATUS=OK            35 CALLS      399 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39395        12.158        .25236E-02   -1.5582    
   2  Index         2.1734        2.7488        .22835E-01   -.60082    
   3  Normalizat    .88484        .19300        .25518E-03   -.96995    
   4  Prefactor     1.2900        .24018        .26760E-03   -.83606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30459e-08
Minuit parameter uncertainties:
  1  4.37755
  2  3.00864
  3  0.193155
  4  0.240381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816788': 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) = 6329.11145961
delta logL = 0.00462728319508

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.940e-01  4.378e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.173e+00  3.009e+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:  1.290e+00  2.404e-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:  8.848e-01  1.932e-01  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/816788/cmap_HighResolution_628128001_628387201_4FGL_J1018.4+3540_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-01 18:25:56.940310', job_id='816788', GAL2='1.29', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1630545956.94', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='4.63e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1500' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:25:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 816788: <4FGL_J1018.4+3540_daily_bin1500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1500 154.607 35.6802 628128001 628387201 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 :                                   918.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

