/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin284
RA = 154.607, Dec = 35.6802
tmin = 312940801, tmax = 313200001
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='810932', job_status='RUN', time_executed='2021-09-01 17:50:50.802084', time_epoch_executed='1630543850.8' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810932

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810932/ft1_4FGL_J1018.4+3540_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810932/ft2_4FGL_J1018.4+3540_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810932/ft1_4FGL_J1018.4+3540_daily_bin284.fits outfile=/scratch/kocevski/810932/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin284.fits ra=154.607 dec=35.6802 rad=12.0 tmin=312940801.0 tmax=313200001.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.48
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810932/ft1_filtered_4FGL_J1018.4+3540_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/810932/ft2_4FGL_J1018.4+3540_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/810932/ltcube_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.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/810932/ft2_4FGL_J1018.4+3540_daily_bin284.fits
.....................!
real 13.82
user 13.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810932/ft1_filtered_4FGL_J1018.4+3540_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/810932/ft2_4FGL_J1018.4+3540_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/810932/ltcube_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.fits outfile=/scratch/kocevski/810932/expmap_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.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/810932/ltcube_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.fits
.....................!
real 192.98
user 187.39
sys 5.17

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/810932/ft1_filtered_4FGL_J1018.4+3540_daily_bin284.fits scfile=/scratch/kocevski/810932/ft2_4FGL_J1018.4+3540_daily_bin284.fits outfile=/scratch/kocevski/810932/cmap_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2221       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27777       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2722       1.0000         .10000E-03   10000.    
    13 'norm      '    5.0593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66557E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.371       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8739       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2281       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11616E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    19.626       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .73415       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5567.438     FROM MIGRAD    STATUS=FAILED      1215 CALLS     3428 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7816        .12144E-02** at limit **
   2  norm          12.688        14.563        .11249E-03   -.12633E-04
   3  Prefactor     .10000E-03    38.044        .18142E-02** at limit **
   4  Prefactor     .10000E-03    31.280        .18142E-02** at limit **
   5  Prefactor     .10000E-03    31.937        .18142E-02** at limit **
   6  Prefactor     28.070        11.215        .75617E-04   -.62694E-04
   7  Prefactor     .10000E-03    10.133        .18142E-02** at limit **
   8  Prefactor     .10000E-03    .86382        .67324E-03** at limit **
   9  norm          14.360        9.0709        .10570E-03    .34418E-05
  10  Prefactor     3.2250        3.5759        .12806E-03   -.90553E-05
  11  Prefactor     .15129        44.089        .10649        .84781E-04
  12  Prefactor     3.2691        5.3192        .18473E-03   -.24186E-04
  13  norm          5.0618        9.7081        .17876E-03    .15199E-04
  14  Prefactor     17.184        29.290        .96672E-04   -.21756E-04
  15  Prefactor     .10000E-03    20.281        .18142E-02** at limit **
  16  Prefactor     .81824        7.9626        .26731E-02    .27930E-02
  17  Prefactor     .10000E-03    2.0698        .10419E-02** at limit **
  18  Prefactor     .10000E-03    28.337        .11516    ** at limit **
  19  Prefactor     15.370        17.174        .10216E-03   -.22257E-06
  20  Prefactor     .10000E-03    87.012        .18142E-02** at limit **
  21  Prefactor     2.8752        10.545        .11988E-02    .16624E-04
  22  norm          1.6668        .36925        .19824E-04   -.67443E-03
  23  Prefactor     4.2822        16.647        .19597E-03   -.24191E-04
  24  Prefactor     .10000E-03    10.198        .18142E-02** at limit **
  25  norm          19.617        15.204        .90408E-04   -.40491E-04
  26  Normalizat    1.0825        .20497        .21371E-03   -.10481E-03
  27  Prefactor     .73409        .23059        .30617E-03   -.33381E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5567.438     FROM SIMPLEX   STATUS=UNCHANGED   1574 CALLS     5002 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7816        .20397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.688        14.563        .30351E-06   -1.4995    
   3  Prefactor     .10000E-03    38.044        .92509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.280        .10879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.937        .74038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.070        11.215        .29677E-06   -1.4648    
   7  Prefactor     .10000E-03    10.133        .20526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .86382        .86096E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.360        9.0709        .30261E-06   -1.4950    
  10  Prefactor     3.2250        3.5759        .31189E-06   -1.5349    
  11  Prefactor     .15129        44.089        .44652E-06   -1.5630    
  12  Prefactor     3.2691        5.3192        .31493E-06   -1.5346    
  13  norm          5.0618        9.7081        .31179E-06   -1.5258    
  14  Prefactor     17.184        29.290        .30844E-06   -1.4879    
  15  Prefactor     .10000E-03    20.281        .62811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81824        7.9626        .31382E-06   -1.5527    
  17  Prefactor     .10000E-03    2.0698        .19109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.337        .35024E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.370        17.174        .30216E-06   -1.4924    
  20  Prefactor     .10000E-03    87.012        .81551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8752        10.545        .31164E-06   -1.5369    
  22  norm          1.6668        .36925        .31284E-06   -1.5450    
  23  Prefactor     4.2822        16.647        .30977E-06   -1.5294    
  24  Prefactor     .10000E-03    10.198        .26066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          19.617        15.204        .30015E-06   -1.4822    
  26  Normalizat    1.0825        .20497        .18306E-06   -.90315    
  27  Prefactor     .73409        .23059        .20695E-06   -1.0221    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5567.438     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     5499 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7817        .24287E-03** at limit **
   2  norm          12.688        14.563        .44998E-05    .50530E-06
   3  Prefactor     .10000E-03    38.050        .36285E-03** at limit **
   4  Prefactor     .10000E-03    31.294        .36285E-03** at limit **
   5  Prefactor     .10000E-03    31.943        .36285E-03** at limit **
   6  Prefactor     28.070        11.214        .30247E-05    .15035E-06
   7  Prefactor     .10000E-03    10.137        .36285E-03** at limit **
   8  Prefactor     .10000E-03    .86387        .13465E-03** at limit **
   9  norm          14.360        9.0707        .42280E-05    .10756E-06
  10  Prefactor     3.2250        3.5745        .51223E-05    .44389E-05
  11  Prefactor     .15129        39.911        .11281        .78562E-04
  12  Prefactor     3.2691        5.3165        .73893E-05    .55387E-05
  13  norm          5.0618        9.6778        .71506E-05    .10175E-04
  14  Prefactor     17.184        29.281        .38669E-05    .11760E-06
  15  Prefactor     .10000E-03    20.287        .36285E-03** at limit **
  16  Prefactor     .81826        7.8025        .53462E-03    .17905E-04
  17  Prefactor     .10000E-03    2.0701        .20837E-03** at limit **
  18  Prefactor     .10000E-03    27.570        .11724    ** at limit **
  19  Prefactor     15.370        17.173        .40864E-05    .55642E-06
  20  Prefactor     .10000E-03    87.020        .36285E-03** at limit **
  21  Prefactor     2.8752        10.541        .47953E-04    .28449E-06
  22  norm          1.6668        .36919        .79294E-06    .20987E-04
  23  Prefactor     4.2822        16.639        .78387E-05    .87020E-06
  24  Prefactor     .10000E-03    10.199        .36285E-03** at limit **
  25  norm          19.617        15.201        .36163E-05    .62874E-06
  26  Normalizat    1.0825        .20465        .42742E-04    .15853E-04
  27  Prefactor     .73409        .23072        .12247E-04    .90972E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 12.688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3597
  Prefactor  = 3.22501
  Prefactor  = 0.151287
  Prefactor  = 3.26909
  norm       = 5.06176
  Prefactor  = 17.184
  Prefactor  = 0.0001
  Prefactor  = 0.81826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3704
  Prefactor  = 0.0001
  Prefactor  = 2.87521
  norm       = 1.66681
  Prefactor  = 4.28219
  Prefactor  = 0.0001
  norm       = 19.6167
  Normalizat = 1.08251
  Prefactor  = 0.734091
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.438     FROM HESSE     STATUS=OK           482 CALLS     5981 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7817        .48575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.688        14.554        .89995E-06   -1.4995    
   3  Prefactor     .10000E-03    38.050        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.295        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.943        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.070        11.214        .30247E-05   -1.4648    
   7  Prefactor     .10000E-03    10.137        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .86387        .26930E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.360        9.0705        .42280E-05   -1.4950    
  10  Prefactor     3.2250        3.5743        .10245E-05   -1.5349    
  11  Prefactor     .15129        41.443        .11032       -1.5630    
  12  Prefactor     3.2691        5.3158        .14779E-05   -1.5346    
  13  norm          5.0618        9.6786        .14301E-05   -1.5258    
  14  Prefactor     17.184        29.279        .38669E-05   -1.4879    
  15  Prefactor     .10000E-03    20.287        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81826        7.7605        .21385E-04   -1.5527    
  17  Prefactor     .10000E-03    2.0701        .41674E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.656        .11682       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.370        17.197        .81728E-06   -1.4924    
  20  Prefactor     .10000E-03    87.020        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8752        10.541        .95907E-05   -1.5369    
  22  norm          1.6668        .36916        .36835E-06   -1.5450    
  23  Prefactor     4.2822        16.650        .15677E-05   -1.5294    
  24  Prefactor     .10000E-03    10.199        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          19.617        15.185        .72327E-06   -1.4822    
  26  Normalizat    1.0825        .20451        .85483E-05   -.90315    
  27  Prefactor     .73409        .23041        .24494E-05   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04373e-10
