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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin1210
RA = 109.516, Dec = 45.6163
tmin = 552960001, tmax = 553219201
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='208199', job_status='RUN', time_executed='2021-08-26 23:29:43.995966', time_epoch_executed='1630045784.0' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='1210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208199/ft1_4FGL_J0718.0+4536_daily_bin1210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208199/ft2_4FGL_J0718.0+4536_daily_bin1210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208199/ft1_4FGL_J0718.0+4536_daily_bin1210.fits outfile=/scratch/kocevski/208199/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1210.fits ra=109.516 dec=45.6163 rad=12.0 tmin=552960001.0 tmax=553219201.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.87
user 2.62
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208199/ft1_filtered_4FGL_J0718.0+4536_daily_bin1210.fits" evtable="EVENTS" scfile=/scratch/kocevski/208199/ft2_4FGL_J0718.0+4536_daily_bin1210.fits sctable="SC_DATA" outfile=/scratch/kocevski/208199/ltcube_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.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/208199/ft2_4FGL_J0718.0+4536_daily_bin1210.fits
.....................!
real 13.11
user 12.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208199/ft1_filtered_4FGL_J0718.0+4536_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/208199/ft2_4FGL_J0718.0+4536_daily_bin1210.fits sctable="SC_DATA" expcube=/scratch/kocevski/208199/ltcube_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.fits outfile=/scratch/kocevski/208199/expmap_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.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/208199/ltcube_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.fits
.....................!
real 192.04
user 185.86
sys 5.33

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/208199/ft1_filtered_4FGL_J0718.0+4536_daily_bin1210.fits scfile=/scratch/kocevski/208199/ft2_4FGL_J0718.0+4536_daily_bin1210.fits outfile=/scratch/kocevski/208199/cmap_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208199/ft1_filtered_4FGL_J0718.0+4536_daily_bin1210.fits scfile=/scratch/kocevski/208199/ft2_4FGL_J0718.0+4536_daily_bin1210.fits outfile=/scratch/kocevski/208199/cmap_HighResolution_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.249       1.0000         .10000E-03   10000.    
     2 'norm      '    5.9764       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15476E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10874E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    96.809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2423.5       1.0000         .10000E-03   10000.    
    11 'Prefactor '    144.08       1.0000         .10000E-03   10000.    
    12 'norm      '    .18618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74962E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.662       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1633.8       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9993.7       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .86380E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .73568E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .19109E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1841.171     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2382 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.141        21.406        .45842E-05   -.11079E-03
   2  norm          5.5628        5.3306        .59431E-06    .81434E-04
   3  norm          2.3120        7.1028        .99356E-05   -.50222E-04
   4  Prefactor     .10000E-03    44.670       -.24961E-06** at limit **
   5  norm          6.5828        6.6000       -.61438E-05   -.28967E-03
   6  Prefactor     .10000E-03    17.203        .46945E-05** at limit **
   7  Prefactor     .10000E-03    12.188        .11408E-05** at limit **
   8  norm          .10000E-03    8.5361        .76400E-06** at limit **
   9  Prefactor     86.290        62.532       -.92276E-05    .29196E-03
  10  Prefactor     760.07        738.87       -.49178E-04    .20625E-04
  11  Prefactor     91.597        84.642       -.10833E-04    .64299E-04
  12  norm          .38152E-01    14.030        .32444E-04    .32423E-03
  13  Prefactor     .10000E-03    71.569       -.16096E-04** at limit **
  14  Prefactor     .10001E-03    316.64        .17840E-04** at limit **
  15  norm          .10000E-03    24.801        .13753E-04** at limit **
  16  Prefactor    10000.0        679.45        .23413E-04** at limit **
  17  Prefactor    10000.0        1516.3       -.58365E-04** at limit **
  18  Prefactor     .10000E-03    221.25        .32852E-04** at limit **
  19  norm          .10000E-03    25.972       -.91684E-07** at limit **
  20  norm          .10000E-03    20.366       -.22789E-05** at limit **
  21  norm          .10000E-03    3.9108        .32658E-06** at limit **
  22  Normalizat    .10000E-01    .22554        .33746E-04** at limit **
  23  Prefactor     1.0250        .12290       -.42856E-05    .28713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1407
  norm       = 5.56276
  norm       = 2.31198
  Prefactor  = 0.000100001
  norm       = 6.58282
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 86.2903
  Prefactor  = 760.066
  Prefactor  = 91.5974
  norm       = 0.0381515
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.02496
 **********
 **   18 **HESSE 
 **********

 FCN=   1841.171     FROM HESSE     STATUS=OK           416 CALLS     2798 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.141        21.190        .18845E-02   -1.4647    
   2  norm          5.5628        5.2942        .41063E-02   -1.5236    
   3  norm          2.3120        7.0745        .56103E-02   -1.5404    
   4  Prefactor     .10000E-03    40.430        .91002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5828        6.5749        .36922E-02   -1.5195    
   6  Prefactor     .10000E-03    15.882        .43534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     86.290        63.518        .10213E-02   -1.3847    
  10  Prefactor     760.07        725.50        .23337E-03   -2.1294    
  11  Prefactor     91.597        87.580        .83919E-03   -1.7625    
  12  norm          .38152E-01    1.6443        .30707E-01   -1.5669    
  13  Prefactor     .10000E-03    73.142        .93912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    301.59        .28143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    25.108        .54081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        648.56        .27048E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        1510.2        .39976E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    195.93        .94461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.091        .10476E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.8885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .17625        .27801       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0250        .13376        .40148E-01   -.91902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43391e-09
