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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1
RA = 103.606, Dec = 45.2446
tmin = 239587201, tmax = 239846401
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='955048', job_status='RUN', time_executed='2021-08-26 09:54:29.423160', time_epoch_executed='1629996869.42' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955048

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955048/ft1_4FGL_J0654.4+4514_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955048/ft1_4FGL_J0654.4+4514_daily_bin1.fits outfile=/scratch/kocevski/955048/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1.fits ra=103.606 dec=45.2446 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.32
user 1.13
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.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/955048/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/955048/ltcube_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.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/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits
.....................!
real 12.97
user 12.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/955048/ltcube_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.fits outfile=/scratch/kocevski/955048/expmap_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.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/955048/ltcube_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.fits
.....................!
real 190.24
user 185.46
sys 4.40

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
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0654.4+4514 @ 103.606 45.2446

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits scfile=/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits outfile=/scratch/kocevski/955048/cmap_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.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=103.606 yref=45.2446 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits scfile=/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits outfile=/scratch/kocevski/955048/cmap_HighResolution_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.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=103.606 yref=45.2446 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955048/Model_4FGL_J0654.4+4514_daily_bin1.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
adding source HB 9
Working on...
/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits.....................!
real 141.46
user 139.90
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits', '/scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits', expMap='/scratch/kocevski/955048/expmap_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.fits', expCube='/scratch/kocevski/955048/ltcube_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/955048/Model_4FGL_J0654.4+4514_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.4+4514'

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.496e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/955048/ft1_filtered_4FGL_J0654.4+4514_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/955048/ft2_4FGL_J0654.4+4514_daily_bin1.fits
Exposure map: /scratch/kocevski/955048/expmap_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.fits
Exposure cube: /scratch/kocevski/955048/ltcube_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/955048/Model_4FGL_J0654.4+4514_daily_bin1.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) = 9075.06826768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.986       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6087       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2181       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10648E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    25.828       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.7195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4933       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2083       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12739E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9074.964     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1808 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.987        42.346        .11374E-06    .12844E-04
   2  norm          2.6084        2.0801        .80277E-07   -.20299E-04
   3  norm          1.2179        1.8195        .19225E-06    .35491E-05
   4  Prefactor     .10000E-03    4.4443        .76533E-07** at limit **
   5  Prefactor     .10000E-03    9.8563       -.20716E-06** at limit **
   6  norm          .10000E-03    1.7234       -.19860E-06** at limit **
   7  norm          25.829        5.9522       -.12967E-06   -.11932E-04
   8  Prefactor     .10000E-03    8.4632        .49819E-06** at limit **
   9  norm          6.7266        5.9540       -.17014E-06    .66477E-04
  10  Prefactor     9.4952        6.3671        .17705E-05   -.11979E-03
  11  Prefactor     7.1502        14.671       -.23073E-05   -.24971E-03
  12  norm          .10000E-03    1.9605       -.60657E-07** at limit **
  13  Prefactor     .10000E-03    29.830        .16281E-05** at limit **
  14  Prefactor     .10000E-03    6.1647       -.23958E-06** at limit **
  15  Prefactor     .10000E-03    2.6311       -.11471E-07** at limit **
  16  Prefactor     .10000E-03    11.115       -.29388E-06** at limit **
  17  norm          .10000E-03    .68405        .14903E-08** at limit **
  18  Prefactor     .10000E-03    30.884        .28340E-06** at limit **
  19  Normalizat    1.0544        .16954        .20956E-06   -.15396E-04
  20  Prefactor     .70477        .66975E-01   -.20555E-06    .24505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.9872
  norm       = 2.60845
  norm       = 1.21787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.8289
  Prefactor  = 0.0001
  norm       = 6.72665
  Prefactor  = 9.49524
  Prefactor  = 7.15019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05438
  Prefactor  = 0.704766
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.964     FROM HESSE     STATUS=OK           289 CALLS     2097 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.987        42.354        .47983E-04   -1.4033    
   2  norm          2.6084        2.0765        .11861E-03   -1.5385    
   3  norm          1.2179        1.7865        .15197E-03   -1.5487    
   4  Prefactor     .10000E-03    4.6003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4393        .24109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          25.829        5.9532        .78823E-04   -1.4691    
   8  Prefactor     .10000E-03    8.5040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.7266        5.9596        .15479E-03   -1.5189    
  10  Prefactor     9.4952        6.4720        .65033E-03   -1.5092    
  11  Prefactor     7.1502        15.297        .14940E-03   -1.5173    
  12  norm          .10000E-03    1.9664        .13029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6353        .15091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .68648        .76939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0544        .19123        .32579E-03   -.91230    
  20  Prefactor     .70477        .75742E-01    .15620E-03   -1.0334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9215e-10
