/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 153 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 = 7432
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0718.0+4536_daily_bin42
RA = 109.516, Dec = 45.6163
tmin = 250214401, tmax = 250473601
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='200599', job_status='RUN', time_executed='2021-08-26 23:04:08.184118', time_epoch_executed='1630044248.18' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200599

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200599/ft1_4FGL_J0718.0+4536_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200599/ft2_4FGL_J0718.0+4536_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200599/ft1_4FGL_J0718.0+4536_daily_bin42.fits outfile=/scratch/kocevski/200599/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin42.fits ra=109.516 dec=45.6163 rad=12.0 tmin=250214401.0 tmax=250473601.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.17
user 1.25
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200599/ft2_4FGL_J0718.0+4536_daily_bin42.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/200599/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin42.fits evtable="EVENTS" outfile="/scratch/kocevski/200599/ft1_filtered_4FGL_J0718.0+4536_daily_bin42.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.25
user 0.32
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200599/ft1_filtered_4FGL_J0718.0+4536_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/200599/ft2_4FGL_J0718.0+4536_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/200599/ltcube_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.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/200599/ft2_4FGL_J0718.0+4536_daily_bin42.fits
.....................!
real 13.63
user 12.40
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200599/ft1_filtered_4FGL_J0718.0+4536_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/200599/ft2_4FGL_J0718.0+4536_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/200599/ltcube_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.fits outfile=/scratch/kocevski/200599/expmap_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.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/200599/ltcube_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.fits
.....................!
real 191.75
user 185.16
sys 6.08

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/200599/ft1_filtered_4FGL_J0718.0+4536_daily_bin42.fits scfile=/scratch/kocevski/200599/ft2_4FGL_J0718.0+4536_daily_bin42.fits outfile=/scratch/kocevski/200599/cmap_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=109.516 yref=45.6163 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.25
user 0.37
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200599/ft1_filtered_4FGL_J0718.0+4536_daily_bin42.fits scfile=/scratch/kocevski/200599/ft2_4FGL_J0718.0+4536_daily_bin42.fits outfile=/scratch/kocevski/200599/cmap_HighResolution_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=109.516 yref=45.6163 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.29
user 0.37
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .94504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.505       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.740       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37373E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6390       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2581       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0133       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2600       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93349       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=   6358.815     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2190 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5533       -.84385E-08** at limit **
   2  norm          .10000E-03    1.5694       -.86764E-09** at limit **
   3  norm          .94578        3.0936       -.12813E-05   -.11133E-02
   4  Prefactor     .10000E-03    11.434       -.81981E-06** at limit **
   5  norm          .10000E-03    2.0652        .10138E-07** at limit **
   6  Prefactor     .10000E-03    3.1267        .64026E-07** at limit **
   7  Prefactor     28.500        19.134       -.13305E-06    .42995E-04
   8  norm          .10000E-03    2.8342        .23911E-07** at limit **
   9  Prefactor     .10000E-03    9.4915       -.92440E-06** at limit **
  10  Prefactor     3.9824        25.507       -.42613E-05   -.23749E-04
  11  Prefactor     46.725        35.348       -.11105E-04    .35366E-03
  12  norm          1.0388        1.2322       -.55159E-07   -.66630E-03
  13  Prefactor     .10000E-03    10.284        .17768E-05** at limit **
  14  Prefactor     .10000E-03    7.2681        .80175E-07** at limit **
  15  norm          .10000E-03    .92634       -.14851E-08** at limit **
  16  Prefactor     6.4707        6.2485        .49251E-06    .91749E-03
  17  Prefactor     .10000E-03    15.747       -.12102E-06** at limit **
  18  Prefactor     .10003E-03    3.6747       -.20747E-06** at limit **
  19  norm          3.6385        3.9493       -.48696E-07    .44248E-05
  20  norm          1.2580        1.3604        .20776E-07    .15983E-03
  21  norm          2.0130        .93463       -.29124E-07    .13100E-03
  22  Normalizat    1.2608        .23371        .25321E-05   -.10670E-04
  23  Prefactor     .93307        .11402       -.13734E-06    .18166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.945779
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4998
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98237
  Prefactor  = 46.7254
  norm       = 1.0388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.47066
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 3.63855
  norm       = 1.25804
  norm       = 2.01296
  Normalizat = 1.2608
  Prefactor  = 0.933066
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.815     FROM HESSE     STATUS=OK           368 CALLS     2558 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5668        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5744        .97549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .94578        3.1668        .25373E-03   -1.5513    
   4  Prefactor     .10000E-03    11.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0723        .11188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1464        .13765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.500        19.135        .75040E-04   -1.4640    
   8  norm          .10000E-03    2.8395        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9824        26.108        .20140E-03   -1.5309    
  11  Prefactor     46.725        34.256        .29324E-03   -1.4340    
  12  norm          1.0388        1.1522        .92164E-03   -1.5504    
  13  Prefactor     .10000E-03    10.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .92875        .74945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4707        6.3266        .78880E-03   -1.5199    
  17  Prefactor     .10000E-03    15.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    92.527        .28381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6385        3.9445        .16023E-03   -1.5326    
  20  norm          1.2580        1.3651        .94040E-04   -1.5484    
  21  norm          2.0130        .90949        .49326E-04   -1.5424    
  22  Normalizat    1.2608        .26885        .31448E-03   -.84744    
  23  Prefactor     .93307        .13286        .18733E-03   -.94995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.595e-09
