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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin244
RA = 154.617, Dec = 5.4702
tmin = 302572801, tmax = 302832001
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='803626', job_status='RUN', time_executed='2021-09-01 17:28:56.730696', time_epoch_executed='1630542536.73' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803626/ft1_4FGL_J1018.4+0528_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803626/ft2_4FGL_J1018.4+0528_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803626/ft1_4FGL_J1018.4+0528_daily_bin244.fits outfile=/scratch/kocevski/803626/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin244.fits ra=154.617 dec=5.4702 rad=12.0 tmin=302572801.0 tmax=302832001.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.57
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803626/ft2_4FGL_J1018.4+0528_daily_bin244.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/803626/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin244.fits evtable="EVENTS" outfile="/scratch/kocevski/803626/ft1_filtered_4FGL_J1018.4+0528_daily_bin244.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/803626/ft1_filtered_4FGL_J1018.4+0528_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/803626/ft2_4FGL_J1018.4+0528_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/803626/ltcube_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.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/803626/ft2_4FGL_J1018.4+0528_daily_bin244.fits
.....................!
real 16.14
user 15.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803626/ft1_filtered_4FGL_J1018.4+0528_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/803626/ft2_4FGL_J1018.4+0528_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/803626/ltcube_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.fits outfile=/scratch/kocevski/803626/expmap_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.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/803626/ltcube_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.fits
.....................!
real 192.04
user 186.79
sys 4.60

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/803626/ft1_filtered_4FGL_J1018.4+0528_daily_bin244.fits scfile=/scratch/kocevski/803626/ft2_4FGL_J1018.4+0528_daily_bin244.fits outfile=/scratch/kocevski/803626/cmap_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803626/ft1_filtered_4FGL_J1018.4+0528_daily_bin244.fits scfile=/scratch/kocevski/803626/ft2_4FGL_J1018.4+0528_daily_bin244.fits outfile=/scratch/kocevski/803626/cmap_HighResolution_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6452       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0889       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .67250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23892E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6277       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3447       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9523       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2645       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=   7784.351     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1774 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6452        1.3612       -.49380E-07   -.24927E-03
   2  norm          1.1571        .65102       -.78124E-07   -.93186E-03
   3  Prefactor     .10000E-03    3.4503        .17290E-06** at limit **
   4  Prefactor     15.706        36.737        .12123E-05   -.43237E-04
   5  Prefactor     .10000E-03    14.552       -.42549E-05** at limit **
   6  norm          6.4164        7.7989        .99034E-06    .44637E-04
   7  Prefactor     3.0906        5.8235        .19261E-05   -.18302E-03
   8  Prefactor     10.813        28.363       -.27705E-04   -.74516E-05
   9  Prefactor     .10000E-03    19.640       -.81333E-05** at limit **
  10  Prefactor     .10000E-03    5.9501        .17687E-06** at limit **
  11  norm          .67129        .99579       -.13281E-06   -.53966E-03
  12  Prefactor     .10019E-03    3.6115        .19446E-05** at limit **
  13  Prefactor     2.9230        3.5397       -.20495E-06   -.66019E-03
  14  Prefactor     3.0981        12.871       -.30544E-05   -.13832E-03
  15  Prefactor     7.6271        6.8080       -.27791E-06   -.15458E-03
  16  norm          1.3447        .67931        .27944E-07   -.74062E-03
  17  Prefactor     2.9531        8.3143       -.92110E-06   -.37015E-03
  18  Prefactor     .10000E-03    18.476        .20595E-05** at limit **
  19  Normalizat    1.1130        .19675        .14823E-05   -.28990E-03
  20  Prefactor     1.2646        .15719       -.22624E-06   -.18967E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64516
  norm       = 1.15707
  Prefactor  = 0.0001
  Prefactor  = 15.706
  Prefactor  = 0.0001
  norm       = 6.41637
  Prefactor  = 3.09056
  Prefactor  = 10.8133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.671287
  Prefactor  = 0.000100192
  Prefactor  = 2.92297
  Prefactor  = 3.09806
  Prefactor  = 7.6271
  norm       = 1.34468
  Prefactor  = 2.95311
  Prefactor  = 0.0001
  Normalizat = 1.11296
  Prefactor  = 1.26459
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.351     FROM HESSE     STATUS=OK           299 CALLS     2073 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6452        1.3591        .70769E-04   -1.5383    
   2  norm          1.1571        .63864        .50360E-04   -1.5493    
   3  Prefactor     .10000E-03    3.4560        .16005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.706        36.821        .10106E-03   -1.4915    
   5  Prefactor     .10000E-03    14.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4164        7.7973        .15846E-03   -1.5201    
   7  Prefactor     3.0906        5.7830        .23076E-03   -1.5356    
   8  Prefactor     10.813        28.305        .12177E-03   -1.5050    
   9  Prefactor     .10000E-03    19.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .67129        .99442        .47824E-04   -1.5544    
  12  Prefactor     .10019E-03    16.876        .31733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9230        3.5286        .17028E-03   -1.5366    
  14  Prefactor     3.0981        13.155        .23036E-03   -1.5356    
  15  Prefactor     7.6271        6.7883        .14520E-03   -1.5156    
  16  norm          1.3447        .70957        .41708E-04   -1.5476    
  17  Prefactor     2.9531        8.7751        .23636E-03   -1.5364    
  18  Prefactor     .10000E-03    18.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1130        .23437        .29241E-03   -.89337    
  20  Prefactor     1.2646        .18828        .23663E-03   -.84366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16121e-08
