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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin645
RA = 154.617, Dec = 5.4702
tmin = 406512001, tmax = 406771201
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='805020', job_status='RUN', time_executed='2021-09-01 17:37:19.863724', time_epoch_executed='1630543039.86' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805020/ft1_4FGL_J1018.4+0528_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805020/ft2_4FGL_J1018.4+0528_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805020/ft1_4FGL_J1018.4+0528_daily_bin645.fits outfile=/scratch/kocevski/805020/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin645.fits ra=154.617 dec=5.4702 rad=12.0 tmin=406512001.0 tmax=406771201.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.52
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805020/ft2_4FGL_J1018.4+0528_daily_bin645.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/805020/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin645.fits evtable="EVENTS" outfile="/scratch/kocevski/805020/ft1_filtered_4FGL_J1018.4+0528_daily_bin645.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805020/ft1_filtered_4FGL_J1018.4+0528_daily_bin645.fits" evtable="EVENTS" scfile=/scratch/kocevski/805020/ft2_4FGL_J1018.4+0528_daily_bin645.fits sctable="SC_DATA" outfile=/scratch/kocevski/805020/ltcube_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.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/805020/ft2_4FGL_J1018.4+0528_daily_bin645.fits
.....................!
real 15.23
user 14.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805020/ft1_filtered_4FGL_J1018.4+0528_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/805020/ft2_4FGL_J1018.4+0528_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/805020/ltcube_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.fits outfile=/scratch/kocevski/805020/expmap_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.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/805020/ltcube_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.fits
.....................!
real 192.13
user 186.66
sys 5.02

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/805020/ft1_filtered_4FGL_J1018.4+0528_daily_bin645.fits scfile=/scratch/kocevski/805020/ft2_4FGL_J1018.4+0528_daily_bin645.fits outfile=/scratch/kocevski/805020/cmap_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805020/ft1_filtered_4FGL_J1018.4+0528_daily_bin645.fits scfile=/scratch/kocevski/805020/ft2_4FGL_J1018.4+0528_daily_bin645.fits outfile=/scratch/kocevski/805020/cmap_HighResolution_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.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.59
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75917       1.0000         .10000E-03   10000.    
     2 'norm      '    .72388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13366E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.103       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15252E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14413E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3331       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.859       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96298       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76432       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=   4977.843     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2057 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75937        .90853       -.30534E-08   -.30881E-03
   2  norm          .72393        .65283       -.52241E-08   -.69822E-03
   3  Prefactor     16.376        13.410       -.10408E-04   -.18872E-03
   4  Prefactor     41.201        41.915       -.53041E-05   -.68954E-05
   5  Prefactor     .10000E-03    23.118        .16908E-06** at limit **
   6  norm          30.131        20.087        .12628E-04   -.20427E-03
   7  Prefactor     .10000E-03    8.7737        .43040E-06** at limit **
   8  Prefactor     .10000E-03    252.26        .46608E-04** at limit **
   9  Prefactor     15.942        60.754       -.17346E-04   -.12789E-03
  10  Prefactor     .10000E-03    46.741        .29952E-05** at limit **
  11  norm          2.8433        1.6468        .10761E-06   -.25430E-03
  12  Prefactor     .10000E-03    2.5515       -.18334E-07** at limit **
  13  Prefactor     3.3315        3.3871       -.20807E-06   -.45549E-03
  14  Prefactor     21.855        10.995        .35479E-05   -.31209E-04
  15  Prefactor     .10000E-03    5.6664       -.14090E-07** at limit **
  16  norm          .42787        .34229        .14323E-07    .32575E-05
  17  Prefactor     .10000E-03    2.0847        .43022E-07** at limit **
  18  Prefactor     12.161        11.984       -.47195E-05    .18931E-04
  19  Normalizat    .96300        .18700        .70015E-06   -.22908E-03
  20  Prefactor     .76420        .14890        .25013E-06   -.14229E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.759366
  norm       = 0.723932
  Prefactor  = 16.3756
  Prefactor  = 41.2011
  Prefactor  = 0.0001
  norm       = 30.1307
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.9417
  Prefactor  = 0.000100003
  norm       = 2.84331
  Prefactor  = 0.0001
  Prefactor  = 3.33151
  Prefactor  = 21.8553
  Prefactor  = 0.0001
  norm       = 0.427865
  Prefactor  = 0.0001
  Prefactor  = 12.1611
  Normalizat = 0.962998
  Prefactor  = 0.7642
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.843     FROM HESSE     STATUS=OK           293 CALLS     2350 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75937        .87492        .70388E-03   -1.5534    
   2  norm          .72393        .63230        .50837E-03   -1.5538    
   3  Prefactor     16.376        13.420        .98938E-04   -1.4898    
   4  Prefactor     41.201        41.973        .62449E-04   -1.4423    
   5  Prefactor     .10000E-03    23.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.131        19.978        .73025E-04   -1.4610    
   7  Prefactor     .10000E-03    8.7945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    255.49        .20458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.942        60.602        .99469E-04   -1.4909    
  10  Prefactor     .10000E-03    47.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8433        1.6418        .65379E-04   -1.5371    
  12  Prefactor     .10000E-03    2.5592        .11002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3315        3.3861        .12300E-03   -1.5343    
  14  Prefactor     21.855        11.019        .85671E-04   -1.4773    
  15  Prefactor     .10000E-03    5.7439        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .42787        .34016        .35877E-04   -1.5577    
  17  Prefactor     .10000E-03    2.0874        .99468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.161        11.978        .11490E-03   -1.5010    
  19  Normalizat    .96300        .21617        .23678E-03   -.94281    
  20  Prefactor     .76420        .17203        .22267E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24952e-10
