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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin455
RA = 154.617, Dec = 5.4702
tmin = 357264001, tmax = 357523201
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='803920', job_status='RUN', time_executed='2021-09-01 17:32:05.450936', time_epoch_executed='1630542725.45' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803920/ft1_4FGL_J1018.4+0528_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803920/ft1_4FGL_J1018.4+0528_daily_bin455.fits outfile=/scratch/kocevski/803920/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin455.fits ra=154.617 dec=5.4702 rad=12.0 tmin=357264001.0 tmax=357523201.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.67
user 3.40
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/803920/ltcube_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.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/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits
.....................!
real 18.39
user 17.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/803920/ltcube_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.fits outfile=/scratch/kocevski/803920/expmap_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.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/803920/ltcube_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.fits
.....................!
real 191.50
user 185.75
sys 4.85

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/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits scfile=/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits outfile=/scratch/kocevski/803920/cmap_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits scfile=/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits outfile=/scratch/kocevski/803920/cmap_HighResolution_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803920/Model_4FGL_J1018.4+0528_daily_bin455.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/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits.....................!
real 61.35
user 59.87
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits', '/scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits', expMap='/scratch/kocevski/803920/expmap_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.fits', expCube='/scratch/kocevski/803920/ltcube_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803920/Model_4FGL_J1018.4+0528_daily_bin455.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/803920/ft1_filtered_4FGL_J1018.4+0528_daily_bin455.fits
Spacecraft file(s): /scratch/kocevski/803920/ft2_4FGL_J1018.4+0528_daily_bin455.fits
Exposure map: /scratch/kocevski/803920/expmap_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.fits
Exposure cube: /scratch/kocevski/803920/ltcube_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803920/Model_4FGL_J1018.4+0528_daily_bin455.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) = 6241.19069397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99867       1.0000         .10000E-03   10000.    
     6 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.308       1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.529       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0375       1.0000         .10000E-03   10000.    
    11 'norm      '    .84367E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41127       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.630       1.0000         .10000E-03   10000.    
    16 'norm      '    .73693       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4214       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .72075       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=   6241.171     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2182 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0724        .35063E-06** at limit **
   2  norm          .33115        .46568        .16443E-06    .61387E-03
   3  Prefactor     .10000E-03    10.195       -.33080E-05** at limit **
   4  Prefactor     .10000E-03    49.999        .36095E-06** at limit **
   5  Prefactor     .98167        21.157       -.18881E-05    .30656E-03
   6  norm          .10000E-03    11.684       -.47117E-05** at limit **
   7  Prefactor     11.150        27.498        .13217E-04    .59195E-04
   8  Prefactor     17.154        67.137        .69719E-05   -.24021E-05
   9  Prefactor     86.257        171.90       -.42598E-04    .11679E-04
  10  Prefactor     7.9516        30.368        .14220E-04   -.53456E-05
  11  norm          .83491E-01    .60730        .22736E-06   -.11265E-04
  12  Prefactor     .10000E-03    4.2783        .16346E-06** at limit **
  13  Prefactor     .40921        2.2811        .11130E-05   -.15919E-03
  14  Prefactor     .10000E-03    4.3615        .14224E-06** at limit **
  15  Prefactor     25.629        10.231       -.26933E-06   -.23123E-03
  16  norm          .73689        .44996        .35474E-07   -.81720E-04
  17  Prefactor     .10000E-03    3.5204        .84010E-07** at limit **
  18  Prefactor     .10000E-03    12.900        .12973E-06** at limit **
  19  Normalizat    1.4213        .19561       -.11673E-05   -.24761E-03
  20  Prefactor     .72090        .15098       -.14133E-05   -.15910E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.331149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.981667
  norm       = 0.0001
  Prefactor  = 11.1504
  Prefactor  = 17.1542
  Prefactor  = 86.2575
  Prefactor  = 7.95157
  norm       = 0.0834912
  Prefactor  = 0.0001
  Prefactor  = 0.409214
  Prefactor  = 0.0001
  Prefactor  = 25.6286
  norm       = 0.73689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42133
  Prefactor  = 0.720902
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.171     FROM HESSE     STATUS=OK           303 CALLS     2485 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3040        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33115        .43117        .61175E-03   -1.5593    
   3  Prefactor     .10000E-03    10.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .98167        136.96        .69336E-02   -1.5510    
   6  norm          .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.150        27.512        .11945E-03   -1.5040    
   8  Prefactor     17.154        67.322        .96271E-04   -1.4879    
   9  Prefactor     86.257        171.47        .21719E-03   -1.3848    
  10  Prefactor     7.9516        30.129        .14142E-03   -1.5144    
  11  norm          .83491E-01    3.1073        .11754E-02   -1.5650    
  12  Prefactor     .10000E-03    4.4204        .31900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40921        4.1938        .22150E-02   -1.5580    
  14  Prefactor     .10000E-03    4.3880        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.629        10.143        .79128E-04   -1.4695    
  16  norm          .73689        .44718        .39893E-04   -1.5536    
  17  Prefactor     .10000E-03    3.5315        .14465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4213        .22858        .23833E-03   -.80014    
  20  Prefactor     .72090        .17816        .25828E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5887e-08
