/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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin60
RA = 154.617, Dec = 5.4702
tmin = 254880001, tmax = 255139201
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='802327', job_status='RUN', time_executed='2021-09-01 17:22:24.046135', time_epoch_executed='1630542144.05' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802327

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802327/ft1_4FGL_J1018.4+0528_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802327/ft1_4FGL_J1018.4+0528_daily_bin60.fits outfile=/scratch/kocevski/802327/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin60.fits ra=154.617 dec=5.4702 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.48
user 1.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.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/802327/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.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.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/802327/ltcube_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.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/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits
.....................!
real 19.63
user 19.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/802327/ltcube_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.fits outfile=/scratch/kocevski/802327/expmap_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.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/802327/ltcube_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.fits
.....................!
real 194.25
user 188.02
sys 5.18

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits scfile=/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits outfile=/scratch/kocevski/802327/cmap_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.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.617 yref=5.4702 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits scfile=/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits outfile=/scratch/kocevski/802327/cmap_HighResolution_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.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.617 yref=5.4702 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/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802327/Model_4FGL_J1018.4+0528_daily_bin60.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/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits.....................!
real 62.88
user 61.35
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits', '/scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits', expMap='/scratch/kocevski/802327/expmap_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.fits', expCube='/scratch/kocevski/802327/ltcube_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/802327/Model_4FGL_J1018.4+0528_daily_bin60.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/802327/ft1_filtered_4FGL_J1018.4+0528_daily_bin60.fits
Spacecraft file(s): /scratch/kocevski/802327/ft2_4FGL_J1018.4+0528_daily_bin60.fits
Exposure map: /scratch/kocevski/802327/expmap_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.fits
Exposure cube: /scratch/kocevski/802327/ltcube_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/802327/Model_4FGL_J1018.4+0528_daily_bin60.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) = 6403.58194414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4013       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32845E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11373E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4560       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5830       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7043       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4772       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9056       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73532       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6403.564     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2055 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4013        1.1173       -.26309E-06   -.27649E-02
   2  norm          1.2891        .64604       -.21382E-07   -.56458E-03
   3  Prefactor     .10001E-03    11.217        .11894E-05** at limit **
   4  Prefactor     .10000E-03    36.148       -.56071E-06** at limit **
   5  Prefactor     .10000E-03    21.907       -.22696E-06** at limit **
   6  norm          30.111        19.217        .86585E-06   -.26525E-03
   7  Prefactor     32.167        16.058       -.12882E-04   -.14933E-03
   8  Prefactor     .10000E-03    14.079        .21923E-06** at limit **
   9  Prefactor     63.384        60.548        .42082E-04   -.51130E-04
  10  Prefactor     .10000E-03    8.3359       -.94074E-07** at limit **
  11  norm          1.4558        1.0368       -.93647E-08   -.19600E-03
  12  Prefactor     .10000E-03    3.6181       -.48338E-08** at limit **
  13  Prefactor     3.5827        2.6143        .24875E-06   -.14486E-03
  14  Prefactor     5.7038        6.2020        .32720E-05   -.69083E-04
  15  Prefactor     5.4768        6.1249       -.47688E-05   -.29347E-03
  16  norm          2.7399        .67860        .80665E-07    .18155E-03
  17  Prefactor     .10000E-03    9.8163       -.12105E-06** at limit **
  18  Prefactor     3.9060        14.991       -.38571E-07   -.60845E-04
  19  Normalizat    1.0097        .17742        .39801E-06   -.95311E-04
  20  Prefactor     .73535        .14225        .27443E-06   -.79146E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40131
  norm       = 1.28905
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.1114
  Prefactor  = 32.1673
  Prefactor  = 0.0001
  Prefactor  = 63.3837
  Prefactor  = 0.0001
  norm       = 1.45581
  Prefactor  = 0.0001
  Prefactor  = 3.58269
  Prefactor  = 5.70378
  Prefactor  = 5.47681
  norm       = 2.73993
  Prefactor  = 0.0001
  Prefactor  = 3.90602
  Normalizat = 1.00972
  Prefactor  = 0.735354
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.564     FROM HESSE     STATUS=OK           303 CALLS     2358 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4013        1.1220        .18324E-03   -1.5471    
   2  norm          1.2891        .63668        .42966E-04   -1.5481    
   3  Prefactor     .10001E-03    15.953        .72960E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.111        19.458        .73026E-04   -1.4610    
   7  Prefactor     32.167        16.075        .70651E-04   -1.4573    
   8  Prefactor     .10000E-03    14.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.384        60.362        .50424E-04   -1.4114    
  10  Prefactor     .10000E-03    8.3425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4558        1.0319        .66184E-04   -1.5467    
  12  Prefactor     .10000E-03    3.7341        .29707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5827        2.6102        .10513E-03   -1.5329    
  14  Prefactor     5.7038        6.2029        .16818E-03   -1.5230    
  15  Prefactor     5.4768        6.1376        .17169E-03   -1.5240    
  16  norm          2.7399        .67601        .31316E-04   -1.5377    
  17  Prefactor     .10000E-03    10.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9060        14.977        .20415E-03   -1.5313    
  19  Normalizat    1.0097        .20644        .24851E-03   -.92705    
  20  Prefactor     .73535        .16507        .23925E-03   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.032e-10
