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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin475
RA = 109.516, Dec = 45.6163
tmin = 362448001, tmax = 362707201
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='203428', job_status='RUN', time_executed='2021-08-26 23:11:01.580996', time_epoch_executed='1630044661.58' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203428

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203428/ft1_4FGL_J0718.0+4536_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203428/ft2_4FGL_J0718.0+4536_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203428/ft1_4FGL_J0718.0+4536_daily_bin475.fits outfile=/scratch/kocevski/203428/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin475.fits ra=109.516 dec=45.6163 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.83
user 5.29
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203428/ft1_filtered_4FGL_J0718.0+4536_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/203428/ft2_4FGL_J0718.0+4536_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/203428/ltcube_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.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/203428/ft2_4FGL_J0718.0+4536_daily_bin475.fits
.....................!
real 11.62
user 10.94
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203428/ft1_filtered_4FGL_J0718.0+4536_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/203428/ft2_4FGL_J0718.0+4536_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/203428/ltcube_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.fits outfile=/scratch/kocevski/203428/expmap_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.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/203428/ltcube_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.fits
.....................!
real 190.60
user 185.75
sys 4.41

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/203428/ft1_filtered_4FGL_J0718.0+4536_daily_bin475.fits scfile=/scratch/kocevski/203428/ft2_4FGL_J0718.0+4536_daily_bin475.fits outfile=/scratch/kocevski/203428/cmap_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.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.81
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203428/ft1_filtered_4FGL_J0718.0+4536_daily_bin475.fits scfile=/scratch/kocevski/203428/ft2_4FGL_J0718.0+4536_daily_bin475.fits outfile=/scratch/kocevski/203428/cmap_HighResolution_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.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.81
user 0.41
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84426E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.895       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6163       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .81941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1041       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1483       1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    119.41       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8330       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .48160       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0351       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1005       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=   8727.957     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2649 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    4.5181       -.25691E-06** at limit **
   2  norm          .10000E-03    1.4225       -.17211E-07** at limit **
   3  norm          .10000E-03    .92262       -.43666E-08** at limit **
   4  Prefactor     28.893        23.546       -.72583E-06    .53414E-05
   5  norm          3.0911        4.5886       -.99984E-06   -.74237E-03
   6  Prefactor     .10000E-03    7.2695       -.13428E-07** at limit **
   7  Prefactor     .10000E-03    12.772       -.93464E-07** at limit **
   8  norm          1.6143        4.1781       -.11618E-05   -.94361E-03
   9  Prefactor     .10000E-03    27.074       -.11392E-06** at limit **
  10  Prefactor     .10000E-03    5.0836        .67795E-07** at limit **
  11  Prefactor     .10000E-03    55.975       -.18320E-05** at limit **
  12  norm          .81983        .88035       -.30828E-06   -.19465E-02
  13  Prefactor     5.0979        12.604       -.83046E-06   -.52201E-04
  14  Prefactor     5.1441        10.199        .33655E-05   -.38883E-04
  15  norm          .10000E-03    1.1456        .90751E-07** at limit **
  16  Prefactor     .10000E-03    2.2781        .24156E-06** at limit **
  17  Prefactor     119.37        52.694       -.23940E-04   -.80952E-05
  18  Prefactor     .10000E-03    5.0557        .23133E-06** at limit **
  19  norm          5.8315        4.2790       -.21399E-06   -.57135E-04
  20  norm          .10000E-03    1.1473       -.47330E-08** at limit **
  21  norm          .48110        .44890        .20591E-06    .12380E-02
  22  Normalizat    1.0357        .19839        .61314E-05   -.12500E-03
  23  Prefactor     1.1002        .10347       -.99436E-06    .45576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100098
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.8927
  norm       = 3.09109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.819827
  Prefactor  = 5.09794
  Prefactor  = 5.14406
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.373
  Prefactor  = 0.0001
  norm       = 5.83147
  norm       = 0.0001
  norm       = 0.481104
  Normalizat = 1.03573
  Prefactor  = 1.1002
 **********
 **   18 **HESSE 
 **********

 FCN=   8727.957     FROM HESSE     STATUS=OK           378 CALLS     3027 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    7.7143        .62496E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4322        .10877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .92586        .87619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.893        23.556        .74532E-04   -1.4632    
   5  norm          3.0911        4.5782        .23047E-03   -1.5356    
   6  Prefactor     .10000E-03    7.5311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6143        4.1608        .30004E-03   -1.5454    
   9  Prefactor     .10000E-03    27.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .81983        .82104        .86484E-03   -1.5527    
  13  Prefactor     5.0979        12.627        .17796E-03   -1.5256    
  14  Prefactor     5.1441        10.179        .17718E-03   -1.5254    
  15  norm          .10000E-03    1.1523        .97525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2813        .13773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     119.37        52.473        .18413E-03   -1.3518    
  18  Prefactor     .10000E-03    5.2047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8315        4.2691        .16009E-03   -1.5225    
  20  norm          .10000E-03    1.1821        .19505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .48110        .44530        .58673E-04   -1.5569    
  22  Normalizat    1.0357        .22373        .33916E-03   -.91843    
  23  Prefactor     1.1002        .11813        .18011E-03   -.89460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51701e-09
Minuit parameter uncertainties:
  1  0.00174063
  2  3.12427e-06
  3  1.55046e-06
  4  23.5633
  5  4.57875
  6  7.97037e-06
  7  1.78728e-05
  8  4.16157
  9  6.21859e-05
  10  1.42967e-05
  11  8.17069e-05
  12  0.821055
  13  12.6338
  14  10.1824
  15  7.99577e-06
  16  3.53204e-05
  17  52.4938
  18  7.54271e-05
  19  4.26937
  20  1.52035e-06
  21  0.445299
  22  0.223937
  23  0.118155
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.614e+00  4.162e+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:  1.100e+00  1.182e-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.036e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/203428/likelihoodResults_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.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) = 8727.78541013
delta logL = 0.172046464086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8727.76904278
delta logL = 0.188413816551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3084       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4150       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0972       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=   8727.769     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3084        4.1749        .67514E-02    .19596E-02
   2  alpha         1.4151        1.1031        .47615E-01   -.18026E-03
   3  Normalizat    1.0411        .18495        .76453E-01    .33456E-04
   4  Prefactor     1.0972        .10147        .37692E-01    .25576E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30835
  alpha      = 1.41513
  Normalizat = 1.04111
  Prefactor  = 1.09725
 **********
 **   18 **HESSE 
 **********

 FCN=   8727.769     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3084        4.1139        .23432E-03   -1.5404    
   2  alpha         1.4151        1.0945        .95230E-02   -.44887    
   3  Normalizat    1.0411        .20885        .33837E-03   -.91666    
   4  Prefactor     1.0972        .11482        .18029E-03   -.89555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91414e-09
Minuit parameter uncertainties:
  1  4.11444
  2  1.14293
  3  0.209018
  4  0.114847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203428': 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) = 8727.76904277
delta logL = 0.188413820686

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.308e+00  4.114e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.415e+00  1.143e+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:  1.097e+00  1.148e-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.041e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/203428/cmap_HighResolution_362448001_362707201_4FGL_J0718.0+4536_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-08-26 23:25:43.287101', job_id='203428', GAL2='1.10', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630045543.29', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.88e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='475' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:25:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 203428: <4FGL_J0718.0+4536_daily_bin475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin475 109.516 45.6163 362448001 362707201 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 :                                   882.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            910 sec.

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

