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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin844
RA = 103.606, Dec = 45.2446
tmin = 458092801, tmax = 458352001
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='961398', job_status='RUN', time_executed='2021-08-26 10:10:51.298101', time_epoch_executed='1629997851.3' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961398/ft1_4FGL_J0654.4+4514_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961398/ft1_4FGL_J0654.4+4514_daily_bin844.fits outfile=/scratch/kocevski/961398/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin844.fits ra=103.606 dec=45.2446 rad=12.0 tmin=458092801.0 tmax=458352001.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.65
user 3.37
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.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/961398/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.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.81
user 0.34
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/961398/ltcube_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.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/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits
.....................!
real 11.92
user 11.41
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/961398/ltcube_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.fits outfile=/scratch/kocevski/961398/expmap_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.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/961398/ltcube_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.fits
.....................!
real 193.02
user 187.55
sys 4.94

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/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits scfile=/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits outfile=/scratch/kocevski/961398/cmap_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.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 1.11
user 0.38
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits scfile=/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits outfile=/scratch/kocevski/961398/cmap_HighResolution_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.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 1.28
user 0.38
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961398/Model_4FGL_J0654.4+4514_daily_bin844.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/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits.....................!
real 169.62
user 165.01
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits', '/scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits', expMap='/scratch/kocevski/961398/expmap_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.fits', expCube='/scratch/kocevski/961398/ltcube_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961398/Model_4FGL_J0654.4+4514_daily_bin844.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/961398/ft1_filtered_4FGL_J0654.4+4514_daily_bin844.fits
Spacecraft file(s): /scratch/kocevski/961398/ft2_4FGL_J0654.4+4514_daily_bin844.fits
Exposure map: /scratch/kocevski/961398/expmap_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.fits
Exposure cube: /scratch/kocevski/961398/ltcube_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961398/Model_4FGL_J0654.4+4514_daily_bin844.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) = 11029.6764261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.390       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1443       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5147       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2242       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.620       1.0000         .10000E-03   10000.    
    12 'norm      '    10.949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4329       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0834       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96478       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=   11029.64     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1800 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.374        44.983       -.15044E-04   -.30558E-04
   2  norm          2.1441        1.7468        .74594E-09    .46465E-04
   3  norm          1.5579        2.1110       -.82629E-07   -.49729E-04
   4  Prefactor     1.2900        1.8175        .54243E-06   -.17649E-02
   5  Prefactor     .10000E-03    24.544        .26305E-06** at limit **
   6  norm          .10000E-03    .87450        .18145E-08** at limit **
   7  norm          4.3693        3.0383        .22383E-06    .11958E-03
   8  Prefactor     7.5082        18.578       -.85956E-05   -.71552E-05
   9  norm          5.2178        4.7993        .87165E-08    .83349E-04
  10  Prefactor     .55654        2.5728       -.28611E-06    .66866E-04
  11  Prefactor     10.617        13.115       -.13663E-05    .73879E-05
  12  norm          10.943        6.7945       -.65671E-06    .66293E-04
  13  Prefactor     .66030        4.9269       -.49711E-06    .22938E-03
  14  Prefactor     14.394        29.879        .14653E-04    .46499E-04
  15  Prefactor     2.4196        10.951       -.22145E-05   -.10766E-03
  16  Prefactor     .10000E-03    4.6628       -.51857E-08** at limit **
  17  norm          .10000E-03    .59930       -.23565E-08** at limit **
  18  Prefactor     .10000E-03    11.530       -.42109E-07** at limit **
  19  Normalizat    1.0832        .17394       -.15068E-05    .22878E-03
  20  Prefactor     .96485        .72877E-01    .94682E-06   -.12252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.3739
  norm       = 2.14413
  norm       = 1.55793
  Prefactor  = 1.28998
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.36934
  Prefactor  = 7.50816
  norm       = 5.2178
  Prefactor  = 0.556535
  Prefactor  = 10.6174
  norm       = 10.9425
  Prefactor  = 0.660299
  Prefactor  = 14.3943
  Prefactor  = 2.41957
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08316
  Prefactor  = 0.964848
 **********
 **   18 **HESSE 
 **********

 FCN=   11029.64     FROM HESSE     STATUS=OK           303 CALLS     2103 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.374        44.966        .22971E-03   -1.3958    
   2  norm          2.1441        1.7481        .12165E-03   -1.5415    
   3  norm          1.5579        2.0921        .17184E-03   -1.5458    
   4  Prefactor     1.2900        8.5481        .19507E-02   -1.5481    
   5  Prefactor     .10000E-03    24.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .87713        .95892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3693        3.0339        .14624E-03   -1.5290    
   8  Prefactor     7.5082        18.572        .14630E-03   -1.5160    
   9  norm          5.2178        4.7952        .17587E-03   -1.5251    
  10  Prefactor     .55654        13.920        .28862E-02   -1.5559    
  11  Prefactor     10.617        13.092        .12295E-03   -1.5056    
  12  norm          10.943        6.8023        .12108E-03   -1.5046    
  13  Prefactor     .66030        37.481        .44900E-02   -1.5545    
  14  Prefactor     14.394        29.795        .10560E-03   -1.4949    
  15  Prefactor     2.4196        10.801        .26234E-03   -1.5397    
  16  Prefactor     .10000E-03    4.6706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .60083        .79340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0832        .19640        .35030E-03   -.90294    
  20  Prefactor     .96485        .82541E-01    .16266E-03   -.93911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15767e-08
