/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 3 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 = 7678
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin146
RA = 154.607, Dec = 35.6802
tmin = 277171201, tmax = 277430401
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='809655', job_status='RUN', time_executed='2021-09-01 17:47:37.559498', time_epoch_executed='1630543657.56' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809655

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809655/ft1_4FGL_J1018.4+3540_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809655/ft2_4FGL_J1018.4+3540_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809655/ft1_4FGL_J1018.4+3540_daily_bin146.fits outfile=/scratch/kocevski/809655/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin146.fits ra=154.607 dec=35.6802 rad=12.0 tmin=277171201.0 tmax=277430401.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.71
user 3.46
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809655/ft1_filtered_4FGL_J1018.4+3540_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/809655/ft2_4FGL_J1018.4+3540_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/809655/ltcube_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.fits outfile=/scratch/kocevski/809655/expmap_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.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/809655/ltcube_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.fits
.....................!
real 192.62
user 186.87
sys 5.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/809655/ft1_filtered_4FGL_J1018.4+3540_daily_bin146.fits scfile=/scratch/kocevski/809655/ft2_4FGL_J1018.4+3540_daily_bin146.fits outfile=/scratch/kocevski/809655/cmap_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809655/ft1_filtered_4FGL_J1018.4+3540_daily_bin146.fits scfile=/scratch/kocevski/809655/ft2_4FGL_J1018.4+3540_daily_bin146.fits outfile=/scratch/kocevski/809655/cmap_HighResolution_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.576       1.0000         .10000E-03   10000.    
     2 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.380       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4422       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2225       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.025       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6746       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.148       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79196       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1113       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=   5857.661     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3298 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.575        10.339        .19109E-06   -.36198E-05
   2  norm          .10000E-03    19.596       -.26308E-06** at limit **
   3  Prefactor     8.0044        22.646        .37823E-06   -.27735E-05
   4  Prefactor     27.376        25.153        .51572E-07   -.38548E-05
   5  Prefactor     .10000E-03    10.769        .17080E-07** at limit **
   6  Prefactor     8.4423        5.5846       -.14158E-07   -.13833E-04
   7  Prefactor     .10000E-03    3.2946        .27331E-07** at limit **
   8  Prefactor     .10000E-03    1.2074        .33251E-07** at limit **
   9  norm          11.533        9.3591        .12807E-05    .84107E-05
  10  Prefactor     .10000E-03    1.5835       -.43282E-07** at limit **
  11  Prefactor     17.597        25.353       -.85006E-07   -.74980E-05
  12  Prefactor     2.2219        3.2146       -.43345E-07   -.19148E-04
  13  norm          .10000E-03    2.7723        .19914E-06** at limit **
  14  Prefactor     28.343        52.598       -.41937E-06   -.53821E-05
  15  Prefactor     22.411        55.395        .30483E-05    .17872E-04
  16  Prefactor     10.024        4.8987       -.16042E-06   -.46142E-04
  17  Prefactor     2.4831        8.1860        .49846E-06    .82228E-05
  18  Prefactor     .10000E-03    19.775        .10758E-05** at limit **
  19  Prefactor     .10000E-03    6.3746       -.44332E-07** at limit **
  20  Prefactor     .10000E-03    69.848        .94171E-06** at limit **
  21  Prefactor     .10000E-03    3.6519       -.32771E-07** at limit **
  22  norm          2.6746        .43291       -.34332E-08   -.12199E-03
  23  Prefactor     .10000E-03    4.6141       -.18450E-06** at limit **
  24  Prefactor     .10000E-03    4.5166        .18614E-06** at limit **
  25  norm          20.148        12.624        .22802E-07   -.25237E-05
  26  Normalizat    .79207        .16616       -.78424E-06   -.45829E-04
  27  Prefactor     1.1111        .19816       -.61639E-06   -.43089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5755
  norm       = 0.0001
  Prefactor  = 8.00444
  Prefactor  = 27.3756
  Prefactor  = 0.0001
  Prefactor  = 8.44227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.533
  Prefactor  = 0.0001
  Prefactor  = 17.597
  Prefactor  = 2.22193
  norm       = 0.0001
  Prefactor  = 28.3425
  Prefactor  = 22.4115
  Prefactor  = 10.0236
  Prefactor  = 2.48308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1476
  Normalizat = 0.792071
  Prefactor  = 1.11115
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.661     FROM HESSE     STATUS=OK           492 CALLS     3790 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.575        10.345        .10491E-03   -1.4944    
   2  norm          .10000E-03    19.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0044        22.644        .14170E-03   -1.5142    
   4  Prefactor     27.376        25.170        .76561E-04   -1.4661    
   5  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4423        5.5790        .13797E-03   -1.5127    
   7  Prefactor     .10000E-03    3.3101        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9322        .16196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.533        9.3702        .58983E-03   -1.5029    
  10  Prefactor     .10000E-03    1.5950        .93785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.597        25.373        .95474E-04   -1.4869    
  12  Prefactor     2.2219        3.1890        .15726E-03   -1.5410    
  13  norm          .10000E-03    2.7760        .12444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.343        52.655        .75251E-04   -1.4643    
  15  Prefactor     22.411        56.138        .84798E-04   -1.4761    
  16  Prefactor     10.024        4.9063        .11217E-03   -1.5075    
  17  Prefactor     2.4831        8.2649        .22075E-03   -1.5393    
  18  Prefactor     .10000E-03    19.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    69.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6586        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6746        .43338        .19597E-04   -1.5381    
  23  Prefactor     .10000E-03    4.6180        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5193        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.148        12.622        .89232E-04   -1.4810    
  26  Normalizat    .79207        .19467        .24849E-03   -1.0036    
  27  Prefactor     1.1111        .23327        .26634E-03   -.89111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39435e-11
