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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin426
RA = 154.617, Dec = 5.4702
tmin = 349747201, tmax = 350006401
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='803890', job_status='RUN', time_executed='2021-09-01 17:30:42.506566', time_epoch_executed='1630542642.51' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803890

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803890/ft1_4FGL_J1018.4+0528_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803890/ft2_4FGL_J1018.4+0528_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803890/ft1_4FGL_J1018.4+0528_daily_bin426.fits outfile=/scratch/kocevski/803890/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin426.fits ra=154.617 dec=5.4702 rad=12.0 tmin=349747201.0 tmax=350006401.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.54
user 3.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803890/ft1_filtered_4FGL_J1018.4+0528_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/803890/ft2_4FGL_J1018.4+0528_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/803890/ltcube_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.fits outfile=/scratch/kocevski/803890/expmap_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.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/803890/ltcube_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.fits
.....................!
real 192.97
user 187.61
sys 4.72

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/803890/ft1_filtered_4FGL_J1018.4+0528_daily_bin426.fits scfile=/scratch/kocevski/803890/ft2_4FGL_J1018.4+0528_daily_bin426.fits outfile=/scratch/kocevski/803890/cmap_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803890/ft1_filtered_4FGL_J1018.4+0528_daily_bin426.fits scfile=/scratch/kocevski/803890/ft2_4FGL_J1018.4+0528_daily_bin426.fits outfile=/scratch/kocevski/803890/cmap_HighResolution_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.617 yref=5.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0087       1.0000         .10000E-03   10000.    
     2 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9957       1.0000         .10000E-03   10000.    
     6 'norm      '    .10961E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .52524E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.210       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79531       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3157       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=   6378.208     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2075 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0085        1.7324        .34525E-07   -.30984E-04
   2  norm          .10000E-03    .40997        .51036E-07** at limit **
   3  Prefactor     4.2328        13.364        .16129E-05   -.36223E-05
   4  Prefactor     .10000E-03    34.431        .15453E-06** at limit **
   5  Prefactor     9.9616        29.271        .35807E-05   -.27515E-04
   6  norm          .10000E-03    18.883       -.68439E-06** at limit **
   7  Prefactor     25.329        15.581       -.74046E-06   -.11503E-03
   8  Prefactor     .10000E-03    83.123        .21874E-06** at limit **
   9  Prefactor     .10000E-03    135.16        .43091E-05** at limit **
  10  Prefactor     .10000E-03    15.731        .39420E-06** at limit **
  11  norm          .10000E-03    .78407        .20274E-07** at limit **
  12  Prefactor     .10000E-03    4.1299       -.14352E-06** at limit **
  13  Prefactor     1.9713        3.2803        .15518E-06   -.14502E-04
  14  Prefactor     4.2457        8.5498        .19383E-05   -.18039E-04
  15  Prefactor     .10000E-03    10.129        .11806E-06** at limit **
  16  norm          1.5637        .79237       -.15717E-06   -.42857E-04
  17  Prefactor     5.1006        10.851        .21542E-05   -.25858E-04
  18  Prefactor     41.206        25.006        .15446E-06   -.11985E-04
  19  Normalizat    .79537        .20235       -.94952E-06   -.35985E-04
  20  Prefactor     1.3155        .16401        .91418E-07   -.46958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00853
  norm       = 0.0001
  Prefactor  = 4.23285
  Prefactor  = 0.0001
  Prefactor  = 9.96155
  norm       = 0.0001
  Prefactor  = 25.3292
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97129
  Prefactor  = 4.24571
  Prefactor  = 0.0001
  norm       = 1.56371
  Prefactor  = 5.10057
  Prefactor  = 41.2057
  Normalizat = 0.795373
  Prefactor  = 1.31554
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.208     FROM HESSE     STATUS=OK           295 CALLS     2370 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0085        1.7328        .65478E-04   -1.5308    
   2  norm          .10000E-03    1.0084        .97849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2328        13.322        .19617E-03   -1.5296    
   4  Prefactor     .10000E-03    34.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9616        29.065        .12674E-03   -1.5077    
   6  norm          .10000E-03    19.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.329        15.674        .79500E-04   -1.4701    
   8  Prefactor     .10000E-03    83.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    137.17        .21133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .82127        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1751        .15846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9713        3.2579        .17598E-03   -1.5427    
  14  Prefactor     4.2457        8.5999        .97774E-03   -1.5296    
  15  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5637        .79802        .41991E-04   -1.5458    
  17  Prefactor     5.1006        10.948        .89017E-03   -1.5256    
  18  Prefactor     41.206        25.013        .62443E-04   -1.4423    
  19  Normalizat    .79537        .23515        .31878E-03   -1.0024    
  20  Prefactor     1.3155        .19273        .21741E-03   -.82846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83244e-11
Minuit parameter uncertainties:
  1  1.73285
  2  1.46927e-06
  3  13.3311
  4  0.000106646
  5  29.1061
  6  9.96504e-05
  7  15.677
  8  8.99788e-05
  9  0.00066309
  10  4.88778e-05
  11  8.99788e-07
  12  6.6643e-06
  13  3.25818
  14  8.60243
  15  3.21732e-06
  16  0.798022
  17  10.9526
  18  25.0191
  19  0.235447
  20  0.192837
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  6.631e-04  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.316e+00  1.928e-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:  7.954e-01  2.354e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803890/likelihoodResults_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.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) = 6378.20778481
delta logL = -3.46078313669e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6378.20477003
delta logL = 0.00298017197565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59462       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4008       1.0000          .0000       10.000    
     3 'Normalizat'    .79403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3149       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.

 FCN=   6378.204     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      318 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62256        3.4893        .88010E-01    .29760E-03
   2  Index         3.4281        .14913        .50000        .51740E-06
   3  Normalizat    .78789        .53556E-02    .72341E-01    .13890E-04
   4  Prefactor     1.3189        .45919E-02    .49125E-01   -.18758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.622561
  Index      = 3.42808
  Normalizat = 0.78789
  Prefactor  = 1.31894
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.204     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      351 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62256        6526.2        .26752E-02   -1.5550    
   2  Index         3.4281        8.2808        .22500E-02   -.31981    
   3  Normalizat    .78789        .16966        .32015E-03   -1.0052    
   4  Prefactor     1.3189        .11616        .21716E-03   -.82746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68146e-09
Minuit parameter uncertainties:
  1  93.616
  2  50.366
  3  0.169777
  4  0.116186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803890': 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) = 6378.20444061
delta logL = 0.00330959726944

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  6.226e-01  9.362e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.428e+00  5.037e+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.319e+00  1.162e-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:  7.879e-01  1.698e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/803890/cmap_HighResolution_349747201_350006401_4FGL_J1018.4+0528_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-01 17:40:27.522218', job_id='803890', GAL2='1.32', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1630543227.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.31e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='426' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 803890: <4FGL_J1018.4+0528_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin426 154.617 5.4702 349747201 350006401 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 :                                   584.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            873 sec.

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