Minuit parameter uncertainties:
  1  44.9856
  2  1.74819
  3  2.09224
  4  6.64245
  5  1.83915e-05
  6  2.34175e-07
  7  3.03403
  8  18.5861
  9  4.79553
  10  5.56755
  11  13.0952
  12  6.80278
  13  9.95538
  14  29.8257
  15  10.2269
  16  1.17643e-06
  17  6.84838e-07
  18  4.1149e-07
  19  0.196532
  20  0.0825516
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  4.369e+00  3.034e+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:  9.648e-01  8.255e-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.083e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.04
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.14e-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) = 11028.2560197
delta logL = 1.3887895918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11026.6429013
delta logL = 3.00190799679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77366E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .14045E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.1066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96567       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11026.64     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      309 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77338E-01    .10216        .30171E-03   -.96077E-03
   2  alpha         .42213E-11    .54537        .50000    ** at limit **
   3  Normalizat    1.1067        .18064        .34725E-03   -.19643E-05
   4  Prefactor     .96566        .80212E-01    .16271E-03    .54389E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0773377
  alpha      = 4.22135e-12
  Normalizat = 1.10668
  Prefactor  = 0.965661
 **********
 **   18 **HESSE 
 **********

 FCN=   11026.64     FROM HESSE     STATUS=OK            31 CALLS      340 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77338E-01    .10036        .12069E-04   -1.5652    
   2  alpha         .42213E-11    .52665        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1067        .18072        .13890E-04   -.89538    
   4  Prefactor     .96566        .80249E-01    .32541E-04   -.93883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73592e-12
Minuit parameter uncertainties:
  1  0.100363
  2  3.03704e-06
  3  0.180822
  4  0.0802585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961398': 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) = 11026.6428972
delta logL = 3.00191208393

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  7.734e-02  1.004e-01  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  4.221e-12  3.037e-06  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:  9.657e-01  8.026e-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.107e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.03
Ra Dec: 103.606 45.245
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.67e-09 +/- 3.47e-09
Energy Flux (Free Index): 9.69e-05 +/- 1.26e-04

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/961398/cmap_HighResolution_458092801_458352001_4FGL_J0654.4+4514_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='9.69e-05', photon_flux_error='2.60e-08', dlogl='3.00e+00', energy_flux='1.64e-05', photon_flux2='2.67e-09', job_status='DONE', time_completed='2021-08-26 10:24:22.253290', photon_index_error2='0.00', photon_index2='0.00', ts='9.04', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.26e-04', EG='1.08', time_epoch_completed='1629998662.25', return_code='0', job_id='961398', GAL2='0.97', EG2='1.11', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.47e-09', ts2='15.03', photon_index='2.18' WHERE bin_id='844' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 961398: <4FGL_J0654.4+4514_daily_bin844> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin844> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 10:10:40 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:10: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 10:10:41 2021
Terminated at Thu Aug 26 10:24:25 2021
Results reported at Thu Aug 26 10:24:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin844 103.606 45.2446 458092801 458352001 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 :                                   805.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             385.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            825 sec.

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

