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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin671
RA = 109.516, Dec = 45.6163
tmin = 413251201, tmax = 413510401
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='204869', job_status='RUN', time_executed='2021-08-26 23:17:19.085684', time_epoch_executed='1630045039.09' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204869/ft1_4FGL_J0718.0+4536_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204869/ft1_4FGL_J0718.0+4536_daily_bin671.fits outfile=/scratch/kocevski/204869/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin671.fits ra=109.516 dec=45.6163 rad=12.0 tmin=413251201.0 tmax=413510401.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 10.93
user 5.40
sys 5.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.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/204869/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.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 5.62
user 0.33
sys 5.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/204869/ltcube_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.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/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits
.....................!
real 18.43
user 11.88
sys 6.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/204869/ltcube_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.fits outfile=/scratch/kocevski/204869/expmap_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.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/204869/ltcube_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.fits
.....................!
real 197.33
user 185.77
sys 10.90

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/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.fits scfile=/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits outfile=/scratch/kocevski/204869/cmap_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.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 5.56
user 0.38
sys 5.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.fits scfile=/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits outfile=/scratch/kocevski/204869/cmap_HighResolution_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.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 5.60
user 0.39
sys 5.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.fits', '/scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits', expMap='/scratch/kocevski/204869/expmap_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.fits', expCube='/scratch/kocevski/204869/ltcube_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204869/Model_4FGL_J0718.0+4536_daily_bin671.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/204869/ft1_filtered_4FGL_J0718.0+4536_daily_bin671.fits
Spacecraft file(s): /scratch/kocevski/204869/ft2_4FGL_J0718.0+4536_daily_bin671.fits
Exposure map: /scratch/kocevski/204869/expmap_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.fits
Exposure cube: /scratch/kocevski/204869/ltcube_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204869/Model_4FGL_J0718.0+4536_daily_bin671.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) = 7739.30185584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4913       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6186       1.0000         .10000E-03   10000.    
     5 'norm      '    .22811E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.734       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.718       1.0000         .10000E-03   10000.    
    12 'norm      '    .66402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0341       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7213       1.0000         .10000E-03   10000.    
    19 'norm      '    5.9649       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3533       1.0000         .10000E-03   10000.    
    21 'norm      '    .63524E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95978       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90506       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=   7739.299     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2560 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4949        2.3489        .63979E-06   -.14887E-02
   2  norm          .10000E-03    1.3158       -.96058E-07** at limit **
   3  norm          1.9073        3.2682       -.21172E-05   -.49096E-03
   4  Prefactor     3.6266        35.012        .12361E-04   -.52045E-04
   5  norm          .10002E-03    3.6003        .45825E-05** at limit **
   6  Prefactor     .25269        2.6234        .11737E-05   -.13363E-02
   7  Prefactor     24.714        18.342       -.76824E-05   -.96474E-03
   8  norm          2.5457        6.2856       -.87447E-06   -.28758E-03
   9  Prefactor     .10000E-03    7.4886       -.50203E-05** at limit **
  10  Prefactor     .10000E-03    5.1523        .12807E-06** at limit **
  11  Prefactor     32.718        30.453        .10895E-05   -.11912E-03
  12  norm          .66422        .70310        .52870E-07   -.60066E-04
  13  Prefactor     .10004E-03    7.5245       -.75912E-06** at limit **
  14  Prefactor     .10000E-03    9.5459       -.20363E-05** at limit **
  15  norm          2.0329        2.1116        .15830E-07    .16237E-03
  16  Prefactor     .10000E-03    2.3844        .13537E-07** at limit **
  17  Prefactor     .10000E-03    24.184        .27262E-05** at limit **
  18  Prefactor     6.7213        4.8911       -.32151E-06    .65400E-05
  19  norm          5.9645        4.2307        .10624E-05   -.16332E-03
  20  norm          3.3532        1.8915       -.13830E-06    .47626E-04
  21  norm          .63614E-01    .28848        .21630E-07   -.42089E-03
  22  Normalizat    .95970        .18391        .12229E-06   -.65417E-03
  23  Prefactor     .90497        .94221E-01    .38816E-07   -.10419E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49491
  norm       = 0.0001
  norm       = 1.90732
  Prefactor  = 3.62661
  norm       = 0.000100023
  Prefactor  = 0.252692
  Prefactor  = 24.7145
  norm       = 2.54573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7181
  norm       = 0.664218
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 2.03292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72129
  norm       = 5.96449
  norm       = 3.3532
  norm       = 0.0636138
  Normalizat = 0.959704
  Prefactor  = 0.904966
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.299     FROM HESSE     STATUS=OK           374 CALLS     2934 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4949        9.4763        .17551E-02   -1.5463    
   2  norm          .10000E-03    1.3215        .98501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9073        3.2457        .19800E-03   -1.5432    
   4  Prefactor     3.6266        34.706        .21239E-03   -1.5327    
   5  norm          .10002E-03    7.7703        .29695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .25269        17.726        .25482E-02   -1.5607    
   7  Prefactor     24.714        18.819        .80545E-04   -1.4713    
   8  norm          2.5457        6.2715        .25593E-03   -1.5389    
   9  Prefactor     .10000E-03    7.4253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.718        29.919        .70053E-04   -1.4563    
  12  norm          .66422        .66947        .73072E-03   -1.5545    
  13  Prefactor     .10004E-03    48.283        .44202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0329        2.0646        .12371E-03   -1.5423    
  16  Prefactor     .10000E-03    2.3911        .13266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7213        4.8682        .15477E-03   -1.5189    
  19  norm          5.9645        4.2262        .14541E-03   -1.5219    
  20  norm          3.3532        1.8930        .86893E-04   -1.5342    
  21  norm          .63614E-01    .27303        .91356E-04   -1.5658    
  22  Normalizat    .95970        .21022        .31382E-03   -.94393    
  23  Prefactor     .90497        .11008        .17195E-03   -.95968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30441e-08