Minuit parameter uncertainties:
  1  1.70576e-08
  2  14.5577
  3  8.37253e-07
  4  7.99088e-07
  5  7.16577e-07
  6  11.2149
  7  3.76974e-07
  8  8.77671e-09
  9  9.07141
  10  3.57451
  11  5.00972
  12  5.31659
  13  9.68156
  14  29.3037
  15  1.30229e-07
  16  5.04045
  17  2.89073e-08
  18  0.000182498
  19  17.2024
  20  1.40673e-06
  21  10.5474
  22  0.369156
  23  16.6681
  24  3.25223e-07
  25  15.1883
  26  0.204662
  27  0.230711
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.269e+00  5.317e+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:  7.341e-01  2.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.083e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/810932/likelihoodResults_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.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) = 5566.61735633
delta logL = 0.821076159784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5566.58177651
delta logL = 0.856655979296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54576E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8456       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79179       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=   5566.582     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      288 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53436E-01    .64430        .28752E-02    .32814E-02
   2  Index         5.8589        3.0788        .14642        .12085E-03
   3  Normalizat    1.0209        .40287E-01    .43182E-01    .11020E-04
   4  Prefactor     .79229        .48705E-01    .66898E-01    .23272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0534361
  Index      = 5.8589
  Normalizat = 1.02093
  Prefactor  = 0.792294
 **********
 **   18 **HESSE 
 **********

 FCN=   5566.582     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      323 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53436E-01    1.5888        .13068E-03   -1.5662    
   2  Index         5.8589        7.6765        .54956E-02    .17264    
   3  Normalizat    1.0209        .14884        .21904E-03   -.92332    
   4  Prefactor     .79229        .17609        .29596E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27549e-10
