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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin37
RA = 154.617, Dec = 5.4702
tmin = 248918401, tmax = 249177601
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='802302', job_status='RUN', time_executed='2021-09-01 17:23:17.957325', time_epoch_executed='1630542197.96' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802302

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802302/ft1_4FGL_J1018.4+0528_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802302/ft2_4FGL_J1018.4+0528_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802302/ft1_4FGL_J1018.4+0528_daily_bin37.fits outfile=/scratch/kocevski/802302/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin37.fits ra=154.617 dec=5.4702 rad=12.0 tmin=248918401.0 tmax=249177601.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 2.46
user 1.78
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802302/ft1_filtered_4FGL_J1018.4+0528_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/802302/ft2_4FGL_J1018.4+0528_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/802302/ltcube_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.fits outfile=/scratch/kocevski/802302/expmap_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.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/802302/ltcube_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.fits
.....................!
real 193.35
user 188.09
sys 4.59

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/802302/ft1_filtered_4FGL_J1018.4+0528_daily_bin37.fits scfile=/scratch/kocevski/802302/ft2_4FGL_J1018.4+0528_daily_bin37.fits outfile=/scratch/kocevski/802302/cmap_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802302/ft1_filtered_4FGL_J1018.4+0528_daily_bin37.fits scfile=/scratch/kocevski/802302/ft2_4FGL_J1018.4+0528_daily_bin37.fits outfile=/scratch/kocevski/802302/cmap_HighResolution_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.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/802302/ft1_filtered_4FGL_J1018.4+0528_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/802302/ft2_4FGL_J1018.4+0528_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802302/Model_4FGL_J1018.4+0528_daily_bin37.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/802302/ft1_filtered_4FGL_J1018.4+0528_daily_bin37.fits....................!
real 69.53
user 68.00
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21909       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.571       1.0000         .10000E-03   10000.    
     6 'norm      '    8.7025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72865E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.382       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1112       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.146       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.792       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68065       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1212       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=   6814.259     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     1846 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21859        .62697        .30765E-06   -.32977E-03
   2  norm          3.5733        .82148        .89672E-08   -.68510E-04
   3  Prefactor     1.8550        32.938        .81752E-05    .38742E-04
   4  Prefactor     .10000E-03    16.601       -.42859E-07** at limit **
   5  Prefactor     27.573        27.611        .17852E-06    .17559E-05
   6  norm          8.6387        23.428       -.34284E-05    .62144E-04
   7  Prefactor     55.507        17.362       -.15707E-05   -.43019E-04
   8  Prefactor     .10000E-03    292.15       -.17065E-04** at limit **
   9  Prefactor     26.847        42.563       -.15780E-07    .17995E-04
  10  Prefactor     .10000E-03    5.5961       -.89765E-07** at limit **
  11  norm          .10000E-03    .42211       -.33997E-07** at limit **
  12  Prefactor     5.8621        6.9609       -.62177E-07   -.54543E-04
  13  Prefactor     9.6829        4.5664        .62598E-07    .51437E-04
  14  Prefactor     4.3832        6.5017       -.52550E-06   -.75089E-04
  15  Prefactor     20.382        12.339       -.29106E-07    .12164E-04
  16  norm          1.1109        .71031       -.16014E-07    .74821E-04
  17  Prefactor     17.152        12.349        .37734E-06    .22741E-04
  18  Prefactor     19.792        23.263        .20491E-06    .46469E-05
  19  Normalizat    .68046        .19812       -.63389E-07   -.18429E-04
  20  Prefactor     1.1214        .15991       -.69223E-06    .28977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.218591
  norm       = 3.57328
  Prefactor  = 1.855
  Prefactor  = 0.0001
  Prefactor  = 27.5725
  norm       = 8.63867
  Prefactor  = 55.5073
  Prefactor  = 0.000100001
  Prefactor  = 26.8466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.8621
  Prefactor  = 9.68292
  Prefactor  = 4.38318
  Prefactor  = 20.3818
  norm       = 1.11091
  Prefactor  = 17.1519
  Prefactor  = 19.7924
  Normalizat = 0.680456
  Prefactor  = 1.12135
 **********
 **   18 **HESSE 
 **********

 FCN=   6814.259     FROM HESSE     STATUS=OK           307 CALLS     2153 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21859        .66158        .10495E-02   -1.5614    
   2  norm          3.5733        .82166        .33939E-04   -1.5330    
   3  Prefactor     1.8550        33.731        .31219E-03   -1.5436    
   4  Prefactor     .10000E-03    16.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.573        27.607        .76297E-04   -1.4657    
   6  norm          8.6387        23.526        .13588E-03   -1.5120    
   7  Prefactor     55.507        17.373        .53839E-04   -1.4217    
   8  Prefactor     .10000E-03    290.24        .18634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.847        42.551        .77320E-04   -1.4671    
  10  Prefactor     .10000E-03    5.5961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .55457        .10392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8621        6.9504        .16590E-03   -1.5224    
  13  Prefactor     9.6829        4.5643        .10993E-03   -1.5086    
  14  Prefactor     4.3832        6.5105        .19239E-03   -1.5289    
  15  Prefactor     20.382        12.316        .88718E-04   -1.4805    
  16  norm          1.1109        .70824        .47296E-04   -1.5497    
  17  Prefactor     17.152        12.549        .96724E-04   -1.4879    
  18  Prefactor     19.792        23.254        .90029E-04   -1.4818    
  19  Normalizat    .68046        .22197        .32773E-03   -1.0467    
  20  Prefactor     1.1214        .18136        .22386E-03   -.88787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22305e-08