Minuit parameter uncertainties:
  1  3.80806e-06
  2  2.18999e-07
  3  3.16733
  4  2.16906e-05
  5  2.01322e-06
  6  6.86107e-06
  7  19.1392
  8  1.32947e-06
  9  2.5674e-05
  10  20.4061
  11  34.2706
  12  1.15223
  13  2.10533e-05
  14  4.75891e-06
  15  1.6924e-06
  16  6.32729
  17  4.9408e-06
  18  0.00316826
  19  3.94473
  20  1.36513
  21  0.909492
  22  0.269149
  23  0.132908
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  1.329e-06  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.331e-01  1.329e-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.261e+00  2.691e-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: 5.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200599/likelihoodResults_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.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) = 6358.81698882
delta logL = -0.00166944958073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6358.81531937
delta logL = -3.50064510712e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2500       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93307       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=   6358.815     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4684        .13112E-02** at limit **
   2  alpha         2.4692        2.5642        .16566       -.90588E-08
   3  Normalizat    1.2608        .24881        .31448E-03   -.27547E-04
   4  Prefactor     .93306        .13059        .18733E-03   -.50735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46917
  Normalizat = 1.2608
  Prefactor  = 0.933065
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.815     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8652        .26225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4692        3.6367        .66263E-02   -.12333E-01
   3  Normalizat    1.2608        .24898        .12579E-04   -.84744    
   4  Prefactor     .93306        .13068        .74932E-05   -.94995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28653e-12
Minuit parameter uncertainties:
  1  1.02744e-07
  2  421.27
  3  0.24922
  4  0.130728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200599': 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) = 6358.81531921
delta logL = 1.56636815518e-07

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  1.027e-07  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.469e+00  4.213e+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.331e-01  1.307e-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.261e+00  2.492e-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/200599/cmap_HighResolution_250214401_250473601_4FGL_J0718.0+4536_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-08-26 23:15:21.727931', job_id='200599', GAL2='0.93', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630044921.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='42' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 200599: <4FGL_J0718.0+4536_daily_bin42> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin42> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Aug 26 23:01:00 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:01:13 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:01:13 2021
Terminated at Thu Aug 26 23:15:22 2021
Results reported at Thu Aug 26 23:15:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin42 109.516 45.6163 250214401 250473601 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 :                                   683.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            862 sec.

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

