/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 4 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0718.0+4536_daily_bin420
RA = 109.516, Dec = 45.6163
tmin = 348192001, tmax = 348451201
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='203349', job_status='RUN', time_executed='2021-08-26 23:10:53.656682', time_epoch_executed='1630044653.66' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203349/ft1_4FGL_J0718.0+4536_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203349/ft2_4FGL_J0718.0+4536_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203349/ft1_4FGL_J0718.0+4536_daily_bin420.fits outfile=/scratch/kocevski/203349/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin420.fits ra=109.516 dec=45.6163 rad=12.0 tmin=348192001.0 tmax=348451201.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 3.74
user 3.29
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203349/ft1_filtered_4FGL_J0718.0+4536_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/203349/ft2_4FGL_J0718.0+4536_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/203349/ltcube_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.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/203349/ft2_4FGL_J0718.0+4536_daily_bin420.fits
.....................!
real 12.34
user 11.66
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203349/ft1_filtered_4FGL_J0718.0+4536_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/203349/ft2_4FGL_J0718.0+4536_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/203349/ltcube_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.fits outfile=/scratch/kocevski/203349/expmap_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.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/203349/ltcube_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.fits
.....................!
real 190.84
user 185.24
sys 4.86

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J0718.0+4536 @ 109.516 45.6163

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/203349/ft1_filtered_4FGL_J0718.0+4536_daily_bin420.fits scfile=/scratch/kocevski/203349/ft2_4FGL_J0718.0+4536_daily_bin420.fits outfile=/scratch/kocevski/203349/cmap_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.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.79
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203349/ft1_filtered_4FGL_J0718.0+4536_daily_bin420.fits scfile=/scratch/kocevski/203349/ft2_4FGL_J0718.0+4536_daily_bin420.fits outfile=/scratch/kocevski/203349/cmap_HighResolution_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.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.79
user 0.39
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9143       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5527       1.0000         .10000E-03   10000.    
     5 'norm      '    .93753E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10518E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11927E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.674       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0608       1.0000         .10000E-03   10000.    
    19 'norm      '    .22893E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7287       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2179       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0694       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90323       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=   8754.299     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2291 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9121        8.2418        .31902E-05    .58135E-03
   2  norm          .10000E-03    2.2327        .30155E-07** at limit **
   3  norm          6.2413        3.5840        .61925E-06    .78327E-03
   4  Prefactor     9.5527        9.6015       -.30028E-06   -.70998E-04
   5  norm          .10025E-03    4.3704        .68289E-06** at limit **
   6  Prefactor     13.472        6.6396        .10420E-06    .30810E-05
   7  Prefactor     .10000E-03    10.518       -.58083E-07** at limit **
   8  norm          .10000E-03    2.9121       -.23332E-07** at limit **
   9  Prefactor     7.1288        25.532        .33655E-06    .37310E-05
  10  Prefactor     .10000E-03    11.930        .20315E-06** at limit **
  11  Prefactor     .10000E-03    31.986       -.12747E-05** at limit **
  12  norm          .10000E-03    .49634        .63293E-07** at limit **
  13  Prefactor     .10000E-03    6.2958       -.34681E-07** at limit **
  14  Prefactor     .10000E-03    15.631       -.61314E-06** at limit **
  15  norm          .10000E-03    .82335       -.42912E-07** at limit **
  16  Prefactor     .10000E-03    3.5063       -.43910E-06** at limit **
  17  Prefactor     23.617        28.456        .19594E-05   -.96718E-04
  18  Prefactor     5.0611        4.4053       -.20572E-08    .38092E-04
  19  norm          .10028E-03    4.4308       -.24120E-05** at limit **
  20  norm          5.7296        2.1927       -.13489E-07    .64611E-03
  21  norm          1.2182        .67229       -.95125E-08   -.21165E-03
  22  Normalizat    1.0690        .17772        .73606E-06    .15385E-03
  23  Prefactor     .90346        .94122E-01   -.96355E-06    .12124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.9121
  norm       = 0.0001
  norm       = 6.2413
  Prefactor  = 9.55268
  norm       = 0.000100249
  Prefactor  = 13.4723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.12879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6173
  Prefactor  = 5.06113
  norm       = 0.00010028
  norm       = 5.72964
  norm       = 1.21823
  Normalizat = 1.06898
  Prefactor  = 0.903456
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.299     FROM HESSE     STATUS=OK           384 CALLS     2675 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9121        8.3837        .90718E-03   -1.5265    
   2  norm          .10000E-03    2.2687        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2413        3.5976        .64763E-03   -1.5208    
   4  Prefactor     9.5527        9.6066        .64830E-03   -1.5090    
   5  norm          .10025E-03    5.1606        .49522E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.472        6.6706        .10916E-03   -1.4974    
   7  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9276        .15588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1288        25.364        .15036E-03   -1.5174    
  10  Prefactor     .10000E-03    12.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5428        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .83056        .82902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5398        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.617        28.732        .82326E-04   -1.4736    
  18  Prefactor     5.0611        4.4049        .17447E-03   -1.5258    
  19  norm          .10028E-03    2.5055        .49016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7296        2.1954        .81634E-04   -1.5229    
  21  norm          1.2182        .66182        .54481E-04   -1.5487    
  22  Normalizat    1.0690        .20502        .30719E-03   -.90754    
  23  Prefactor     .90346        .10805        .17871E-03   -.96020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55275e-09
