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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1598
RA = 154.607, Dec = 35.6802
tmin = 653529601, tmax = 653788801
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='724066', job_status='RUN', time_executed='2021-09-20 00:23:34.796739', time_epoch_executed='1632122614.8' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724066

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724066/ft1_4FGL_J1018.4+3540_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724066/ft2_4FGL_J1018.4+3540_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724066/ft1_4FGL_J1018.4+3540_daily_bin1598.fits outfile=/scratch/kocevski/724066/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1598.fits ra=154.607 dec=35.6802 rad=12.0 tmin=653529601.0 tmax=653788801.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.12
user 4.87
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724066/ft1_filtered_4FGL_J1018.4+3540_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/724066/ft2_4FGL_J1018.4+3540_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/724066/ltcube_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.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/724066/ft2_4FGL_J1018.4+3540_daily_bin1598.fits
.....................!
real 11.26
user 10.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724066/ft1_filtered_4FGL_J1018.4+3540_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/724066/ft2_4FGL_J1018.4+3540_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/724066/ltcube_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.fits outfile=/scratch/kocevski/724066/expmap_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.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/724066/ltcube_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.fits
.....................!
real 191.77
user 186.07
sys 5.36

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/724066/ft1_filtered_4FGL_J1018.4+3540_daily_bin1598.fits scfile=/scratch/kocevski/724066/ft2_4FGL_J1018.4+3540_daily_bin1598.fits outfile=/scratch/kocevski/724066/cmap_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724066/ft1_filtered_4FGL_J1018.4+3540_daily_bin1598.fits scfile=/scratch/kocevski/724066/ft2_4FGL_J1018.4+3540_daily_bin1598.fits outfile=/scratch/kocevski/724066/cmap_HighResolution_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.172       1.0000         .10000E-03   10000.    
     2 'norm      '    .12827E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.9071       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3776       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.950       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0673       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .81601       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .63969       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1497       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=   5170.138     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3346 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.171        8.4986       -.45594E-06   -.96563E-06
   2  norm          .10000E-03    22.922       -.30448E-05** at limit **
   3  Prefactor     32.475        27.199        .17871E-05    .10397E-03
   4  Prefactor     9.6477        19.952        .13689E-05    .87337E-04
   5  Prefactor     .10000E-03    16.735       -.84056E-05** at limit **
   6  Prefactor     .10000E-03    7.2171        .60029E-06** at limit **
   7  Prefactor     .10000E-03    4.2045        .28100E-06** at limit **
   8  Prefactor     .10000E-03    1.4779       -.16929E-05** at limit **
   9  norm          7.9082        6.8267       -.28295E-06    .28130E-04
  10  Prefactor     4.7093        3.5741       -.33748E-06    .23399E-04
  11  Prefactor     60.224        34.188       -.12909E-04    .27454E-04
  12  Prefactor     .10000E-03    2.1285        .11847E-06** at limit **
  13  norm          .10000E-03    3.9676        .20355E-06** at limit **
  14  Prefactor     55.642        50.220       -.66117E-05    .35845E-04
  15  Prefactor     .10000E-03    9.9433       -.45641E-05** at limit **
  16  Prefactor     1.3769        2.9127        .61516E-06   -.34848E-03
  17  Prefactor     .10000E-03    2.4709        .21514E-05** at limit **
  18  Prefactor     7.3739        35.723       -.18749E-04   -.15890E-04
  19  Prefactor     35.997        28.728       -.27108E-05    .67584E-04
  20  Prefactor     .10000E-03    31.154        .15686E-04** at limit **
  21  Prefactor     60.948        19.550       -.83636E-06    .51908E-04
  22  norm          1.0671        .30604        .25476E-07    .22504E-02
  23  Prefactor     .10000E-03    40.386       -.14324E-04** at limit **
  24  Prefactor     .10000E-03    11.894        .83420E-05** at limit **
  25  norm          .80853        10.646       -.22426E-05    .45854E-04
  26  Normalizat    .64004        .17025        .67600E-05    .36207E-03
  27  Prefactor     1.1493        .20104       -.14439E-05    .61650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.171
  norm       = 0.0001
  Prefactor  = 32.4749
  Prefactor  = 9.64769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.90823
  Prefactor  = 4.7093
  Prefactor  = 60.2238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.6418
  Prefactor  = 0.0001
  Prefactor  = 1.37691
  Prefactor  = 0.0001
  Prefactor  = 7.37392
  Prefactor  = 35.9966
  Prefactor  = 0.0001
  Prefactor  = 60.948
  norm       = 1.06715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.808532
  Normalizat = 0.640039
  Prefactor  = 1.14929
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.138     FROM HESSE     STATUS=OK           482 CALLS     3828 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.171        8.5033        .11482E-03   -1.5010    
   2  norm          .10000E-03    23.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.475        27.193        .70318E-04   -1.4568    
   4  Prefactor     9.6477        19.803        .12902E-03   -1.5087    
   5  Prefactor     .10000E-03    16.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2206        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5004        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.9082        6.8248        .14259E-03   -1.5145    
  10  Prefactor     4.7093        3.5754        .11159E-03   -1.5274    
  11  Prefactor     60.224        34.263        .51695E-04   -1.4154    
  12  Prefactor     .10000E-03    2.1415        .10213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9807        .13986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.642        50.244        .53773E-04   -1.4215    
  15  Prefactor     .10000E-03    9.9371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3769        2.8551        .16791E-03   -1.5473    
  17  Prefactor     .10000E-03    2.4970        .11039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3739        35.587        .14761E-03   -1.5165    
  19  Prefactor     35.997        28.716        .66794E-04   -1.4507    
  20  Prefactor     .10000E-03    31.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.948        19.549        .51394E-04   -1.4145    
  22  norm          1.0671        .30532        .20405E-04   -1.5501    
  23  Prefactor     .10000E-03    41.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .80853        38.065        .44582E-02   -1.5528    
  26  Normalizat    .64004        .19663        .25328E-03   -1.0631    
  27  Prefactor     1.1493        .23536        .24530E-03   -.87906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07797e-09