Minuit parameter uncertainties:
  1  1.3591
  2  0.638639
  3  8.33585e-06
  4  36.8739
  5  1.71816e-05
  6  7.79851
  7  5.78402
  8  28.3403
  9  4.44613e-05
  10  1.00387e-05
  11  0.99444
  12  0.0036017
  13  3.52885
  14  12.7724
  15  6.78901
  16  0.709572
  17  8.77889
  18  8.69241e-06
  19  0.23459
  20  0.188385
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  4.446e-05  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:  1.265e+00  1.884e-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.113e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803626/likelihoodResults_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7784.35117419
delta logL = -0.000242763078859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7784.3509327
delta logL = -1.28288047563e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5793       1.0000          .0000       10.000    
     3 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2646       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=   7784.351     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      285 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10390E-03    2.0158        .18142E-01** at limit **
   2  Index         2.4873        6.3842        .50000        .21778E-04
   3  Normalizat    1.1130        .17432E-02    .29241E-03   -.34602E-05
   4  Prefactor     1.2646        .14987E-02    .23663E-03   -.12155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103901
  Index      = 2.48728
  Normalizat = 1.11296
  Prefactor  = 1.26459
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.351     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10390E-03    40.407        .33277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4873        5.3943        .50000       -.52654    
   3  Normalizat    1.1130        .78040E-02    .11696E-04   -.89337    
   4  Prefactor     1.2646        .67095E-02    .94653E-05   -.84366    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60025e-09
Minuit parameter uncertainties:
  1  0.0251267
  2  172.747
  3  0.00780397
  4  0.00670949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803626': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7784.35093233
delta logL = -9.10092239792e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.039e-04  2.513e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.487e+00  1.727e+02  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:  1.265e+00  6.709e-03  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.113e+00  7.804e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/803626/cmap_HighResolution_302572801_302832001_4FGL_J1018.4+0528_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-01 17:39:20.364066', job_id='803626', GAL2='1.26', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630543160.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='-9.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='244' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:39:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 803626: <4FGL_J1018.4+0528_daily_bin244> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin244> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:34 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:26:14 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:26:14 2021
Terminated at Wed Sep  1 17:39:21 2021
Results reported at Wed Sep  1 17:39:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin244 154.617 5.4702 302572801 302832001 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 :                                   622.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            827 sec.

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

