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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1339
RA = 154.607, Dec = 35.6802
tmin = 586396801, tmax = 586656001
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='815550', job_status='RUN', time_executed='2021-09-01 18:09:06.412219', time_epoch_executed='1630544946.41' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815550

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815550/ft1_4FGL_J1018.4+3540_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815550/ft2_4FGL_J1018.4+3540_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815550/ft1_4FGL_J1018.4+3540_daily_bin1339.fits outfile=/scratch/kocevski/815550/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1339.fits ra=154.607 dec=35.6802 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.71
user 2.40
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815550/ft1_filtered_4FGL_J1018.4+3540_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/815550/ft2_4FGL_J1018.4+3540_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/815550/ltcube_586396801_586656001_4FGL_J1018.4+3540_daily_bin1339.fits outfile=/scratch/kocevski/815550/expmap_586396801_586656001_4FGL_J1018.4+3540_daily_bin1339.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/815550/ltcube_586396801_586656001_4FGL_J1018.4+3540_daily_bin1339.fits
.....................!
real 193.05
user 186.63
sys 5.79

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/815550/ft1_filtered_4FGL_J1018.4+3540_daily_bin1339.fits scfile=/scratch/kocevski/815550/ft2_4FGL_J1018.4+3540_daily_bin1339.fits outfile=/scratch/kocevski/815550/cmap_586396801_586656001_4FGL_J1018.4+3540_daily_bin1339.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    130.25       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5731       1.0000         .10000E-03   10000.    
    13 'norm      '    13.430       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.165       1.0000         .10000E-03   10000.    
    22 'norm      '    .52924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.178       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.273       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96842       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0278       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=   4088.000     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3829 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7933        .32118E-07** at limit **
   2  norm          .10000E-03    10.368       -.24286E-06** at limit **
   3  Prefactor     130.23        56.355       -.12506E-05   -.21173E-03
   4  Prefactor     11.812        28.919        .78795E-06    .44065E-04
   5  Prefactor     10.765        44.390        .12701E-05    .23876E-04
   6  Prefactor     26.435        14.446        .25992E-06   -.21373E-04
   7  Prefactor     .10000E-03    6.5124        .17684E-06** at limit **
   8  Prefactor     .10000E-03    2.3097        .17358E-06** at limit **
   9  norm          .10000E-03    3.7526        .22592E-07** at limit **
  10  Prefactor     .10000E-03    5.1432       -.29480E-07** at limit **
  11  Prefactor     .10000E-03    23.064       -.18047E-06** at limit **
  12  Prefactor     1.5726        4.4137        .48579E-07   -.63180E-04
  13  norm          13.431        13.347        .63343E-06   -.49143E-04
  14  Prefactor     .10000E-03    51.263       -.21820E-05** at limit **
  15  Prefactor     .10000E-03    40.494        .17073E-05** at limit **
  16  Prefactor     2.0970        3.6805        .88996E-07   -.25563E-04
  17  Prefactor     7.8627        8.8898        .29801E-05   -.14869E-03
  18  Prefactor     8.4620        43.193       -.37767E-05   -.37301E-04
  19  Prefactor     .10000E-03    18.861       -.74520E-06** at limit **
  20  Prefactor     11.927        164.32       -.37530E-05   -.26186E-04
  21  Prefactor     46.164        23.502        .46858E-07   -.14051E-04
  22  norm          .52927        .32758        .21006E-07   -.10431E-03
  23  Prefactor     30.168        26.228       -.67137E-06   -.11514E-03
  24  Prefactor     .10000E-03    12.965        .66045E-06** at limit **
  25  norm          16.283        22.404        .89281E-06    .60692E-04
  26  Normalizat    .96830        .21427       -.59960E-06   -.27600E-04
  27  Prefactor     1.0279        .24380       -.56582E-06   -.30248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 130.231
  Prefactor  = 11.8125
  Prefactor  = 10.7648
  Prefactor  = 26.4354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57256
  norm       = 13.4313
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 2.09697
  Prefactor  = 7.86268
  Prefactor  = 8.46197
  Prefactor  = 0.0001
  Prefactor  = 11.9271
  Prefactor  = 46.1638
  norm       = 0.52927
  Prefactor  = 30.1677
  Prefactor  = 0.0001
  norm       = 16.2834
  Normalizat = 0.968304
  Prefactor  = 1.02789
 **********
 **   18 **HESSE 
 **********

 FCN=   4088.000     FROM HESSE     STATUS=OK           490 CALLS     4319 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7943        .10436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     130.23        57.406        .17639E-03   -1.3421    
   4  Prefactor     11.812        28.851        .11659E-03   -1.5020    
   5  Prefactor     10.765        44.249        .12214E-03   -1.5052    
   6  Prefactor     26.435        14.403        .77912E-04   -1.4679    
   7  Prefactor     .10000E-03    6.5377        .15935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5393        .18651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.7576        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2966        .28160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5726        4.3338        .21161E-03   -1.5457    
  13  norm          13.431        13.337        .54649E-03   -1.4975    
  14  Prefactor     .10000E-03    51.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0970        3.6491        .15536E-03   -1.5418    
  17  Prefactor     7.8627        8.9887        .71512E-03   -1.5147    
  18  Prefactor     8.4620        43.225        .13776E-03   -1.5126    
  19  Prefactor     .10000E-03    18.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.927        167.13        .11590E-03   -1.5017    
  21  Prefactor     46.164        23.504        .59011E-04   -1.4348    
  22  norm          .52927        .32819        .27016E-04   -1.5562    
  23  Prefactor     30.168        26.361        .72935E-04   -1.4609    
  24  Prefactor     .10000E-03    13.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.283        22.459        .99285E-04   -1.4901    
  26  Normalizat    .96830        .25016        .24706E-03   -.94100    
  27  Prefactor     1.0279        .28385        .28717E-03   -.91805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58897e-10
