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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin1064
RA = 109.516, Dec = 45.6163
tmin = 515116801, tmax = 515376001
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='207929', job_status='RUN', time_executed='2021-08-26 23:26:32.001572', time_epoch_executed='1630045592.0' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207929/ft1_4FGL_J0718.0+4536_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207929/ft2_4FGL_J0718.0+4536_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207929/ft1_4FGL_J0718.0+4536_daily_bin1064.fits outfile=/scratch/kocevski/207929/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1064.fits ra=109.516 dec=45.6163 rad=12.0 tmin=515116801.0 tmax=515376001.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 6.15
user 3.29
sys 2.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207929/ft1_filtered_4FGL_J0718.0+4536_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/207929/ft2_4FGL_J0718.0+4536_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/207929/ltcube_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.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/207929/ft2_4FGL_J0718.0+4536_daily_bin1064.fits
.....................!
real 14.56
user 11.45
sys 3.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207929/ft1_filtered_4FGL_J0718.0+4536_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/207929/ft2_4FGL_J0718.0+4536_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/207929/ltcube_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.fits outfile=/scratch/kocevski/207929/expmap_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.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/207929/ltcube_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.fits
.....................!
real 192.73
user 185.02
sys 7.22

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/207929/ft1_filtered_4FGL_J0718.0+4536_daily_bin1064.fits scfile=/scratch/kocevski/207929/ft2_4FGL_J0718.0+4536_daily_bin1064.fits outfile=/scratch/kocevski/207929/cmap_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.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 2.98
user 0.36
sys 2.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207929/ft1_filtered_4FGL_J0718.0+4536_daily_bin1064.fits scfile=/scratch/kocevski/207929/ft2_4FGL_J0718.0+4536_daily_bin1064.fits outfile=/scratch/kocevski/207929/cmap_HighResolution_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.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 2.95
user 0.37
sys 2.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7367       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.020       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6542       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3658       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5604       1.0000         .10000E-03   10000.    
    21 'norm      '    .57511       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1783       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95360       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=   8841.205     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2592 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2181       -.13474E-05** at limit **
   2  norm          .10000E-03    1.1860        .38913E-07** at limit **
   3  norm          .10000E-03    2.8432       -.46700E-07** at limit **
   4  Prefactor     .10000E-03    20.555       -.15696E-06** at limit **
   5  norm          .10000E-03    2.1501        .97130E-07** at limit **
   6  Prefactor     8.7377        7.0388        .19124E-05   -.12628E-03
   7  Prefactor     26.009        15.624       -.59470E-05   -.12907E-04
   8  norm          5.0068        7.6931       -.29118E-05   -.21316E-03
   9  Prefactor     .10000E-03    7.1874       -.24331E-05** at limit **
  10  Prefactor     .10000E-03    9.9509        .15719E-06** at limit **
  11  Prefactor     .10000E-03    7.2494        .38153E-05** at limit **
  12  norm          .10000E-03    .25391       -.44914E-07** at limit **
  13  Prefactor     .10000E-03    4.3299       -.73960E-07** at limit **
  14  Prefactor     13.791        12.902       -.30796E-05    .11489E-04
  15  norm          .10000E-03    .77488       -.41101E-07** at limit **
  16  Prefactor     .65733E-01    5.0805       -.11671E-06    .89477E-05
  17  Prefactor     19.915        39.350        .34924E-05    .10355E-04
  18  Prefactor     9.6600        5.3405       -.69753E-06   -.89442E-04
  19  norm          4.3654        5.5563        .29855E-05   -.38063E-03
  20  norm          1.5600        2.0546       -.11577E-05   -.10692E-02
  21  norm          .57513        .44045        .25449E-07    .18147E-03
  22  Normalizat    1.1784        .18843        .36301E-06    .42304E-04
  23  Prefactor     .95369        .94825E-01    .27386E-06    .72359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73768
  Prefactor  = 26.0088
  norm       = 5.00677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7909
  norm       = 0.0001
  Prefactor  = 0.0657334
  Prefactor  = 19.9145
  Prefactor  = 9.65997
  norm       = 4.36536
  norm       = 1.56001
  norm       = 0.57513
  Normalizat = 1.17837
  Prefactor  = 0.953694
 **********
 **   18 **HESSE 
 **********

 FCN=   8841.205     FROM HESSE     STATUS=OK           378 CALLS     2970 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1919        .99985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8975        .15470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1630        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7377        7.0101        .13561E-03   -1.5117    
   7  Prefactor     26.009        15.593        .78533E-04   -1.4688    
   8  norm          5.0068        7.7198        .17969E-03   -1.5260    
   9  Prefactor     .10000E-03    7.1938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .39731        .91810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.791        12.924        .10797E-03   -1.4965    
  15  norm          .10000E-03    .77835        .80814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .65733E-01    9.4164        .63926E-01   -1.5657    
  17  Prefactor     19.915        39.664        .90028E-04   -1.4815    
  18  Prefactor     9.6600        5.3456        .12897E-03   -1.5086    
  19  norm          4.3654        5.4861        .19277E-03   -1.5290    
  20  norm          1.5600        2.0437        .13666E-03   -1.5458    
  21  norm          .57513        .44065        .52571E-04   -1.5556    
  22  Normalizat    1.1784        .21676        .31592E-03   -.87274    
  23  Prefactor     .95369        .10921        .18492E-03   -.94289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32663e-10
