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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1006
RA = 154.607, Dec = 35.6802
tmin = 500083201, tmax = 500342401
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='812977', job_status='RUN', time_executed='2021-09-01 17:58:16.849913', time_epoch_executed='1630544296.85' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812977/ft1_4FGL_J1018.4+3540_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812977/ft2_4FGL_J1018.4+3540_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812977/ft1_4FGL_J1018.4+3540_daily_bin1006.fits outfile=/scratch/kocevski/812977/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1006.fits ra=154.607 dec=35.6802 rad=12.0 tmin=500083201.0 tmax=500342401.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.72
user 5.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812977/ft1_filtered_4FGL_J1018.4+3540_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/812977/ft2_4FGL_J1018.4+3540_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/812977/ltcube_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.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/812977/ft2_4FGL_J1018.4+3540_daily_bin1006.fits
.....................!
real 17.70
user 17.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812977/ft1_filtered_4FGL_J1018.4+3540_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/812977/ft2_4FGL_J1018.4+3540_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/812977/ltcube_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.fits outfile=/scratch/kocevski/812977/expmap_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.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/812977/ltcube_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.fits
.....................!
real 191.40
user 186.66
sys 4.05

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/812977/ft1_filtered_4FGL_J1018.4+3540_daily_bin1006.fits scfile=/scratch/kocevski/812977/ft2_4FGL_J1018.4+3540_daily_bin1006.fits outfile=/scratch/kocevski/812977/cmap_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812977/ft1_filtered_4FGL_J1018.4+3540_daily_bin1006.fits scfile=/scratch/kocevski/812977/ft2_4FGL_J1018.4+3540_daily_bin1006.fits outfile=/scratch/kocevski/812977/cmap_HighResolution_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5846       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12120E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7457       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.6133       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.295       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.971       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.393       1.0000         .10000E-03   10000.    
    22 'norm      '    .52267       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.130       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.5391       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76374       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3551       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=   5177.270     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3252 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.308       -.30863E-05** at limit **
   2  norm          .10000E-03    7.6133        .74336E-06** at limit **
   3  Prefactor     .10000E-03    27.988        .12998E-05** at limit **
   4  Prefactor     7.5846        16.857       -.47963E-06   -.42342E-04
   5  Prefactor     .10000E-03    14.698        .51097E-05** at limit **
   6  Prefactor     13.220        10.017       -.10377E-05   -.12233E-02
   7  Prefactor     .10000E-03    4.6768        .31144E-08** at limit **
   8  Prefactor     .10000E-03    1.9940        .78670E-07** at limit **
   9  norm          14.176        11.050        .17507E-06   -.36911E-04
  10  Prefactor     1.7463        2.8660       -.24339E-06   -.47014E-03
  11  Prefactor     .10000E-03    11.673       -.32928E-05** at limit **
  12  Prefactor     .10000E-03    1.2008       -.67358E-08** at limit **
  13  norm          9.6125        8.6464       -.13755E-06   -.17538E-03
  14  Prefactor     47.300        55.114        .50042E-05   -.71250E-04
  15  Prefactor     20.968        24.505        .10612E-06   -.36358E-04
  16  Prefactor     .10003E-03    2.6391        .11347E-05** at limit **
  17  Prefactor     .10000E-03    1.6225       -.54360E-08** at limit **
  18  Prefactor     .10000E-03    11.258       -.26325E-05** at limit **
  19  Prefactor     .10000E-03    7.6342       -.35962E-06** at limit **
  20  Prefactor     .10000E-03    133.27       -.91929E-06** at limit **
  21  Prefactor     10.393        11.541       -.11388E-05   -.82793E-03
  22  norm          .52264        .24754        .13437E-08    .87704E-04
  23  Prefactor     12.130        11.507       -.26757E-07    .77222E-06
  24  Prefactor     .10000E-03    8.4380       -.17498E-05** at limit **
  25  norm          8.5390        16.380        .14677E-06   -.40295E-04
  26  Normalizat    .76368        .18166       -.23218E-06   -.14320E-03
  27  Prefactor     1.3551        .21979        .11905E-06   -.13702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58456
  Prefactor  = 0.0001
  Prefactor  = 13.2203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1758
  Prefactor  = 1.74626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.6125
  Prefactor  = 47.3004
  Prefactor  = 20.9678
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3927
  norm       = 0.52264
  Prefactor  = 12.1297
  Prefactor  = 0.0001
  norm       = 8.53901
  Normalizat = 0.763682
  Prefactor  = 1.35512
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.270     FROM HESSE     STATUS=OK           486 CALLS     3738 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.6070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5846        16.859        .14562E-03   -1.5157    
   5  Prefactor     .10000E-03    14.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.220        10.891        .55083E-03   -1.4981    
   7  Prefactor     .10000E-03    4.6918        .15194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5512        .19413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.176        11.054        .10639E-03   -1.4955    
  10  Prefactor     1.7463        2.8564        .15103E-03   -1.5444    
  11  Prefactor     .10000E-03    11.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2039        .76970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.6125        8.6055        .12925E-03   -1.5088    
  14  Prefactor     47.300        53.975        .58305E-04   -1.4331    
  15  Prefactor     20.968        24.485        .87465E-04   -1.4792    
  16  Prefactor     .10003E-03    9.6318        .21696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6257        .89470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    133.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.393        12.299        .62142E-03   -1.5063    
  22  norm          .52264        .24812        .23743E-04   -1.5563    
  23  Prefactor     12.130        11.498        .11502E-03   -1.5011    
  24  Prefactor     .10000E-03    8.3861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.5390        16.361        .13718E-03   -1.5123    
  26  Normalizat    .76368        .21312        .26338E-03   -1.0143    
  27  Prefactor     1.3551        .26052        .25033E-03   -.81682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99386e-09