Minuit parameter uncertainties:
  1  10.3467
  2  1.75533e-05
  3  22.6681
  4  25.1793
  5  5.95463e-06
  6  5.57935
  7  3.51413e-06
  8  1.50693e-05
  9  9.3714
  10  2.92957e-06
  11  25.388
  12  3.18924
  13  5.92297e-07
  14  52.7412
  15  56.2707
  16  4.90646
  17  8.26872
  18  1.28314e-05
  19  1.67498e-06
  20  5.19473e-05
  21  1.92023e-06
  22  0.433382
  23  1.4154e-06
  24  2.07188e-06
  25  12.624
  26  0.194841
  27  0.233484
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.222e+00  3.189e+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.111e+00  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:  7.921e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809655/likelihoodResults_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.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) = 5857.64631211
delta logL = 0.0149448534285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5857.64108579
delta logL = 0.0201711786285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5980       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3832       1.0000          .0000       10.000    
     3 'Normalizat'    .79501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1082       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=   5857.641     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5966        168.43        .63281E-02    .38552E-03
   2  Index         2.3826        5.0893        .23969        .26099E-04
   3  Normalizat    .79502        .61870E-01    .43545E-01    .15601E-05
   4  Prefactor     1.1082        .74345E-01    .60291E-01   -.21931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5966
  Index      = 2.3826
  Normalizat = 0.795025
  Prefactor  = 1.1082
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.641     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5966        3.9759        .16678E-03   -1.5386    
   2  Index         2.3826        .99907        .12782E-01   -.55093    
   3  Normalizat    .79502        .18527        .24805E-03   -1.0025    
   4  Prefactor     1.1082        .23119        .26663E-03   -.89205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43007e-10
Minuit parameter uncertainties:
  1  3.97634
  2  1.00847
  3  0.185419
  4  0.231402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809655': 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) = 5857.64108535
delta logL = 0.0201716135825

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.597e+00  3.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.383e+00  1.008e+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.108e+00  2.314e-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:  7.950e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/809655/cmap_HighResolution_277171201_277430401_4FGL_J1018.4+3540_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-09-01 18:01:06.566251', job_id='809655', GAL2='1.11', fit_tolerance='1e-08', EG2='0.80', EG='0.79', time_epoch_completed='1630544466.57', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.02e-02', ts2='0.68', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='146' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:01:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 809655: <4FGL_J1018.4+3540_daily_bin146> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin146> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:38 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:47: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:47:23 2021
Terminated at Wed Sep  1 18:01:07 2021
Results reported at Wed Sep  1 18:01:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin146 154.607 35.6802 277171201 277430401 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 :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            929 sec.

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