Minuit parameter uncertainties:
  1  1.06182e-06
  2  1.98844e-06
  3  6.98719e-06
  4  1.03086e-05
  5  5.89922e-06
  6  7.01077
  7  15.5959
  8  7.72129
  9  1.62224e-07
  10  5.13295e-06
  11  5.07641e-06
  12  2.77684e-06
  13  6.24038e-07
  14  12.9263
  15  1.44996e-07
  16  1.57255
  17  39.7167
  18  5.34585
  19  5.48677
  20  2.0438
  21  0.440653
  22  0.216928
  23  0.109231
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  5.007e+00  7.721e+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.537e-01  1.092e-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.178e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207929/likelihoodResults_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.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) = 8840.35418866
delta logL = 0.850726680274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8840.29711637
delta logL = 0.907798967124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76077       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6563       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97954       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8840.297     FROM MIGRAD    STATUS=FAILED        94 CALLS      313 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75728        19.239        .57999E-03    .57503E-02
   2  alpha         4.6598        2.5833        .43832E-01   -.35881E-05
   3  Normalizat    1.1018        .16017        .32493E-03    .80263E-04
   4  Prefactor     .97956        .86671E-01    .18269E-03    .14226E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8840.297     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75728        19.239        .74449E-04    .57503E-02
   2  alpha         4.6598        2.5833        .24738E-02   -.35881E-05
   3  Normalizat    1.1018        .16017        .10282E-03    .80263E-04
   4  Prefactor     .97956        .86671E-01    .30663E-04    .14226E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8840.297     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      437 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75729        19.763        .11600E-03   -.90952E-04
   2  alpha         4.6598        2.5333        .17533E-02   -.21658E-05
   3  Normalizat    1.1018        .20844        .12997E-04    .40586E-04
   4  Prefactor     .97956        .11227        .36538E-04    .75671E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.757285
  alpha      = 4.65982
  Normalizat = 1.10181
  Prefactor  = 0.979556
 **********
 **   18 **HESSE 
 **********

 FCN=   8840.297     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75729        6.0762        .46399E-05   -1.5534    
   2  alpha         4.6598        4.7886        .70131E-04    1.0430    
   3  Normalizat    1.1018        .21073        .25994E-05   -.89694    
   4  Prefactor     .97956        .11137        .73076E-05   -.93414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70171e-12
Minuit parameter uncertainties:
  1  4.29051
  2  3.6154
  3  0.210888
  4  0.111393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207929': 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) = 8840.29711513
delta logL = 0.907800213265

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  7.573e-01  4.291e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  4.660e+00  3.615e+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.796e-01  1.114e-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.102e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 109.516 45.616
Photon Index (Free Index): 4.66 +/- 3.62
Photon Flux (Free Index): 8.04e-08 +/- 5.91e-08
Energy Flux (Free Index): 1.18e-05 +/- 9.81e-06

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/207929/cmap_HighResolution_515116801_515376001_4FGL_J0718.0+4536_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='9.08e-01', photon_flux2='8.04e-08', job_status='DONE', time_completed='2021-08-26 23:41:44.064909', photon_index_error2='3.62', photon_index2='4.66', ts='0.58', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.11e-08', energy_flux_error2='9.81e-06', EG='1.18', time_epoch_completed='1630046504.06', return_code='0', job_id='207929', GAL2='0.98', EG2='1.10', return_code2='0', photon_flux_error2='5.91e-08', ts2='2.53', photon_index='2.25' WHERE bin_id='1064' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:41:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 207929: <4FGL_J0718.0+4536_daily_bin1064> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin1064> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 23:25:32 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:25:34 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:34 2021
Terminated at Thu Aug 26 23:41:45 2021
Results reported at Thu Aug 26 23:41:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin1064 109.516 45.6163 515116801 515376001 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 :                                   945.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