Minuit parameter uncertainties:
  1  3.32474e-07
  2  5.62114e-05
  3  57.4304
  4  28.8851
  5  43.7058
  6  14.405
  7  1.23237e-05
  8  1.22676e-05
  9  3.53641e-07
  10  2.02169e-05
  11  5.06278e-05
  12  4.33466
  13  13.3402
  14  0.000591035
  15  0.000358923
  16  3.64951
  17  8.99026
  18  38.2937
  19  0.000118334
  20  89.5981
  21  23.5084
  22  0.328192
  23  26.3716
  24  0.000114072
  25  22.4702
  26  0.250458
  27  0.284264
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.573e+00  4.335e+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.028e+00  2.843e-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:  9.683e-01  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/815550/likelihoodResults_586396801_586656001_4FGL_J1018.4+3540_daily_bin1339.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) = 4087.85570705
delta logL = 0.144250892436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4087.83954788
delta logL = 0.16041006633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9205       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9713       1.0000          .0000       10.000    
     3 'Normalizat'    .97536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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=   4087.840     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9237        513.19        .59430E-02    .13427E-03
   2  Index         1.9727        7.2729        .25957       -.48817E-05
   3  Normalizat    .97482        .22079        .45857E-01    .17209E-03
   4  Prefactor     1.0179        .34269        .65172E-01   -.18176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92373
  Index      = 1.97266
  Normalizat = 0.974824
  Prefactor  = 1.01788
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.840     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9237        5.1989        .18840E-03   -1.5366    
   2  Index         1.9727        .90052        .11582E-01   -.65035    
   3  Normalizat    .97482        .23520        .24626E-03   -.93879    
   4  Prefactor     1.0179        .28202        .28826E-03   -.92136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88306e-10
Minuit parameter uncertainties:
  1  5.19971
  2  0.908391
  3  0.235453
  4  0.282434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815550': 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) = 4087.83954328
delta logL = 0.160414664423

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.924e+00  5.200e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.973e+00  9.084e-01  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.018e+00  2.824e-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:  9.748e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/815550/cmap_HighResolution_586396801_586656001_4FGL_J1018.4+3540_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-01 18:20:23.515521', job_id='815550', GAL2='1.02', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630545623.52', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.60e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1339' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 815550: <4FGL_J1018.4+3540_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1339> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:35 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:05:36 2021
Terminated at Wed Sep  1 18:20:24 2021
Results reported at Wed Sep  1 18:20:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1339 154.607 35.6802 586396801 586656001 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 :                                   666.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

