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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin915
RA = 154.607, Dec = 35.6802
tmin = 476496001, tmax = 476755201
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='812849', job_status='RUN', time_executed='2021-09-01 17:56:17.454983', time_epoch_executed='1630544177.46' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='915'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812849/ft1_4FGL_J1018.4+3540_daily_bin915.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812849/ft1_4FGL_J1018.4+3540_daily_bin915.fits outfile=/scratch/kocevski/812849/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin915.fits ra=154.607 dec=35.6802 rad=12.0 tmin=476496001.0 tmax=476755201.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.57
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.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/812849/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin915.fits evtable="EVENTS" outfile="/scratch/kocevski/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.fits" evtable="EVENTS" scfile=/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits sctable="SC_DATA" outfile=/scratch/kocevski/812849/ltcube_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.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/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits
.....................!
real 15.17
user 14.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.fits evtable="EVENTS" scfile=/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits sctable="SC_DATA" expcube=/scratch/kocevski/812849/ltcube_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.fits outfile=/scratch/kocevski/812849/expmap_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.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/812849/ltcube_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.fits
.....................!
real 192.40
user 186.81
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/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.fits scfile=/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits outfile=/scratch/kocevski/812849/cmap_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.fits scfile=/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits outfile=/scratch/kocevski/812849/cmap_HighResolution_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.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/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.fits evtable="EVENTS" scfile=/scratch/kocevski/812849/ft2_4FGL_J1018.4+3540_daily_bin915.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812849/Model_4FGL_J1018.4+3540_daily_bin915.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/812849/ft1_filtered_4FGL_J1018.4+3540_daily_bin915.fits.....................!
real 46.49
user 45.06
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    51.399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12262E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11729E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1818       1.0000         .10000E-03   10000.    
     9 'norm      '    .25323       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.608       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24816E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2549       1.0000         .10000E-03   10000.    
    20 'Prefactor '    112.58       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0434       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1086       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.109       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.3835       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2229       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .43573       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=   5105.118     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3361 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.593        .11225E-05** at limit **
   2  norm          51.392        24.228        .11279E-06    .53601E-04
   3  Prefactor     .10000E-03    7.5774       -.16468E-07** at limit **
   4  Prefactor     .10000E-03    42.823        .35664E-06** at limit **
   5  Prefactor     .10034E-03    36.503       -.14922E-05** at limit **
   6  Prefactor     .10000E-03    2.5779        .14272E-07** at limit **
   7  Prefactor     .10000E-03    2.6124       -.13069E-07** at limit **
   8  Prefactor     3.1824        2.3147       -.15547E-08    .18414E-04
   9  norm          .24490        20.651        .59819E-07    .59783E-04
  10  Prefactor     .10000E-03    2.9227       -.31524E-07** at limit **
  11  Prefactor     4.5910        65.432        .27019E-06   -.17113E-05
  12  Prefactor     .10000E-03    2.2953       -.26917E-08** at limit **
  13  norm          17.612        12.884        .54517E-06   -.41388E-04
  14  Prefactor     .10000E-03    97.678       -.24964E-05** at limit **
  15  Prefactor     20.526        29.681        .27229E-05    .73543E-04
  16  Prefactor     .10000E-03    3.5412        .26795E-06** at limit **
  17  Prefactor     .10000E-03    4.8817       -.10439E-05** at limit **
  18  Prefactor     .10000E-03    11.649       -.14406E-05** at limit **
  19  Prefactor     8.2647        29.311        .10172E-05   -.72799E-06
  20  Prefactor     112.58        84.639        .57330E-06   -.12581E-04
  21  Prefactor     3.0453        8.5739       -.72339E-06    .75267E-04
  22  norm          1.1086        .31016        .12316E-07   -.11658E-03
  23  Prefactor     10.117        15.836       -.77845E-06    .48948E-04
  24  Prefactor     .10000E-03    4.5051       -.70568E-07** at limit **
  25  norm          8.3838        8.9663        .78189E-08    .65895E-05
  26  Normalizat    1.2229        .17554       -.33344E-06    .17745E-03
  27  Prefactor     .43566        .19653        .94371E-06    .18349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 51.3918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.18243
  norm       = 0.2449
  Prefactor  = 0.0001
  Prefactor  = 4.59102
  Prefactor  = 0.0001
  norm       = 17.6123
  Prefactor  = 0.0001
  Prefactor  = 20.5255
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.26473
  Prefactor  = 112.58
  Prefactor  = 3.04533
  norm       = 1.1086
  Prefactor  = 10.1165
  Prefactor  = 0.0001
  norm       = 8.38376
  Normalizat = 1.22285
  Prefactor  = 0.435664
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.118     FROM HESSE     STATUS=OK           490 CALLS     3851 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          51.392        23.704        .55940E-04   -1.4273    
   3  Prefactor     .10000E-03    7.5801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10034E-03    249.09        .75130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5985        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6153        .11278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1824        2.3088        .88607E-04   -1.5351    
   9  norm          .24490        20.658        .31135E-02   -1.5609    
  10  Prefactor     .10000E-03    3.0079        .23824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5910        64.501        .18736E-03   -1.5279    
  12  Prefactor     .10000E-03    2.3316        .10563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.612        12.723        .95447E-04   -1.4868    
  14  Prefactor     .10000E-03    97.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.526        29.799        .88389E-04   -1.4802    
  16  Prefactor     .10000E-03    3.6754        .26122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.885        .27959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2647        29.266        .13954E-03   -1.5133    
  20  Prefactor     112.58        84.538        .37913E-04   -1.3582    
  21  Prefactor     3.0453        8.5034        .23258E-03   -1.5359    
  22  norm          1.1086        .31111        .19894E-04   -1.5497    
  23  Prefactor     10.117        15.726        .12603E-03   -1.5072    
  24  Prefactor     .10000E-03    4.5064        .14809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.3838        8.9613        .13845E-03   -1.5129    
  26  Normalizat    1.2229        .19177        .19063E-03   -.85900    
  27  Prefactor     .43566        .21284        .35316E-03   -1.1503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89924e-09
