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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin689
RA = 109.516, Dec = 45.6163
tmin = 417916801, tmax = 418176001
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='204896', job_status='RUN', time_executed='2021-08-26 23:16:19.042538', time_epoch_executed='1630044979.04' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204896/ft1_4FGL_J0718.0+4536_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204896/ft2_4FGL_J0718.0+4536_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204896/ft1_4FGL_J0718.0+4536_daily_bin689.fits outfile=/scratch/kocevski/204896/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin689.fits ra=109.516 dec=45.6163 rad=12.0 tmin=417916801.0 tmax=418176001.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 8.21
user 6.98
sys 1.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204896/ft1_filtered_4FGL_J0718.0+4536_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/204896/ft2_4FGL_J0718.0+4536_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/204896/ltcube_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.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/204896/ft2_4FGL_J0718.0+4536_daily_bin689.fits
.....................!
real 12.96
user 11.57
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204896/ft1_filtered_4FGL_J0718.0+4536_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/204896/ft2_4FGL_J0718.0+4536_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/204896/ltcube_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.fits outfile=/scratch/kocevski/204896/expmap_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.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/204896/ltcube_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.fits
.....................!
real 193.30
user 185.60
sys 5.75

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/204896/ft1_filtered_4FGL_J0718.0+4536_daily_bin689.fits scfile=/scratch/kocevski/204896/ft2_4FGL_J0718.0+4536_daily_bin689.fits outfile=/scratch/kocevski/204896/cmap_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.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.40
user 0.37
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204896/ft1_filtered_4FGL_J0718.0+4536_daily_bin689.fits scfile=/scratch/kocevski/204896/ft2_4FGL_J0718.0+4536_daily_bin689.fits outfile=/scratch/kocevski/204896/cmap_HighResolution_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.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.41
user 0.38
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4998       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2453       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6542       1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1265       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44844E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .56199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.281       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3621       1.0000         .10000E-03   10000.    
    19 'norm      '    11.901       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0091       1.0000         .10000E-03   10000.    
    21 'norm      '    .68440       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95740       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=   5248.453     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2548 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5009        7.9887        .45377E-07   -.54906E-05
   2  norm          2.2469        5.2141        .14832E-06   -.60122E-04
   3  norm          .10000E-03    1.3635        .41986E-07** at limit **
   4  Prefactor     4.6561        29.961        .13080E-06   -.16400E-05
   5  norm          .10000E-03    4.0588        .47368E-07** at limit **
   6  Prefactor     .10000E-03    9.9053        .17999E-06** at limit **
   7  Prefactor     6.1150        19.748        .31356E-06   -.19209E-04
   8  norm          1.2108        14.918        .48482E-05   -.49773E-04
   9  Prefactor     18.539        34.354       -.59208E-06   -.18441E-04
  10  Prefactor     .10000E-03    15.825        .32773E-06** at limit **
  11  Prefactor     .10000E-03    114.96       -.56144E-05** at limit **
  12  norm          .56287        .97718        .81816E-06    .86396E-03
  13  Prefactor     4.3423        14.608        .18408E-05   -.10436E-03
  14  Prefactor     16.282        19.606       -.53680E-07    .25560E-05
  15  norm          .10000E-03    1.2035       -.76973E-06** at limit **
  16  Prefactor     .10000E-03    3.0531       -.98554E-08** at limit **
  17  Prefactor     .10000E-03    65.532        .20715E-06** at limit **
  18  Prefactor     2.3640        6.5957        .63001E-08   -.11398E-04
  19  norm          11.901        6.1916       -.73222E-07   -.40796E-04
  20  norm          2.0092        1.8463       -.55309E-07    .16757E-05
  21  norm          .68449        .69880        .10748E-06    .17051E-04
  22  Normalizat    1.0173        .23510       -.29103E-06   -.11740E-03
  23  Prefactor     .95747        .11919       -.29798E-06    .19381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.50087
  norm       = 2.24692
  norm       = 0.0001
  Prefactor  = 4.65615
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.115
  norm       = 1.21079
  Prefactor  = 18.5389
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.562871
  Prefactor  = 4.34232
  Prefactor  = 16.2823
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.36399
  norm       = 11.9009
  norm       = 2.00925
  norm       = 0.684486
  Normalizat = 1.01732
  Prefactor  = 0.957475
 **********
 **   18 **HESSE 
 **********

 FCN=   5248.453     FROM HESSE     STATUS=OK           378 CALLS     2926 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5009        7.9895        .15742E-03   -1.5198    
   2  norm          2.2469        5.1898        .24028E-03   -1.5408    
   3  norm          .10000E-03    1.3665        .82601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6561        29.947        .18655E-03   -1.5276    
   5  norm          .10000E-03    4.1233        .14231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1150        19.698        .16220E-03   -1.5213    
   8  norm          1.2108        14.905        .20637E-02   -1.5488    
   9  Prefactor     18.539        34.241        .92984E-04   -1.4847    
  10  Prefactor     .10000E-03    15.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    117.60        .42421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .56287        .93617        .97072E-03   -1.5558    
  13  Prefactor     4.3423        14.519        .19238E-03   -1.5291    
  14  Prefactor     16.282        19.615        .99261E-04   -1.4901    
  15  norm          .10000E-03    1.1840        .76801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0572        .12362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    65.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3640        6.5332        .26664E-03   -1.5400    
  19  norm          11.901        6.1881        .11612E-03   -1.5018    
  20  norm          2.0092        1.8562        .91049E-04   -1.5424    
  21  norm          .68449        .65215        .57785E-03   -1.5543    
  22  Normalizat    1.0173        .26548        .32045E-03   -.92452    
  23  Prefactor     .95747        .13637        .17639E-03   -.94161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98793e-10