Minuit parameter uncertainties:
  1  0.000161933
  2  1.22723e-05
  3  3.99085e-05
  4  16.8691
  5  0.000159285
  6  10.893
  7  1.04009e-06
  8  1.55028e-05
  9  11.056
  10  2.85664
  11  9.14664e-05
  12  3.46169e-08
  13  8.60663
  14  54.0309
  15  24.4966
  16  0.0011355
  17  7.8339e-07
  18  6.97185e-05
  19  7.92934e-06
  20  7.29475e-05
  21  12.3024
  22  0.248123
  23  11.4996
  24  4.43346e-05
  25  16.3699
  26  0.21335
  27  0.260774
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.462e-08  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.355e+00  2.608e-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.637e-01  2.133e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812977/likelihoodResults_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.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) = 5177.27392335
delta logL = -0.00376140867684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5177.27016175
delta logL = 1.86435499927e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5787       1.0000          .0000       10.000    
     3 'Normalizat'    .76368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3552       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=   5177.270     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.064        .77418E-02** at limit **
   2  Index         2.1053        5.9513        .50000        .10277E-06
   3  Normalizat    .76368        .14814E-01    .26338E-03   -.19286E-03
   4  Prefactor     1.3551        .18266E-01    .25033E-03   -.18782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10528
  Normalizat = 0.763682
  Prefactor  = 1.35512
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.270     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.79        .82240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1053        6.0200        .50000       -.61743    
   3  Normalizat    .76368        .47616E-01    .10535E-04   -1.0143    
   4  Prefactor     1.3551        .58713E-01    .50065E-04   -.81682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56555e-10
Minuit parameter uncertainties:
  1  1.93953e-05
  2  746.078
  3  0.0476188
  4  0.0587158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812977': 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): 102
logL (Free Index) = 5177.27015688
delta logL = 5.06234664499e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.940e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.105e+00  7.461e+02  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.355e+00  5.872e-02  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.637e-01  4.762e-02  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/812977/cmap_HighResolution_500083201_500342401_4FGL_J1018.4+3540_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-01 18:10:27.440920', job_id='812977', GAL2='1.36', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630545027.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='5.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1006' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:10:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 812977: <4FGL_J1018.4+3540_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1006> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:09 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:19 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:19 2021
Terminated at Wed Sep  1 18:10:28 2021
Results reported at Wed Sep  1 18:10:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1006 154.607 35.6802 500083201 500342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            859 sec.

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

