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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin1110
RA = 109.516, Dec = 45.6163
tmin = 527040001, tmax = 527299201
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='208004', job_status='RUN', time_executed='2021-08-26 23:25:56.588420', time_epoch_executed='1630045556.59' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208004/ft1_4FGL_J0718.0+4536_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208004/ft2_4FGL_J0718.0+4536_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208004/ft1_4FGL_J0718.0+4536_daily_bin1110.fits outfile=/scratch/kocevski/208004/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1110.fits ra=109.516 dec=45.6163 rad=12.0 tmin=527040001.0 tmax=527299201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.48
user 5.70
sys 0.64

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208004/ft1_filtered_4FGL_J0718.0+4536_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/208004/ft2_4FGL_J0718.0+4536_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/208004/ltcube_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.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/208004/ft2_4FGL_J0718.0+4536_daily_bin1110.fits
.....................!
real 12.80
user 11.92
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208004/ft1_filtered_4FGL_J0718.0+4536_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/208004/ft2_4FGL_J0718.0+4536_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/208004/ltcube_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.fits outfile=/scratch/kocevski/208004/expmap_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.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/208004/ltcube_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.fits
.....................!
real 190.34
user 185.36
sys 4.36

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/208004/ft1_filtered_4FGL_J0718.0+4536_daily_bin1110.fits scfile=/scratch/kocevski/208004/ft2_4FGL_J0718.0+4536_daily_bin1110.fits outfile=/scratch/kocevski/208004/cmap_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.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.94
user 0.39
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208004/ft1_filtered_4FGL_J0718.0+4536_daily_bin1110.fits scfile=/scratch/kocevski/208004/ft2_4FGL_J0718.0+4536_daily_bin1110.fits outfile=/scratch/kocevski/208004/cmap_HighResolution_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.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.95
user 0.39
sys 0.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3140       1.0000         .10000E-03   10000.    
     3 'norm      '    .56762E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .27570E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0068       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.789       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31961E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28119       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9546       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.2068       1.0000         .10000E-03   10000.    
    20 'norm      '    .11212E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .60518       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0610       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0717       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=   8522.030     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2264 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7187        .15952E-06** at limit **
   2  norm          3.3140        3.6101        .69973E-07    .92204E-04
   3  norm          .10001E-03    1.6836        .19436E-05** at limit **
   4  Prefactor     .10000E-03    13.835       -.52479E-06** at limit **
   5  norm          .10000E-03    3.0692       -.15675E-05** at limit **
   6  Prefactor     5.0071        4.7352        .12655E-05    .11746E-02
   7  Prefactor     20.788        17.288       -.22316E-06    .39394E-04
   8  norm          2.5497        3.9383        .44069E-05    .15502E-02
   9  Prefactor     .10000E-03    8.6730        .23089E-05** at limit **
  10  Prefactor     .10000E-03    7.4098       -.19682E-05** at limit **
  11  Prefactor     .10000E-03    32.815        .15225E-05** at limit **
  12  norm          .10000E-03    .26695       -.87361E-07** at limit **
  13  Prefactor     .10001E-03    12.606        .12540E-04** at limit **
  14  Prefactor     .28819        35.729        .26309E-04   -.60256E-03
  15  norm          1.9530        2.0020        .32294E-06    .78643E-03
  16  Prefactor     .10000E-03    4.0569        .37637E-06** at limit **
  17  Prefactor     .10000E-03    13.820       -.41367E-06** at limit **
  18  Prefactor     .10000E-03    5.1382       -.84892E-07** at limit **
  19  norm          7.2072        4.9548        .40742E-06    .57175E-03
  20  norm          .10001E-03    1.6663        .46614E-05** at limit **
  21  norm          .60514        .47236       -.40055E-07   -.96170E-03
  22  Normalizat    1.0610        .18403       -.11548E-05    .25713E-03
  23  Prefactor     1.0717        .97570E-01    .44046E-06    .83024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.31402
  norm       = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 5.00706
  Prefactor  = 20.788
  norm       = 2.54972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.288192
  norm       = 1.95295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.20721
  norm       = 0.000100008
  norm       = 0.605144
  Normalizat = 1.06101
  Prefactor  = 1.0717
 **********
 **   18 **HESSE 
 **********

 FCN=   8522.030     FROM HESSE     STATUS=OK           374 CALLS     2638 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3140        3.5898        .17584E-03   -1.5344    
   3  norm          .10001E-03    20.125        .21875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.6032        .30120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0071        4.8264        .89859E-03   -1.5260    
   7  Prefactor     20.788        16.937        .87845E-04   -1.4796    
   8  norm          2.5497        4.9193        .12786E-02   -1.5389    
   9  Prefactor     .10000E-03    8.6806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .51034        .92575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    35.678        .47374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28819        105.89        .51822E-02   -1.5601    
  15  norm          1.9530        1.9751        .12650E-03   -1.5428    
  16  Prefactor     .10000E-03    4.0878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2072        4.8735        .14942E-03   -1.5171    
  20  norm          .10001E-03    4.2890        .18095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .60514        .48096        .54559E-04   -1.5552    
  22  Normalizat    1.0610        .20392        .32291E-03   -.91014    
  23  Prefactor     1.0717        .10995        .17687E-03   -.90376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99312e-08
Minuit parameter uncertainties:
  1  2.94131e-05
  2  3.59006
  3  0.00107831
  4  4.30087e-05
  5  0.000328328
  6  4.82675
  7  16.9405
  8  4.92003
  9  5.71284e-05
  10  1.5937e-05
  11  0.000174118
  12  6.95963e-06
  13  0.00124111
  14  11.0664
  15  1.97513
  16  3.08295e-05
  17  5.90734e-05
  18  9.28192e-05
  19  4.87376
  20  0.000367431
  21  0.480966
  22  0.204074
  23  0.109968
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.550e+00  4.920e+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.072e+00  1.100e-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.061e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208004/likelihoodResults_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.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) = 8522.02920502
delta logL = 0.000712895709512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8522.02913074
delta logL = 0.000787174561992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5177       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3068       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0717       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=   8522.029     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      262 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5073        5.1152        .25748E-03    .13246E-03
   2  alpha         2.3027        1.3468        .42538E-01    .22397E-04
   3  Normalizat    1.0606        .19788        .32296E-03    .17157E-03
   4  Prefactor     1.0718        .10955        .17686E-03    .37427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.50734
  alpha      = 2.30269
  Normalizat = 1.0606
  Prefactor  = 1.07181
 **********
 **   18 **HESSE 
 **********

 FCN=   8522.029     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5073        4.9510        .10299E-04   -1.5391    
   2  alpha         2.3027        1.3092        .17015E-02   -.79004E-01
   3  Normalizat    1.0606        .19795        .12918E-04   -.91027    
   4  Prefactor     1.0718        .10959        .35372E-04   -.90373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44362e-10
Minuit parameter uncertainties:
  1  4.95185
  2  1.37838
  3  0.198085
  4  0.109612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208004': 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) = 8522.02912041
delta logL = 0.000797507082098

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.507e+00  4.952e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.303e+00  1.378e+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.072e+00  1.096e-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.061e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/208004/cmap_HighResolution_527040001_527299201_4FGL_J0718.0+4536_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-08-26 23:39:58.987258', job_id='208004', GAL2='1.07', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630046398.99', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.98e-04', ts2='0.39', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1110' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:39:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 208004: <4FGL_J0718.0+4536_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin1110 109.516 45.6163 527040001 527299201 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 :                                   843.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