Minuit parameter uncertainties:
  1  7.77437e-05
  2  23.7079
  3  5.96567e-07
  4  9.1504e-06
  5  0.0185001
  6  8.66545e-07
  7  2.1279e-07
  8  2.30885
  9  4.49922
  10  1.91206e-06
  11  34.4612
  12  3.9772e-06
  13  12.7245
  14  0.000352062
  15  29.8205
  16  3.63165e-05
  17  0.000378657
  18  5.34511e-05
  19  29.3173
  20  84.6289
  21  8.50679
  22  0.311111
  23  15.7321
  24  6.41778e-06
  25  8.96275
  26  0.191884
  27  0.213225
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.977e-06  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:  4.357e-01  2.132e-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.223e+00  1.919e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812849/likelihoodResults_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.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) = 5105.1198115
delta logL = -0.00203839551978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5105.11777324
delta logL = -1.38308678288e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5922       1.0000          .0000       10.000    
     3 'Normalizat'    1.2229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43562       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=   5105.118     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6514        .90712E-02** at limit **
   2  Index         2.5943        6.2971        .50000       -.86686E-05
   3  Normalizat    1.2228        .16510        .34351E-01    .21720E-04
   4  Prefactor     .43567        .19092        .79721E-01    .52219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.59429
  Normalizat = 1.22285
  Prefactor  = 0.435666
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.118     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6985        .10564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5943        5.2074        .50000       -.50196    
   3  Normalizat    1.2228        .18094        .19063E-03   -.85900    
   4  Prefactor     .43567        .20867        .35316E-03   -1.1503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31418e-10
Minuit parameter uncertainties:
  1  3.72334e-05
  2  8.94311
  3  0.181037
  4  0.209035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812849': 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) = 5105.11777309
delta logL = 8.07176547823e-09

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.723e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.594e+00  8.943e+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:  4.357e-01  2.090e-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.223e+00  1.810e-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/812849/cmap_HighResolution_476496001_476755201_4FGL_J1018.4+3540_daily_bin915.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-01 18:08:25.673580', job_id='812849', GAL2='0.44', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630544905.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='8.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='915' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:08:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 812849: <4FGL_J1018.4+3540_daily_bin915> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin915 154.607 35.6802 476496001 476755201 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 :                                   727.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            746 sec.

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