Minuit parameter uncertainties:
  1  7.52911
  2  4.29128e-06
  3  3.24598
  4  22.4546
  5  0.000842308
  6  4.23334
  7  18.8232
  8  6.27314
  9  6.66957e-05
  10  2.64799e-06
  11  29.9322
  12  0.669482
  13  0.0027713
  14  3.26834e-05
  15  2.0647
  16  3.82554e-07
  17  6.48935e-05
  18  4.86852
  19  4.22637
  20  1.89305
  21  0.263372
  22  0.210402
  23  0.110103
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.546e+00  6.273e+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:  9.050e-01  1.101e-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:  9.597e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 109.516 45.616
Photon Flux Upper Limit: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204869/likelihoodResults_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.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) = 7739.29828909
delta logL = 0.00110060785119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7739.29827833
delta logL = 0.00111136353826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5281       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3168       1.0000          .0000       5.0000    
     3 'Normalizat'    .95908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90509       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7739.298     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5199        6.3541        .12845E-02    .54549E-03
   2  alpha         2.3143        1.3719        .42546E-01    .64734E-04
   3  Normalizat    .95910        .20043        .31391E-03    .30421E-05
   4  Prefactor     .90511        .10775        .17194E-03    .62154E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51993
  alpha      = 2.31431
  Normalizat = 0.959101
  Prefactor  = 0.90511
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.298     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5199        6.1906        .25690E-03   -1.5390    
   2  alpha         2.3143        1.3417        .85092E-02   -.74343E-01
   3  Normalizat    .95910        .20053        .12557E-04   -.94413    
   4  Prefactor     .90511        .10779        .68775E-05   -.95963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33524e-12
Minuit parameter uncertainties:
  1  6.19212
  2  1.41674
  3  0.200691
  4  0.107811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204869': 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) = 7739.29827543
delta logL = 0.00111426527565

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.520e+00  6.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.314e+00  1.417e+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:  9.051e-01  1.078e-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:  9.591e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 109.516 45.616

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/204869/cmap_HighResolution_413251201_413510401_4FGL_J0718.0+4536_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-08-26 23:31:53.362708', job_id='204869', GAL2='0.91', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630045913.36', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.11e-03', ts2='0.20', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='671' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 204869: <4FGL_J0718.0+4536_daily_bin671> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin671> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 23:15:38 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:15:46 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:15:46 2021
Terminated at Thu Aug 26 23:31:54 2021
Results reported at Thu Aug 26 23:31:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin671 109.516 45.6163 413251201 413510401 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 :                                   948.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            976 sec.

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