Minuit parameter uncertainties:
  1  2.94576e-05
  2  0.431169
  3  7.9071e-05
  4  0.000170315
  5  23.2439
  6  7.95569e-05
  7  27.5433
  8  67.6226
  9  172.47
  10  30.1867
  11  1.01813
  12  2.15352e-05
  13  2.61998
  14  8.5989e-06
  15  10.1435
  16  0.447182
  17  5.86027e-06
  18  1.54546e-05
  19  0.228748
  20  0.1783
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  8.626e+01  1.725e+02  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.209e-01  1.783e-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.421e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 1.19e-07
Energy Flux (Fixed Index): 2.32e-05 +/- 4.63e-05

TS (Fixed Index): 1.98
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803920/likelihoodResults_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.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) = 6240.53786286
delta logL = 0.632770405701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6240.51873264
delta logL = 0.651900623255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.849       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1819       1.0000          .0000       10.000    
     3 'Normalizat'    1.3525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75941       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=   6240.519     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      311 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.840        340.21        .89900E-04   -.31248E-03
   2  Index         3.1823        3.2411        .33936E-02   -.17691E-03
   3  Normalizat    1.3522        .25190        .24300E-03    .88823E-03
   4  Prefactor     .75958        .19365        .25231E-03    .65417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8402
  Index      = 3.1823
  Normalizat = 1.35217
  Prefactor  = 0.75958
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.519     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.840        44.490        .35960E-05   -1.4817    
   2  Index         3.1823        .95839        .13574E-03   -.37207    
   3  Normalizat    1.3522        .23039        .48599E-04   -.82022    
   4  Prefactor     .75958        .17997        .50462E-04   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44451e-09
Minuit parameter uncertainties:
  1  44.5642
  2  0.965288
  3  0.230568
  4  0.180113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803920': 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) = 6240.51873134
delta logL = 0.651901920989

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.984e+01  4.456e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.182e+00  9.653e-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.596e-01  1.801e-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.352e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 154.617 5.470
Photon Index (Free Index): 3.18 +/- 0.97
Photon Flux (Free Index): 1.17e-07 +/- 7.92e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.36e-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/803920/cmap_HighResolution_357264001_357523201_4FGL_J1018.4+0528_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='2.15e-05', photon_flux_error='1.19e-07', dlogl='6.52e-01', energy_flux='2.32e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-01 17:42:03.551183', photon_index_error2='0.97', photon_index2='3.18', ts='1.98', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.36e-05', EG='1.42', time_epoch_completed='1630543323.55', return_code='0', job_id='803920', GAL2='0.76', EG2='1.35', return_code2='0', energy_flux_error='4.63e-05', photon_flux_error2='7.92e-08', ts2='3.49', photon_index='2.28' WHERE bin_id='455' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 803920: <4FGL_J1018.4+0528_daily_bin455> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin455> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:58 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:28:00 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:28:00 2021
Terminated at Wed Sep  1 17:42:04 2021
Results reported at Wed Sep  1 17:42:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin455 154.617 5.4702 357264001 357523201 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 :                                   595.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            966 sec.

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

