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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin1225
RA = 154.617, Dec = 5.4702
tmin = 556848001, tmax = 557107201
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='808018', job_status='RUN', time_executed='2021-09-01 17:41:41.920823', time_epoch_executed='1630543301.92' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808018/ft1_4FGL_J1018.4+0528_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808018/ft1_4FGL_J1018.4+0528_daily_bin1225.fits outfile=/scratch/kocevski/808018/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin1225.fits ra=154.617 dec=5.4702 rad=12.0 tmin=556848001.0 tmax=557107201.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.61
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.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/808018/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/808018/ltcube_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.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/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits
.....................!
real 17.61
user 17.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/808018/ltcube_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.fits outfile=/scratch/kocevski/808018/expmap_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.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/808018/ltcube_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.fits
.....................!
real 194.69
user 189.39
sys 4.81

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/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.fits scfile=/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits outfile=/scratch/kocevski/808018/cmap_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.fits scfile=/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits outfile=/scratch/kocevski/808018/cmap_HighResolution_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.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.55
user 0.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.fits', '/scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits', expMap='/scratch/kocevski/808018/expmap_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.fits', expCube='/scratch/kocevski/808018/ltcube_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808018/Model_4FGL_J1018.4+0528_daily_bin1225.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/808018/ft1_filtered_4FGL_J1018.4+0528_daily_bin1225.fits
Spacecraft file(s): /scratch/kocevski/808018/ft2_4FGL_J1018.4+0528_daily_bin1225.fits
Exposure map: /scratch/kocevski/808018/expmap_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.fits
Exposure cube: /scratch/kocevski/808018/ltcube_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808018/Model_4FGL_J1018.4+0528_daily_bin1225.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 792.176036214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 790.306120753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.712       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11221E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17005       1.0000         .10000E-03   10000.    
     6 'norm      '    .93066E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14736       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    245.10       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5381       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69546E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15230E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17339E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.508       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .55559       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0940       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   790.2363     FROM MIGRAD    STATUS=CONVERGED    238 CALLS      590 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.125        10.828        .22002E-02    .67702E-02
   2  norm          3.2284        2.5208        .57282E-02    1.1105    
   3  Prefactor     .10000E-03    105.58        .90791E-02** at limit **
   4  Prefactor     31.679        162.64        .29348E-02    .14918E-02
   5  Prefactor     .10000E-03    46.405        .98401E-02** at limit **
   6  norm          .10000E-03    96.585        .94781E-02** at limit **
   7  Prefactor     .10000E-03    43.933        .97347E-02** at limit **
   8  Prefactor     .30435E-02    566.05        .46594E-02    .47009E-02
   9  Prefactor     .81638E-03    410.44        .41888E-02** at limit **
  10  Prefactor     247.27        245.61        .64672E-03   -.64497E-01
  11  norm          2.4887        6.1683        .64088E-02    .25556    
  12  Prefactor     .10000E-03    21.829        .90712E-02** at limit **
  13  Prefactor     .10000E-03    38.436        .93650E-02** at limit **
  14  Prefactor     4.0911        1.0077         .0000         .0000    
  15  Prefactor     .10000E-03    .26160        .12723E-04** at limit **
  16  norm          .10000E-03    .20571        .69570E-05** at limit **
  17  Prefactor     .10000E-03    .20571       -.34996E-05** at limit **
  18  Prefactor     93.043        2.4412        .76636E-04    .77589E-03
  19  Normalizat    .48698        .83595       -.11773E-03   -.44873E-05
  20  Prefactor     1.1058        1.1579        .69568E-04    .50614E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1246
  norm       = 3.22841
  Prefactor  = 0.0001
  Prefactor  = 31.6786
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00304352
  Prefactor  = 0.000816382
  Prefactor  = 247.275
  norm       = 2.48866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.09108
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.0433
  Normalizat = 0.486977
  Prefactor  = 1.10575
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   790.2363     FROM HESSE     STATUS=FAILED        37 CALLS      627 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.125        10.828        .22002E-02   -1.4788    
   2  norm          3.2284        2.5208        .57282E-02   -1.5349    
   3  Prefactor     .10000E-03    105.58        .90791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.679        162.64        .29348E-02   -1.4582    
   5  Prefactor     .10000E-03    46.405        .98401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    96.585        .94781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.933        .97347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .30435E-02    566.05        .46594E-02   -1.5697    
   9  Prefactor     .81638E-03    410.44        .41888E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     247.27        245.61        .64672E-03   -1.2550    
  11  norm          2.4887        6.1683        .64088E-02   -1.5392    
  12  Prefactor     .10000E-03    21.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.436        .93650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     541.13        536.98         .0000       -1.5303    
  15  Prefactor     .10000E-03    .26160        .12723E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .69570E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571       -.34996E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     93.043        2.4412        .76636E-04   -1.3776    
  19  Normalizat    .48698        .83595       -.11773E-03   -1.1302    
  20  Prefactor     1.1058        1.1579        .69568E-04   -.89283    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.49671e-09
Minuit parameter uncertainties:
  1  10.829
  2  2.52084
  3  0.000300286
  4  144.182
  5  0.000152214
  6  0.000366039
  7  0.000336206
  8  2.6066
  9  1.09205
  10  246.641
  11  6.16985
  12  7.75211e-05
  13  0.000256594
  14  1.00767
  15  4.53115e-05
  16  9.11113e-07
  17  1.6063e-06
  18  2.44116
  19  0.859046
  20  1.186
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 790.236294112

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  8.164e-04  1.092e+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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.106e+00  1.186e+00  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:  4.870e-01  8.590e-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.32e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808018/likelihoodResults_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.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) = 790.236294065
delta logL = 4.71283101433e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 790.236294034
delta logL = 7.85141764936e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2835       1.0000          .0000       10.000    
     3 'Normalizat'    .48707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1057       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   790.2363     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      258 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    241.14        .20948E-01** at limit **
   2  Index         2.4323        8.0931        .50000        .34417E-06
   3  Normalizat    .48698        .12273E-01    .44379E-03    .10247E-06
   4  Prefactor     1.1058        .90814E-02    .22224E-03    .13045E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43231
  Normalizat = 0.486978
  Prefactor  = 1.10575
 **********
 **   18 **HESSE 
 **********

 FCN=   790.2363     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1880.6        .41895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4323        6.0858        .50000       -.53930    
   3  Normalizat    .48698        .35469E-01    .17752E-04   -1.1302    
   4  Prefactor     1.1058        .26245E-01    .44448E-04   -.89283    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16695e-08
Minuit parameter uncertainties:
  1  2.4843e-06
  2  2833.52
  3  0.0354707
  4  0.0262454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808018': 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) = 790.236293263
delta logL = 8.49071057019e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.484e-06  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.432e+00  2.834e+03  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.106e+00  2.625e-02  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:  4.870e-01  3.547e-02  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/808018/cmap_HighResolution_556848001_557107201_4FGL_J1018.4+0528_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-01', job_status='DONE', photon_flux_upper_limit='1.32e-06', time_completed='2021-09-01 17:47:24.308195', job_id='808018', GAL2='1.11', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1630543644.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.11', dlogl='8.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1225' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:47:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 808018: <4FGL_J1018.4+0528_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin1225 154.617 5.4702 556848001 557107201 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 :                                   341.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             495.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   355 sec.
    Turnaround time :                            394 sec.

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