Minuit parameter uncertainties:
  1  21.1957
  2  5.29465
  3  7.07706
  4  0.000289368
  5  6.57564
  6  0.000369298
  7  0.000274718
  8  7.49618e-05
  9  63.5684
  10  734.88
  11  87.7042
  12  0.500288
  13  4.64421e-05
  14  0.00418804
  15  0.000212879
  16  0.0301223
  17  0.0731346
  18  0.0003608
  19  7.41105e-05
  20  0.000115819
  21  3.85164e-06
  22  3.10564e-06
  23  0.133808
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  7.496e-05  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.025e+00  1.338e-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.000e-02  3.106e-06  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.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208199/likelihoodResults_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.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) = 1841.17201396
delta logL = -0.000645845645977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1841.17136839
delta logL = -2.76898617813e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2403       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0249       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=   1841.171     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      238 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    461.57        .11379E-01** at limit **
   2  alpha         1.8330        3.2166        .16574        .20406E-08
   3  Normalizat    .10000E-01    .29261E-01    .96481E-02** at limit **
   4  Prefactor     1.0250        .39597E-01    .14872E-03    .12558E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.83305
  Normalizat = 0.01
  Prefactor  = 1.02496
 **********
 **   18 **HESSE 
 **********

 FCN=   1841.171     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8612        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8330        3.8347        .66297E-02   -.27005    
   3  Normalizat    .10000E-01    .21504        .19296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0250        .10762        .29745E-04   -.91902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15223e-10
Minuit parameter uncertainties:
  1  0.000151367
  2  433.039
  3  7.10735e-07
  4  0.107638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208199': 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) = 1841.17136767
delta logL = 4.48352466265e-07

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  1.514e-04  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.833e+00  4.330e+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:  1.025e+00  1.076e-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.000e-02  7.107e-07  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/208199/cmap_HighResolution_552960001_553219201_4FGL_J0718.0+4536_daily_bin1210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-05', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-08-26 23:38:50.670389', job_id='208199', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630046330.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1210' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:38:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 208199: <4FGL_J0718.0+4536_daily_bin1210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin1210 109.516 45.6163 552960001 553219201 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 :                                   434.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            778 sec.

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

