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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin1039
RA = 109.516, Dec = 45.6163
tmin = 508636801, tmax = 508896001
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='207888', job_status='RUN', time_executed='2021-08-26 23:26:37.225108', time_epoch_executed='1630045597.23' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207888/ft1_4FGL_J0718.0+4536_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207888/ft1_4FGL_J0718.0+4536_daily_bin1039.fits outfile=/scratch/kocevski/207888/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1039.fits ra=109.516 dec=45.6163 rad=12.0 tmin=508636801.0 tmax=508896001.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 7.31
user 3.48
sys 3.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.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/207888/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1039.fits evtable="EVENTS" outfile="/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.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 4.07
user 0.34
sys 3.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/207888/ltcube_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.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/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits
.....................!
real 16.14
user 11.75
sys 4.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/207888/ltcube_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.fits outfile=/scratch/kocevski/207888/expmap_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.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/207888/ltcube_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.fits
.....................!
real 196.61
user 187.06
sys 8.98

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J0718.0+4536 @ 109.516 45.6163

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits scfile=/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits outfile=/scratch/kocevski/207888/cmap_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.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=109.516 yref=45.6163 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 4.01
user 0.37
sys 3.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits scfile=/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits outfile=/scratch/kocevski/207888/cmap_HighResolution_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.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=109.516 yref=45.6163 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 4.00
user 0.37
sys 3.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207888/Model_4FGL_J0718.0+4536_daily_bin1039.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/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits.....................!
real 89.76
user 83.73
sys 5.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits', '/scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits', expMap='/scratch/kocevski/207888/expmap_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.fits', expCube='/scratch/kocevski/207888/ltcube_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207888/Model_4FGL_J0718.0+4536_daily_bin1039.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0718.0+4536'

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.760e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.248e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  2.201e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/207888/ft1_filtered_4FGL_J0718.0+4536_daily_bin1039.fits
Spacecraft file(s): /scratch/kocevski/207888/ft2_4FGL_J0718.0+4536_daily_bin1039.fits
Exposure map: /scratch/kocevski/207888/expmap_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.fits
Exposure cube: /scratch/kocevski/207888/ltcube_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207888/Model_4FGL_J0718.0+4536_daily_bin1039.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) = 8414.75996994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9578       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.734       1.0000         .10000E-03   10000.    
     8 'norm      '    9.5061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.111       1.0000         .10000E-03   10000.    
    12 'norm      '    .11264E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1482       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11377E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8812       1.0000         .10000E-03   10000.    
    19 'norm      '    19.028       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7078       1.0000         .10000E-03   10000.    
    21 'norm      '    .82914       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66339       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8414.753     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2568 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9700       -.57824E-08** at limit **
   2  norm          .10000E-03    1.9786       -.73320E-07** at limit **
   3  norm          2.9552        4.0509        .57909E-06    .74659E-04
   4  Prefactor     .10000E-03    39.942        .13360E-06** at limit **
   5  norm          1.1818        6.3023        .27899E-06   -.44174E-03
   6  Prefactor     1.1923        8.6808        .28404E-05   -.36289E-03
   7  Prefactor     12.740        15.062       -.10383E-05   -.15281E-03
   8  norm          9.5023        9.3201       -.63684E-06   -.11844E-03
   9  Prefactor     .10000E-03    7.6199        .80630E-08** at limit **
  10  Prefactor     .10000E-03    6.3637       -.43628E-08** at limit **
  11  Prefactor     24.085        29.028        .13131E-05    .11988E-03
  12  norm          .10000E-03    .31752        .38486E-07** at limit **
  13  Prefactor     6.0079        10.861        .93569E-06    .11170E-03
  14  Prefactor     3.1584        20.875       -.25291E-06   -.67631E-04
  15  norm          .10000E-03    1.3553        .69585E-07** at limit **
  16  Prefactor     .10000E-03    3.7634       -.13892E-06** at limit **
  17  Prefactor     19.887        34.598       -.15509E-05   -.98242E-04
  18  Prefactor     2.8821        4.6449        .13694E-05    .22265E-03
  19  norm          19.029        6.1962       -.65563E-07   -.16421E-03
  20  norm          1.7078        1.3340        .62560E-08    .31870E-04
  21  norm          .82947        .54486       -.16608E-07   -.28133E-03
  22  Normalizat    .66313        .19738       -.14434E-05   -.94818E-04
  23  Prefactor     1.1354        .10227        .72585E-09   -.16473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.95518
  Prefactor  = 0.0001
  norm       = 1.18181
  Prefactor  = 1.19227
  Prefactor  = 12.7398
  norm       = 9.50225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.085
  norm       = 0.0001
  Prefactor  = 6.00793
  Prefactor  = 3.15836
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8873
  Prefactor  = 2.88211
  norm       = 19.0294
  norm       = 1.70775
  norm       = 0.829473
  Normalizat = 0.663131
  Prefactor  = 1.13539
 **********
 **   18 **HESSE 
 **********

 FCN=   8414.753     FROM HESSE     STATUS=OK           374 CALLS     2942 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9728        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9953        .12588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9552        4.0315        .20409E-03   -1.5364    
   4  Prefactor     .10000E-03    40.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1818        5.3024        .36536E-03   -1.5491    
   6  Prefactor     1.1923        8.3987        .41832E-03   -1.5490    
   7  Prefactor     12.740        14.927        .11225E-03   -1.4994    
   8  norm          9.5023        9.2345        .12998E-03   -1.5091    
   9  Prefactor     .10000E-03    7.6294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.085        29.352        .81578E-04   -1.4726    
  12  norm          .10000E-03    2.0856        .99674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0079        10.843        .16389E-03   -1.5218    
  14  Prefactor     3.1584        21.026        .22845E-03   -1.5353    
  15  norm          .10000E-03    1.3832        .20793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7799        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.887        34.926        .89636E-04   -1.4816    
  18  Prefactor     2.8821        4.6685        .23826E-03   -1.5368    
  19  norm          19.029        6.1936        .91818E-04   -1.4835    
  20  norm          1.7078        1.3388        .90259E-04   -1.5447    
  21  norm          .82947        .52913        .52447E-04   -1.5526    
  22  Normalizat    .66313        .21626        .37700E-03   -1.0537    
  23  Prefactor     1.1354        .11362        .16581E-03   -.88343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17651e-10