Minuit parameter uncertainties:
  1  42.3727
  2  2.07651
  3  1.78661
  4  2.34308e-06
  5  2.32188e-05
  6  4.66948e-05
  7  5.95329
  8  4.86761e-05
  9  5.96017
  10  6.47251
  11  15.3051
  12  4.78671e-06
  13  0.000168199
  14  1.41681e-05
  15  4.48803e-07
  16  3.83427e-05
  17  1.22836e-07
  18  1.2811e-05
  19  0.191358
  20  0.0757526
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.583e+01  5.953e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.048e-01  7.575e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.054e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 62.12
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.22e-07 +/- 5.11e-08
Energy Flux (Fixed Index): 9.71e-05 +/- 2.24e-05

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) = 9074.64633602
delta logL = 0.317524324633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9074.56387908
delta logL = 0.39998126506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.132       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9976       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69976       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9074.564     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.134        10.222        .18883E-02   -.90042E-04
   2  alpha         1.9971        .29548        .16683        .12488E-03
   3  Normalizat    1.0799        .16805        .72935E-01    .12778E-03
   4  Prefactor     .69975        .66259E-01    .42398E-01    .16840E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.1338
  alpha      = 1.99712
  Normalizat = 1.07992
  Prefactor  = 0.699752
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.564     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.134        6.8778        .75534E-04   -1.4647    
   2  alpha         1.9971        .20687        .70608E-02   -.20253    
   3  Normalizat    1.0799        .18772        .32275E-03   -.90399    
   4  Prefactor     .69975        .74390E-01    .15677E-03   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57151e-11
Minuit parameter uncertainties:
  1  6.87798
  2  0.207119
  3  0.187837
  4  0.0744006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955048': 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) = 9074.56387549
delta logL = 0.399984853764

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.813e+01  6.878e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  1.997e+00  2.071e-01  0.000e+00  5.000e+00 ( 1.000e+00)
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  6.998e-01  7.440e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.080e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.95
Ra Dec: 103.606 45.245
Photon Index (Free Index): 2.00 +/- 0.21
Photon Flux (Free Index): 1.92e-07 +/- 5.60e-08
Energy Flux (Free Index): 1.14e-04 +/- 3.53e-05

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/955048/cmap_HighResolution_239587201_239846401_4FGL_J0654.4+4514_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-07', energy_flux2='1.14e-04', photon_flux_error='5.11e-08', dlogl='4.00e-01', energy_flux='9.71e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-08-26 10:05:53.153745', photon_index_error2='0.21', photon_index2='2.00', ts='62.12', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='3.53e-05', EG='1.05', time_epoch_completed='1629997553.15', return_code='0', job_id='955048', GAL2='0.70', EG2='1.08', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='5.60e-08', ts2='62.95', photon_index='2.18' WHERE bin_id='1' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:05:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 955048: <4FGL_J0654.4+4514_daily_bin1> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 26 09:50:57 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:51:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 09:51:01 2021
Terminated at Thu Aug 26 10:05:54 2021
Results reported at Thu Aug 26 10:05:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1 103.606 45.2446 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.4+4514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            897 sec.

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

