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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin4
RA = 109.516, Dec = 45.6163
tmin = 240364801, tmax = 240624001
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='200561', job_status='RUN', time_executed='2021-08-26 23:01:32.047360', time_epoch_executed='1630044092.05' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200561/ft1_4FGL_J0718.0+4536_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200561/ft2_4FGL_J0718.0+4536_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200561/ft1_4FGL_J0718.0+4536_daily_bin4.fits outfile=/scratch/kocevski/200561/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin4.fits ra=109.516 dec=45.6163 rad=12.0 tmin=240364801.0 tmax=240624001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.13
user 1.25
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200561/ft1_filtered_4FGL_J0718.0+4536_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/200561/ft2_4FGL_J0718.0+4536_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/200561/ltcube_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.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/200561/ft2_4FGL_J0718.0+4536_daily_bin4.fits
.....................!
real 14.32
user 13.15
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200561/ft1_filtered_4FGL_J0718.0+4536_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/200561/ft2_4FGL_J0718.0+4536_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/200561/ltcube_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.fits outfile=/scratch/kocevski/200561/expmap_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.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/200561/ltcube_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.fits
.....................!
real 191.22
user 185.68
sys 5.10

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/200561/ft1_filtered_4FGL_J0718.0+4536_daily_bin4.fits scfile=/scratch/kocevski/200561/ft2_4FGL_J0718.0+4536_daily_bin4.fits outfile=/scratch/kocevski/200561/cmap_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.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 1.20
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200561/ft1_filtered_4FGL_J0718.0+4536_daily_bin4.fits scfile=/scratch/kocevski/200561/ft2_4FGL_J0718.0+4536_daily_bin4.fits outfile=/scratch/kocevski/200561/cmap_HighResolution_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.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 1.23
user 0.37
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6903       1.0000         .10000E-03   10000.    
     2 'norm      '    7.2868       1.0000         .10000E-03   10000.    
     3 'norm      '    23.428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10240E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.374       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7734       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .67896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.673       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4513       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8622       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1799       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94432       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8666.737     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     3320 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6912        6.0822        .84195E-03    .44937E-04
   2  norm          7.2881        4.9488        .74294E-03    .16132E-03
   3  norm          23.425        6.3172        .82757E-04    .55856E-03
   4  Prefactor     .10000E-03    21.425        .11826    ** at limit **
   5  norm          .10000E-03    2.9891        .15614E-02** at limit **
   6  Prefactor     5.1755        4.9241        .88364E-03    .18179E-03
   7  Prefactor     45.375        22.357        .59521E-04    .16533E-03
   8  norm          3.6477        5.3415        .10576E-02    .10236E-03
   9  Prefactor     23.216        33.142        .83097E-04    .53357E-04
  10  Prefactor     3.7730        10.284        .20782E-03    .10941E-05
  11  Prefactor     .10000E-03    8.5685        .18142E-02** at limit **
  12  norm          .68009        .84740        .97925E-03    .68388E-02
  13  Prefactor     .10000E-03    8.7427        .18142E-02** at limit **
  14  Prefactor     .10000E-03    10.070        .18142E-02** at limit **
  15  norm          1.1353        2.4686        .21122E-03    .14608E-03
  16  Prefactor     1.9743        7.3677        .29450E-03    .14839E-03
  17  Prefactor     24.664        47.540        .80644E-04   -.15225E-04
  18  Prefactor     .10000E-03    4.5164        .36285E-03** at limit **
  19  norm          .10000E-03    1.4093        .10777E-02** at limit **
  20  norm          1.4511        1.2743        .95074E-04    .26116E-03
  21  norm          2.8621        .86480        .45923E-04    .17824E-03
  22  Normalizat    1.1801        .22528        .33101E-03    .16252E-03
  23  Prefactor     .94422        .11574        .19385E-03    .62418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69118
  norm       = 7.28809
  norm       = 23.425
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.17545
  Prefactor  = 45.3747
  norm       = 3.64769
  Prefactor  = 23.216
  Prefactor  = 3.77296
  Prefactor  = 0.0001
  norm       = 0.680088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13535
  Prefactor  = 1.97429
  Prefactor  = 24.6637
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.45111
  norm       = 2.86211
  Normalizat = 1.18006
  Prefactor  = 0.944218
 **********
 **   18 **HESSE 
 **********

 FCN=   8666.737     FROM HESSE     STATUS=OK           364 CALLS     3684 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6912        6.0817        .33678E-04   -1.5231    
   2  norm          7.2881        4.9481        .29717E-04   -1.5168    
   3  norm          23.425        6.3173        .33103E-05   -1.4740    
   4  Prefactor     .10000E-03    20.589        .12178       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9900        .31227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1755        4.9222        .35346E-04   -1.5253    
   7  Prefactor     45.375        22.353        .11904E-04   -1.4360    
   8  norm          3.6477        5.3403        .42304E-04   -1.5326    
   9  Prefactor     23.216        33.104        .33239E-05   -1.4744    
  10  Prefactor     3.7730        10.283        .83130E-05   -1.5319    
  11  Prefactor     .10000E-03    8.5687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .68009        .84647        .19585E-03   -1.5543    
  13  Prefactor     .10000E-03    8.7461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1353        2.4683        .84486E-05   -1.5495    
  16  Prefactor     1.9743        7.3630        .11780E-04   -1.5427    
  17  Prefactor     24.664        47.489        .32258E-05   -1.4714    
  18  Prefactor     .10000E-03    4.5167        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4094        .21555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4511        1.2743        .38030E-05   -1.5467    
  21  norm          2.8621        .86476        .18369E-05   -1.5370    
  22  Normalizat    1.1801        .22535        .13240E-04   -.87221    
  23  Prefactor     .94422        .11580        .38770E-04   -.94613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27307e-10
