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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin1333
RA = 109.516, Dec = 45.6163
tmin = 584841601, tmax = 585100801
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='209758', job_status='RUN', time_executed='2021-08-26 23:34:30.506578', time_epoch_executed='1630046070.51' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209758/ft1_4FGL_J0718.0+4536_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209758/ft2_4FGL_J0718.0+4536_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209758/ft1_4FGL_J0718.0+4536_daily_bin1333.fits outfile=/scratch/kocevski/209758/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1333.fits ra=109.516 dec=45.6163 rad=12.0 tmin=584841601.0 tmax=585100801.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.98
user 2.75
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209758/ft1_filtered_4FGL_J0718.0+4536_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/209758/ft2_4FGL_J0718.0+4536_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/209758/ltcube_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.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/209758/ft2_4FGL_J0718.0+4536_daily_bin1333.fits
.....................!
real 13.09
user 12.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209758/ft1_filtered_4FGL_J0718.0+4536_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/209758/ft2_4FGL_J0718.0+4536_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/209758/ltcube_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.fits outfile=/scratch/kocevski/209758/expmap_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.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/209758/ltcube_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.fits
.....................!
real 193.29
user 186.72
sys 4.86

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/209758/ft1_filtered_4FGL_J0718.0+4536_daily_bin1333.fits scfile=/scratch/kocevski/209758/ft2_4FGL_J0718.0+4536_daily_bin1333.fits outfile=/scratch/kocevski/209758/cmap_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.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 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209758/ft1_filtered_4FGL_J0718.0+4536_daily_bin1333.fits scfile=/scratch/kocevski/209758/ft2_4FGL_J0718.0+4536_daily_bin1333.fits outfile=/scratch/kocevski/209758/cmap_HighResolution_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.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 0.55
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.48       1.0000         .10000E-03   10000.    
     5 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.381       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.232       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3300.4       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10502E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .31076       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97082       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=   1760.960     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     3044 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3425       -.13167E-06** at limit **
   2  norm          .10000E-03    5.2003       -.27308E-06** at limit **
   3  norm          .10003E-03    15.236       -.17099E-05** at limit **
   4  Prefactor     100.48        79.869       -.86186E-06    .35577E-04
   5  norm          .10000E-03    11.074       -.27976E-06** at limit **
   6  Prefactor     .10000E-03    8.2292       -.15040E-06** at limit **
   7  Prefactor     60.382        43.586       -.13553E-05   -.14082E-04
   8  norm          .10000E-03    6.5571       -.86011E-08** at limit **
   9  Prefactor     66.267        65.266       -.23443E-05    .37435E-05
  10  Prefactor     3301.4        2648.6       -.14001E-04    .20523E-06
  11  Prefactor     .10000E-03    20.702       -.23295E-07** at limit **
  12  norm          .10000E-03    2.4071       -.36652E-06** at limit **
  13  Prefactor     .10000E-03    25.392       -.82226E-08** at limit **
  14  Prefactor     .10000E-03    370.41        .48149E-06** at limit **
  15  norm          .10000E-03    10.094       -.13252E-07** at limit **
  16  Prefactor    10000.0        555.50        .25651E-06** at limit **
  17  Prefactor    10000.0        1286.1        .13941E-05** at limit **
  18  Prefactor    10000.0        974.50        .10173E-05** at limit **
  19  norm          .10000E-03    22.133       -.86148E-07** at limit **
  20  norm          .10000E-03    20.817       -.86704E-07** at limit **
  21  norm          .10000E-03    15.248        .76660E-09** at limit **
  22  Normalizat    .31076        .52170        .25062E-04    .45833E-04
  23  Prefactor     .97077        .22519       -.51424E-05    .15129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100026
  Prefactor  = 100.485
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.3822
  norm       = 0.0001
  Prefactor  = 66.2669
  Prefactor  = 3301.38
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.310756
  Prefactor  = 0.97077
 **********
 **   18 **HESSE 
 **********

 FCN=   1760.960     FROM HESSE     STATUS=OK           354 CALLS     3398 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3685        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.2425        .93479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10003E-03    34.685        .30254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     100.48        79.466        .40107E-04   -1.3700    
   5  norm          .10000E-03    11.217        .13630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2521        .11759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     60.382        43.694        .51634E-04   -1.4152    
   8  norm          .10000E-03    6.5577        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.267        64.578        .49315E-04   -1.4078    
  10  Prefactor     3301.4        2659.3        .42533E-04   -.34662    
  11  Prefactor     .10000E-03    20.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5058        .12413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    370.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.094        .13024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        555.49        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        1285.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        974.15        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    20.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.248        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .31076        .53126        .63146E-03   -1.2220    
  23  Prefactor     .97077        .22577        .15965E-03   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30993e-10
Minuit parameter uncertainties:
  1  7.86379e-07
  2  4.12743e-06
  3  0.00189566
  4  79.5503
  5  2.68456e-06
  6  8.4879e-06
  7  43.7172
  8  3.70777e-07
  9  64.6464
  10  2826.43
  11  5.19714e-06
  12  5.84627e-05
  13  1.15032e-06
  14  0.000866618
  15  2.97185e-06
  16  0.000711623
  17  0.0051689
  18  0.00362692
  19  5.90636e-06
  20  9.4856e-06
  21  1.6925e-06
  22  0.540235
  23  0.225992
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  3.708e-07  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.708e-01  2.260e-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:  3.108e-01  5.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209758/likelihoodResults_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.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): 102
logL (Free Index) = 1760.96066393
delta logL = -0.000661296183353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1760.96000626
delta logL = -3.62684568245e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2383       1.0000          .0000       5.0000    
     3 'Normalizat'    .31211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97023       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=   1760.960     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      236 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    448.17        .10542E-01** at limit **
   2  alpha         1.7154        3.4888        .16576        .50239E-08
   3  Normalizat    .31075        .99003E-01    .63151E-03   -.28849E-05
   4  Prefactor     .97077        .43410E-01    .15965E-03   -.15346E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71544
  Normalizat = 0.310755
  Prefactor  = 0.97077
 **********
 **   18 **HESSE 
 **********

 FCN=   1760.960     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4184        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7154        3.5676        .66304E-02   -.31922    
   3  Normalizat    .31075        .50095        .25260E-04   -1.2220    
   4  Prefactor     .97077        .22261        .63861E-05   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13198e-12
Minuit parameter uncertainties:
  1  2.81769e-06
  2  395.829
  3  0.508438
  4  0.222817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209758': 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) = 1760.96000176
delta logL = 8.77901811691e-07

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  2.818e-06  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.715e+00  3.958e+02  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.708e-01  2.228e-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:  3.108e-01  5.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 109.516 45.616

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/209758/cmap_HighResolution_584841601_585100801_4FGL_J0718.0+4536_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-05', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-08-26 23:42:37.210792', job_id='209758', GAL2='0.97', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1630046557.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1333' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:42:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 209758: <4FGL_J0718.0+4536_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin1333 109.516 45.6163 584841601 585100801 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 :                                   441.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            726 sec.

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