Minuit parameter uncertainties:
  1  7.99086
  2  5.19084
  3  1.34688e-06
  4  23.6337
  5  9.6357e-06
  6  4.76438e-05
  7  19.7185
  8  8.49844
  9  34.2777
  10  3.10021e-05
  11  0.000977433
  12  0.936198
  13  14.5313
  14  19.6231
  15  1.22828e-05
  16  1.35407e-06
  17  1.32236e-05
  18  6.53518
  19  6.18841
  20  1.85629
  21  0.65216
  22  0.265825
  23  0.136416
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.211e+00  8.498e+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.575e-01  1.364e-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.017e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/204896/likelihoodResults_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.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) = 5247.48136792
delta logL = 0.971650695779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5247.47616978
delta logL = 0.976848839515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2926       1.0000         .10000E-03   10000.    
     2 'alpha     '    .28585       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95150       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=   5247.476     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2950        1.9615        .97330E-02   -.33839E-03
   2  alpha         .28496        .73945        .50000        .23864E-04
   3  Normalizat    1.0240        .21720        .72154E-01    .40435E-03
   4  Prefactor     .95174        .11703        .45658E-01    .21083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29499
  alpha      = 0.284961
  Normalizat = 1.02398
  Prefactor  = 0.951737
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.476     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2950        2.7038        .94795E-04   -1.5480    
   2  alpha         .28496        .76141        .38042E-01   -1.0887    
   3  Normalizat    1.0240        .24824        .31926E-03   -.92231    
   4  Prefactor     .95174        .13397        .17669E-03   -.94356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00079e-09
Minuit parameter uncertainties:
  1  2.70401
  2  0.830713
  3  0.248523
  4  0.13402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204896': 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) = 5247.47616249
delta logL = 0.976856122726

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.295e+00  2.704e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.850e-01  8.307e-01  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.517e-01  1.340e-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.024e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 109.516 45.616
Photon Index (Free Index): 0.28 +/- 0.83
Photon Flux (Free Index): 5.71e-09 +/- 7.05e-09
Energy Flux (Free Index): 4.74e-05 +/- 7.35e-05

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/204896/cmap_HighResolution_417916801_418176001_4FGL_J0718.0+4536_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', comment='SUCCESS', energy_flux2='4.74e-05', dlogl='9.77e-01', photon_flux2='5.71e-09', job_status='DONE', time_completed='2021-08-26 23:27:17.084594', photon_index_error2='0.83', photon_index2='0.28', ts='0.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.93e-08', energy_flux_error2='7.35e-05', EG='1.02', time_epoch_completed='1630045637.08', return_code='0', job_id='204896', GAL2='0.95', EG2='1.02', return_code2='0', photon_flux_error2='7.05e-09', ts2='1.98', photon_index='2.25' WHERE bin_id='689' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 204896: <4FGL_J0718.0+4536_daily_bin689> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin689 109.516 45.6163 417916801 418176001 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 :                                   667.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            697 sec.

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