Minuit parameter uncertainties:
  1  0.661605
  2  0.821663
  3  15.8304
  4  7.63966e-06
  5  27.6196
  6  23.5511
  7  17.3751
  8  0.00100658
  9  42.5992
  10  1.71119e-05
  11  7.83417e-06
  12  6.95137
  13  4.56448
  14  6.51159
  15  12.3176
  16  0.708248
  17  12.5513
  18  23.2647
  19  0.222264
  20  0.181464
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  2.685e+01  4.260e+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:  1.121e+00  1.815e-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:  6.805e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/802302/likelihoodResults_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.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) = 6813.99911632
delta logL = 0.260309223625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6813.98167688
delta logL = 0.277748661733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.834       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6037       1.0000          .0000       10.000    
     3 'Normalizat'    .69080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1166       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=   6813.982     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      309 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.868        54.983        .30989E-03   -.32012E-04
   2  Index         1.6037        .82146        .13348E-01    .79544E-05
   3  Normalizat    .69071        .20884        .32558E-03   -.68788E-05
   4  Prefactor     1.1167        .18032        .22430E-03   -.27725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8679
  Index      = 1.60368
  Normalizat = 0.690712
  Prefactor  = 1.11671
 **********
 **   18 **HESSE 
 **********

 FCN=   6813.982     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.868        55.280        .61978E-04   -1.4413    
   2  Index         1.6037        .82611        .53391E-03   -.74676    
   3  Normalizat    .69071        .20901        .13023E-04   -1.0426    
   4  Prefactor     1.1167        .18048        .89720E-05   -.88934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15438e-11
Minuit parameter uncertainties:
  1  55.3476
  2  0.833255
  3  0.209247
  4  0.180575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802302': 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) = 6813.98167658
delta logL = 0.277748962384

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  4.187e+01  5.535e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.604e+00  8.333e-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:  1.117e+00  1.806e-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:  6.907e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 154.617 5.470
Photon Index (Free Index): 1.60 +/- 0.83
Photon Flux (Free Index): 8.03e-09 +/- 1.53e-08
Energy Flux (Free Index): 1.79e-05 +/- 3.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/802302/cmap_HighResolution_248918401_249177601_4FGL_J1018.4+0528_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='2.78e-01', photon_flux2='8.03e-09', job_status='DONE', time_completed='2021-09-01 17:33:16.790548', photon_index_error2='0.83', photon_index2='1.60', ts='0.76', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='3.40e-05', EG='0.68', time_epoch_completed='1630542796.79', return_code='0', job_id='802302', GAL2='1.12', EG2='0.69', return_code2='0', photon_flux_error2='1.53e-08', ts2='1.32', photon_index='2.28' WHERE bin_id='37' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:33:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 802302: <4FGL_J1018.4+0528_daily_bin37> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin37> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:21:00 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:22:05 2021
Terminated at Wed Sep  1 17:33:17 2021
Results reported at Wed Sep  1 17:33:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin37 154.617 5.4702 248918401 249177601 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 :                                   597.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            737 sec.

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