Minuit parameter uncertainties:
  1  0.582222
  2  6.35265
  3  0.1489
  4  0.176214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810932': 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) = 5566.5817653
delta logL = 0.85666719191

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.344e-02  5.822e-01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  5.859e+00  6.353e+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:  7.923e-01  1.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.021e+00  1.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 154.607 35.680
Photon Index (Free Index): 5.86 +/- 6.35
Photon Flux (Free Index): 6.74e-08 +/- 5.21e-08
Energy Flux (Free Index): 8.46e-06 +/- 7.90e-06

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/810932/cmap_HighResolution_312940801_313200001_4FGL_J1018.4+3540_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', comment='SUCCESS', energy_flux2='8.46e-06', dlogl='8.57e-01', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-01 18:06:25.531296', photon_index_error2='6.35', photon_index2='5.86', ts='0.55', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='7.90e-06', EG='1.08', time_epoch_completed='1630544785.53', return_code='0', job_id='810932', GAL2='0.79', EG2='1.02', return_code2='102', photon_flux_error2='5.21e-08', ts2='2.41', photon_index='2.59' WHERE bin_id='284' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 810932: <4FGL_J1018.4+3540_daily_bin284> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin284> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:50:33 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:50:41 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:50:41 2021
Terminated at Wed Sep  1 18:06:26 2021
Results reported at Wed Sep  1 18:06:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin284 154.607 35.6802 312940801 313200001 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 :                                   933.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            953 sec.

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