Minuit parameter uncertainties:
  1  1.29896e-07
  2  1.63857e-07
  3  4.03189
  4  2.05915e-05
  5  5.00712
  6  6.32982
  7  14.9315
  8  9.23586
  9  1.84811e-06
  10  3.38381e-06
  11  29.3695
  12  6.79575e-06
  13  10.8461
  14  16.3063
  15  4.85387e-06
  16  1.00366e-05
  17  34.9617
  18  4.66911
  19  6.19384
  20  1.3388
  21  0.529129
  22  0.216542
  23  0.113647
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  9.502e+00  9.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.248e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  2.201e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.135e+00  1.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  6.631e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 109.516 45.616
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.35e-05

TS (Fixed Index): 1.48
Ra Dec: 109.516 45.616
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207888/likelihoodResults_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.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) = 8413.33083792
delta logL = 1.4220790283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8413.26240748
delta logL = 1.49050946536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4059       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4024       1.0000          .0000       5.0000    
     3 'Normalizat'    .56128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1742       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8413.262     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      307 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4036        12.657        .91411E-02    .10317E-02
   2  alpha         4.4041        4.6603        .42683        .47384E-04
   3  Normalizat    .56135        .63850E-01    .91921E-01    .69966E-04
   4  Prefactor     1.1741        .36320E-01    .35272E-01    .10303E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40362
  alpha      = 4.40405
  Normalizat = 0.561346
  Prefactor  = 1.17411
 **********
 **   18 **HESSE 
 **********

 FCN=   8413.262     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4036        20.319        .56979E-04   -1.5471    
   2  alpha         4.4041        4.4921        .21586E-01    .86581    
   3  Normalizat    .56135        .19003        .40728E-03   -1.0965    
   4  Prefactor     1.1741        .10852        .16331E-03   -.87132    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12201e-10
Minuit parameter uncertainties:
  1  10.6849
  2  4.89991
  3  0.190251
  4  0.108542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207888': 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) = 8413.26240533
delta logL = 1.49051161794

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.404e+00  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  4.404e+00  4.900e+00  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  2.201e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.174e+00  1.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  5.613e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 109.516 45.616
Photon Index (Free Index): 4.40 +/- 4.90
Photon Flux (Free Index): 9.99e-08 +/- 5.41e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.42e-05

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/207888/cmap_HighResolution_508636801_508896001_4FGL_J0718.0+4536_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.52e-05', photon_flux_error='3.65e-08', dlogl='1.49e+00', energy_flux='1.39e-05', photon_flux2='9.99e-08', job_status='DONE', time_completed='2021-08-26 23:41:37.088723', photon_index_error2='4.90', photon_index2='4.40', ts='1.48', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.42e-05', EG='0.66', time_epoch_completed='1630046497.09', return_code='0', job_id='207888', GAL2='1.17', EG2='0.56', return_code2='102', energy_flux_error='1.35e-05', photon_flux_error2='5.41e-08', ts2='4.77', photon_index='2.25' WHERE bin_id='1039' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 207888: <4FGL_J0718.0+4536_daily_bin1039> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin1039> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 23:25:29 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:25:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 23:25:31 2021
Terminated at Thu Aug 26 23:41:38 2021
Results reported at Thu Aug 26 23:41:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin1039 109.516 45.6163 508636801 508896001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0718.0+4536 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   947.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