Minuit parameter uncertainties:
  1  0.874933
  2  0.632309
  3  13.4221
  4  42.0026
  5  6.51188e-05
  6  19.9821
  7  9.53988e-05
  8  0.00102873
  9  60.8374
  10  0.000745148
  11  1.64187
  12  3.88531e-06
  13  3.38627
  14  11.0203
  15  5.64705e-06
  16  0.340159
  17  1.34459e-07
  18  11.98
  19  0.21637
  20  0.172152
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.594e+01  6.084e+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.642e-01  1.722e-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:  9.630e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/805020/likelihoodResults_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.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) = 4977.76007828
delta logL = 0.0831012940789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4977.72717669
delta logL = 0.116002890047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5021       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0598       1.0000          .0000       10.000    
     3 'Normalizat'    .94244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77435       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=   4977.727     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5003        1057.1        .15739E-03   -.43600E-03
   2  Index         3.0601        5.3033        .76336E-02   -.14650E-03
   3  Normalizat    .94247        .19387        .23896E-03   -.38164E-03
   4  Prefactor     .77435        .16716        .22129E-03   -.31948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.50034
  Index      = 3.0601
  Normalizat = 0.942473
  Prefactor  = 0.774352
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.727     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5003        32.823        .62956E-05   -1.5198    
   2  Index         3.0601        1.7172        .30534E-03   -.39844    
   3  Normalizat    .94247        .20825        .47792E-04   -.94983    
   4  Prefactor     .77435        .17279        .44259E-04   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76099e-10
Minuit parameter uncertainties:
  1  29.2392
  2  1.75966
  3  0.208426
  4  0.172912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805020': 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) = 4977.72717657
delta logL = 0.116003007619

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  6.500e+00  2.924e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.060e+00  1.760e+00  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.744e-01  1.729e-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:  9.425e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 154.617 5.470

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/805020/cmap_HighResolution_406512001_406771201_4FGL_J1018.4+0528_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-01 17:46:05.578164', job_id='805020', GAL2='0.77', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1630543565.58', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.16e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='645' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 805020: <4FGL_J1018.4+0528_daily_bin645> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin645> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:38 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:33:40 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:33:40 2021
Terminated at Wed Sep  1 17:46:06 2021
Results reported at Wed Sep  1 17:46:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin645 154.617 5.4702 406512001 406771201 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 :                                   526.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             255.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            928 sec.

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