Minuit parameter uncertainties:
  1  1.12197
  2  0.63668
  3  0.000594946
  4  5.46059e-06
  5  7.96594e-06
  6  19.4617
  7  16.0767
  8  3.81732e-05
  9  60.4202
  10  5.84587e-05
  11  1.03195
  12  2.35517e-06
  13  2.61032
  14  6.20358
  15  6.13831
  16  0.676009
  17  5.04235e-05
  18  14.9913
  19  0.206603
  20  0.16518
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  6.338e+01  6.042e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.354e-01  1.652e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.010e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.62e-05

TS (Fixed Index): 2.59
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802327/likelihoodResults_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.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) = 6402.81724069
delta logL = 0.747174728588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6402.81718857
delta logL = 0.747226847033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.89       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6117       1.0000          .0000       10.000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6402.817     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      293 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.06        88.124        .19099E-03   -.57740E-05
   2  Index         1.6122        .49691        .90468E-02   -.65107E-05
   3  Normalizat    1.0335        .19616        .24613E-03    .20000E-04
   4  Prefactor     .72366        .16387        .24105E-03    .42444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.062
  Index      = 1.61222
  Normalizat = 1.03345
  Prefactor  = 0.723662
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.817     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.06        88.381        .76394E-05   -1.3596    
   2  Index         1.6122        .49833        .36187E-03   -.74444    
   3  Normalizat    1.0335        .19631        .98451E-05   -.91918    
   4  Prefactor     .72366        .16401        .48211E-04   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61636e-10
Minuit parameter uncertainties:
  1  88.4857
  2  0.49987
  3  0.196448
  4  0.164123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802327': 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) = 6402.81718606
delta logL = 0.74722935763

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.111e+02  8.849e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.612e+00  4.999e-01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.237e-01  1.641e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.033e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 154.617 5.470
Photon Index (Free Index): 1.61 +/- 0.50
Photon Flux (Free Index): 2.16e-08 +/- 2.43e-08
Energy Flux (Free Index): 4.69e-05 +/- 5.45e-05

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/802327/cmap_HighResolution_254880001_255139201_4FGL_J1018.4+0528_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='4.69e-05', photon_flux_error='4.17e-08', dlogl='7.47e-01', energy_flux='1.70e-05', photon_flux2='2.16e-08', job_status='DONE', time_completed='2021-09-01 17:32:14.315585', photon_index_error2='0.50', photon_index2='1.61', ts='2.59', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='5.45e-05', EG='1.01', time_epoch_completed='1630542734.32', return_code='0', job_id='802327', GAL2='0.72', EG2='1.03', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='2.43e-08', ts2='4.14', photon_index='2.28' WHERE bin_id='60' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 802327: <4FGL_J1018.4+0528_daily_bin60> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin60> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:21:02 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:11 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:22:11 2021
Terminated at Wed Sep  1 17:32:15 2021
Results reported at Wed Sep  1 17:32:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin60 154.617 5.4702 254880001 255139201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   588.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             381.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            673 sec.

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

