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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin993
RA = 154.617, Dec = 5.4702
tmin = 496713601, tmax = 496972801
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='806604', job_status='RUN', time_executed='2021-09-01 17:39:55.141813', time_epoch_executed='1630543195.14' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806604/ft1_4FGL_J1018.4+0528_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806604/ft2_4FGL_J1018.4+0528_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806604/ft1_4FGL_J1018.4+0528_daily_bin993.fits outfile=/scratch/kocevski/806604/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin993.fits ra=154.617 dec=5.4702 rad=12.0 tmin=496713601.0 tmax=496972801.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.02
user 4.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806604/ft2_4FGL_J1018.4+0528_daily_bin993.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/806604/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/806604/ft1_filtered_4FGL_J1018.4+0528_daily_bin993.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.53
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806604/ft1_filtered_4FGL_J1018.4+0528_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/806604/ft2_4FGL_J1018.4+0528_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/806604/ltcube_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.fits outfile=/scratch/kocevski/806604/expmap_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.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/806604/ltcube_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.fits
.....................!
real 191.71
user 185.83
sys 4.66

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/806604/ft1_filtered_4FGL_J1018.4+0528_daily_bin993.fits scfile=/scratch/kocevski/806604/ft2_4FGL_J1018.4+0528_daily_bin993.fits outfile=/scratch/kocevski/806604/cmap_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.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.63
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806604/ft1_filtered_4FGL_J1018.4+0528_daily_bin993.fits scfile=/scratch/kocevski/806604/ft2_4FGL_J1018.4+0528_daily_bin993.fits outfile=/scratch/kocevski/806604/cmap_HighResolution_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4647       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24506E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.543       1.0000         .10000E-03   10000.    
    16 'norm      '    .77742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.783       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3147       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86485       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=   4638.553     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2065 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .67672        .39216E-06** at limit **
   2  norm          1.4648        .84479       -.24927E-07   -.24531E-05
   3  Prefactor     12.040        18.390        .14624E-05    .14349E-03
   4  Prefactor     41.195        56.062       -.31005E-05   -.11982E-03
   5  Prefactor     .10000E-03    34.688       -.51066E-06** at limit **
   6  norm          .10000E-03    10.414       -.27210E-06** at limit **
   7  Prefactor     .10000E-03    13.257       -.26121E-05** at limit **
   8  Prefactor     11.916        182.62       -.32709E-04   -.12412E-03
   9  Prefactor     59.451        70.297       -.83925E-06   -.13286E-03
  10  Prefactor     .10002E-03    63.011       -.15034E-04** at limit **
  11  norm          3.9357        2.5642        .10174E-06    .17937E-03
  12  Prefactor     .10000E-03    4.6601        .13511E-06** at limit **
  13  Prefactor     8.3217        5.9950        .11652E-06    .96159E-04
  14  Prefactor     8.9806        14.239       -.52136E-06    .24424E-04
  15  Prefactor     17.544        13.343       -.13639E-05   -.73835E-05
  16  norm          .77740        .56623       -.43365E-06   -.54554E-03
  17  Prefactor     4.0548        13.072        .11903E-04   -.12425E-03
  18  Prefactor     51.771        45.529       -.30374E-05   -.84852E-04
  19  Normalizat    1.3139        .27559        .79467E-05   -.28111E-03
  20  Prefactor     .86545        .20568       -.68502E-05    .24839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.46477
  Prefactor  = 12.0397
  Prefactor  = 41.1947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9165
  Prefactor  = 59.4511
  Prefactor  = 0.000100017
  norm       = 3.93566
  Prefactor  = 0.0001
  Prefactor  = 8.32173
  Prefactor  = 8.98065
  Prefactor  = 17.5444
  norm       = 0.777401
  Prefactor  = 4.05476
  Prefactor  = 51.7706
  Normalizat = 1.31394
  Prefactor  = 0.865454
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.553     FROM HESSE     STATUS=OK           289 CALLS     2354 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .95955        .10797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4648        .83644        .45308E-04   -1.5466    
   3  Prefactor     12.040        18.516        .11551E-03   -1.5014    
   4  Prefactor     41.195        56.330        .62438E-04   -1.4423    
   5  Prefactor     .10000E-03    34.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.916        194.14        .11563E-03   -1.5017    
   9  Prefactor     59.451        69.699        .26007E-03   -1.4164    
  10  Prefactor     .10002E-03    63.853        .40075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9357        2.5594        .82513E-04   -1.5311    
  12  Prefactor     .10000E-03    4.6889        .14354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3217        5.9977        .13035E-03   -1.5131    
  14  Prefactor     8.9806        14.285        .13378E-03   -1.5109    
  15  Prefactor     17.544        13.320        .95623E-04   -1.4870    
  16  norm          .77740        .57269        .39878E-04   -1.5532    
  17  Prefactor     4.0548        13.437        .10012E-02   -1.5305    
  18  Prefactor     51.771        45.613        .55733E-04   -1.4268    
  19  Normalizat    1.3139        .31524        .27341E-03   -.83151    
  20  Prefactor     .86545        .23521        .26381E-03   -.97359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37192e-09