Minuit parameter uncertainties:
  1  6.08235
  2  4.94838
  3  6.31749
  4  1.10545e-05
  5  2.02475e-05
  6  4.92259
  7  22.3572
  8  5.34097
  9  33.1302
  10  10.2883
  11  2.39239e-06
  12  0.846485
  13  3.91868e-06
  14  3.77629e-06
  15  2.46856
  16  7.36638
  17  47.5622
  18  2.059e-05
  19  2.70053e-06
  20  1.27431
  21  0.864764
  22  0.225532
  23  0.115827
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  3.648e+00  5.341e+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.442e-01  1.158e-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:  1.180e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/200561/likelihoodResults_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.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) = 8666.58506589
delta logL = 0.152306849493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8666.5808282
delta logL = 0.156544541262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1536       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5793       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94202       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=   8666.581     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1437        6.2189        .49442E-02    .19394E-03
   2  alpha         1.5771        1.0352        .45394       -.22544E-04
   3  Normalizat    1.1861        .18686        .74632E-01    .18502E-04
   4  Prefactor     .94194        .99687E-01    .45538E-01    .72884E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.1437
  alpha      = 1.57711
  Normalizat = 1.18613
  Prefactor  = 0.941936
 **********
 **   18 **HESSE 
 **********

 FCN=   8666.581     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1437        5.6063        .19777E-03   -1.5301    
   2  alpha         1.5771        1.0839        .36543E-01   -.37810    
   3  Normalizat    1.1861        .21164        .33029E-03   -.87033    
   4  Prefactor     .94194        .11309        .19404E-03   -.94691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78523e-12
Minuit parameter uncertainties:
  1  5.60704
  2  1.12768
  3  0.211789
  4  0.113118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200561': 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) = 8666.58082495
delta logL = 0.156547791838

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  4.144e+00  5.607e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.577e+00  1.128e+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.419e-01  1.131e-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:  1.186e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/200561/cmap_HighResolution_240364801_240624001_4FGL_J0718.0+4536_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-08-26 23:17:09.169379', job_id='200561', GAL2='0.94', fit_tolerance='1e-08', EG2='1.19', EG='1.18', time_epoch_completed='1630045029.17', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.57e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='4' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 200561: <4FGL_J0718.0+4536_daily_bin4> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin4> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Aug 26 23:00:57 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:01:03 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:01:03 2021
Terminated at Thu Aug 26 23:17:10 2021
Results reported at Thu Aug 26 23:17:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin4 109.516 45.6163 240364801 240624001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            973 sec.

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