Minuit parameter uncertainties:
  1  8.38575
  2  1.07621e-06
  3  3.59774
  4  9.60817
  5  0.00226953
  6  6.671
  7  4.91893e-06
  8  2.80417e-06
  9  25.4025
  10  5.08816e-06
  11  0.000222562
  12  6.01434e-06
  13  3.37333e-06
  14  6.26295e-05
  15  1.94195e-06
  16  4.62298e-05
  17  28.7491
  18  4.40516
  19  0.00167479
  20  2.19544
  21  0.661828
  22  0.20517
  23  0.108074
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  2.804e-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.035e-01  1.081e-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.069e+00  2.052e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203349/likelihoodResults_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.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) = 8754.30065395
delta logL = -0.00162751672178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8754.29771803
delta logL = 0.00130841070131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28051E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5705       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90418       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8754.298     FROM MIGRAD    STATUS=FAILED       111 CALLS      370 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27278E-01    347.70        .80783E-03    .54756E-03
   2  alpha         4.5819        3.5857        .50000        .40965E-04
   3  Normalizat    1.0662        .99139E-01    .30754E-03   -.29869E-04
   4  Prefactor     .90421        .42333E-01    .17864E-03   -.17848E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8754.298     FROM SIMPLEX   STATUS=UNCHANGED    107 CALLS      477 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27278E-01    347.70        .23505E-03    .54756E-03
   2  alpha         4.5819        3.5857        .76768E-02    .40965E-04
   3  Normalizat    1.0662        .99139E-01    .14093E-03   -.29869E-04
   4  Prefactor     .90421        .42333E-01    .25027E-04   -.17848E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8754.298     FROM MIGRAD    STATUS=FAILED        72 CALLS      549 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27273E-01    435.98        .12925E-05    .30907E-03
   2  alpha         4.5820        3.6869        .50000        .42196E-04
   3  Normalizat    1.0662        .12942        .24603E-05   -.27725E-04
   4  Prefactor     .90421        .54156E-01    .71454E-05   -.16929E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0272728
  alpha      = 4.58197
  Normalizat = 1.0662
  Prefactor  = 0.904213
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.298     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      576 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27273E-01    437.63        .37372E-06   -1.5675    
   2  alpha         4.5820        3.6236        .50000        .98412    
   3  Normalizat    1.0662        .12695        .49206E-06   -.90845    
   4  Prefactor     .90421        .53880E-01    .14291E-05   -.95994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40744e-05
Minuit parameter uncertainties:
  1  6.94816
  2  127.36
  3  0.126987
  4  0.0538828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203349': 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): 1
logL (Free Index) = 8754.29771688
delta logL = 0.00130955773056

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.727e-02  6.948e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  4.582e+00  1.274e+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.042e-01  5.388e-02  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.066e+00  1.270e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/203349/cmap_HighResolution_348192001_348451201_4FGL_J0718.0+4536_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-08-26 23:25:21.375059', job_id='203349', GAL2='0.90', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630045521.38', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.31e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='420' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:25:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 203349: <4FGL_J0718.0+4536_daily_bin420> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin420 109.516 45.6163 348192001 348451201 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 :                                   870.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            893 sec.

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