Minuit parameter uncertainties:
  1  8.5041
  2  0.000151155
  3  27.2031
  4  19.8162
  5  4.71119e-06
  6  5.75439e-05
  7  1.12416e-05
  8  5.66006e-05
  9  6.82552
  10  3.5756
  11  34.2744
  12  9.23001e-06
  13  5.24049e-05
  14  50.2826
  15  2.44904e-05
  16  2.85535
  17  1.2684e-05
  18  32.4294
  19  28.7268
  20  2.86575e-05
  21  19.5512
  22  0.305319
  23  0.00022115
  24  2.64037e-05
  25  11.1022
  26  0.19685
  27  0.235571
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  9.230e-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:  1.149e+00  2.356e-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:  6.400e-01  1.969e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724066/likelihoodResults_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.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) = 5170.14046524
delta logL = -0.00221784820769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5170.13824746
delta logL = -6.4360392571e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5950       1.0000          .0000       10.000    
     3 'Normalizat'    .64006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1493       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=   5170.103     FROM MIGRAD    STATUS=FAILED       188 CALLS      337 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91946E-02    .47254E-03** at limit **
   2  Index         8.3593        8.7327        .50000        .84296E-04
   3  Normalizat    .62736        .20524E-01    .25328E-03    .99871E-03
   4  Prefactor     1.1601        .26065E-01    .24530E-03    .80376E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5170.103     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      477 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91946E-02    .15497E-04** at limit **
   2  Index         8.3593        8.7327        .39272E-02    .84296E-04
   3  Normalizat    .62736        .20524E-01    .16617E-04    .99871E-03
   4  Prefactor     1.1601        .26065E-01    .11222E-04    .80376E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5170.103     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      564 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .40535E-01    .42285E-03** at limit **
   2  Index         8.3592        5.8160        .46890E-02   -.39957E-05
   3  Normalizat    .62736        .44401E-01    .10131E-04    .86249E-03
   4  Prefactor     1.1601        .56451E-01    .98120E-05    .73041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.35925
  Normalizat = 0.627363
  Prefactor  = 1.16009
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.103     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      599 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .42490E-01    .41778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3592        5.7948        .18756E-03    .73670    
   3  Normalizat    .62736        .45330E-01    .20262E-05   -1.0683    
   4  Prefactor     1.1601        .57640E-01    .19624E-05   -.87568    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36496e-10
Minuit parameter uncertainties:
  1  3.59204e-07
  2  20.7106
  3  0.0453324
  4  0.0576433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724066': 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) = 5170.10270365
delta logL = 0.0355437464777

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.592e-07  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  8.359e+00  2.071e+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.160e+00  5.764e-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:  6.274e-01  4.533e-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/724066/cmap_HighResolution_653529601_653788801_4FGL_J1018.4+3540_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-09-20 00:36:03.340725', job_id='724066', GAL2='1.16', fit_tolerance='1e-08', EG2='0.63', EG='0.64', time_epoch_completed='1632123363.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.55e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1598' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:36:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 724066: <4FGL_J1018.4+3540_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1598> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Sep 20 00:20:30 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:20:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:20:32 2021
Terminated at Mon Sep 20 00:36:03 2021
Results reported at Mon Sep 20 00:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1598 154.607 35.6802 653529601 653788801 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 :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