Minuit parameter uncertainties:
  1  2.83673e-05
  2  0.836449
  3  18.5243
  4  56.4025
  5  4.44482e-05
  6  1.95249e-05
  7  0.00015139
  8  96.5683
  9  69.7949
  10  0.00209494
  11  2.55947
  12  4.01002e-06
  13  5.99816
  14  14.29
  15  13.3222
  16  0.572697
  17  13.4466
  18  45.6434
  19  0.315706
  20  0.235487
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.945e+01  6.979e+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:  8.655e-01  2.355e-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.314e+00  3.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/806604/likelihoodResults_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.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) = 4637.32409125
delta logL = 1.22880975804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4637.27436067
delta logL = 1.27854034125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.407       1.0000         .10000E-03   10000.    
     2 'Index     '    .90324       1.0000          .0000       10.000    
     3 'Normalizat'    1.3545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84849       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=   4637.274     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.424        58.118        .81763E-05   -.28095E-04
   2  Index         .90319        .68650        .36967E-04    .61965E-05
   3  Normalizat    1.3546        .24130       -.17951E-06   -.42467E-04
   4  Prefactor     .84849        .19451        .86011E-07   -.37982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4238
  Index      = 0.903189
  Normalizat = 1.35459
  Prefactor  = 0.848488
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.274     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.424        58.020        .64674E-04   -1.4467    
   2  Index         .90319        .68370        .11086E-02   -.96030    
   3  Normalizat    1.3546        .28278        .26981E-03   -.81951    
   4  Prefactor     .84849        .22802        .26613E-03   -.97965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42091e-12
Minuit parameter uncertainties:
  1  58.1055
  2  0.690352
  3  0.283107
  4  0.228273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806604': 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) = 4637.27436046
delta logL = 1.27854054807

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.842e+01  5.811e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  9.032e-01  6.904e-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:  8.485e-01  2.283e-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.355e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 154.617 5.470
Photon Index (Free Index): 0.90 +/- 0.69
Photon Flux (Free Index): 5.54e-09 +/- 6.41e-09
Energy Flux (Free Index): 1.00e-04 +/- 1.45e-04

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/806604/cmap_HighResolution_496713601_496972801_4FGL_J1018.4+0528_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='1.00e-04', photon_flux_error='4.82e-08', dlogl='1.28e+00', energy_flux='1.60e-05', photon_flux2='5.54e-09', job_status='DONE', time_completed='2021-09-01 17:48:32.667794', photon_index_error2='0.69', photon_index2='0.90', ts='1.79', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.45e-04', EG='1.31', time_epoch_completed='1630543712.67', return_code='0', job_id='806604', GAL2='0.85', EG2='1.35', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.41e-09', ts2='4.32', photon_index='2.28' WHERE bin_id='993' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:48:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 806604: <4FGL_J1018.4+0528_daily_bin993> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin993> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:36:04 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:37:48 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:37:48 2021
Terminated at Wed Sep  1 17:48:33 2021
Results reported at Wed Sep  1 17:48:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin993 154.617 5.4702 496713601 496972801 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 :                                   515.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            749 sec.

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

