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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1369
RA = 103.606, Dec = 45.2446
tmin = 594172801, tmax = 594432001
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='963679', job_status='RUN', time_executed='2021-08-26 10:17:57.744291', time_epoch_executed='1629998277.74' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963679/ft1_4FGL_J0654.4+4514_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963679/ft1_4FGL_J0654.4+4514_daily_bin1369.fits outfile=/scratch/kocevski/963679/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1369.fits ra=103.606 dec=45.2446 rad=12.0 tmin=594172801.0 tmax=594432001.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 4.54
user 3.90
sys 0.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.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/963679/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1369.fits evtable="EVENTS" outfile="/scratch/kocevski/963679/ft1_filtered_4FGL_J0654.4+4514_daily_bin1369.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.92
user 0.33
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963679/ft1_filtered_4FGL_J0654.4+4514_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/963679/ltcube_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.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/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.fits
.....................!
real 12.08
user 11.30
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963679/ft1_filtered_4FGL_J0654.4+4514_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/963679/ltcube_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.fits outfile=/scratch/kocevski/963679/expmap_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.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/963679/ltcube_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.fits
.....................!
real 191.41
user 185.74
sys 5.30

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/963679/ft1_filtered_4FGL_J0654.4+4514_daily_bin1369.fits scfile=/scratch/kocevski/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.fits outfile=/scratch/kocevski/963679/cmap_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.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.91
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963679/ft1_filtered_4FGL_J0654.4+4514_daily_bin1369.fits scfile=/scratch/kocevski/963679/ft2_4FGL_J0654.4+4514_daily_bin1369.fits outfile=/scratch/kocevski/963679/cmap_HighResolution_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.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.93
user 0.38
sys 0.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11543E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4846       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.519       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3093       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5780       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91323       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=   8932.954     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2062 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    296.02        .42473E-05** at limit **
   2  norm          .10000E-03    1.0255        .31393E-07** at limit **
   3  norm          2.4846        1.9298        .41022E-08    .10015E-05
   4  Prefactor     5.6837        5.6923       -.20960E-08   -.28034E-05
   5  Prefactor     .10000E-03    15.380       -.95636E-06** at limit **
   6  norm          .10000E-03    2.1983       -.64402E-07** at limit **
   7  norm          4.5429        3.4656        .46006E-07    .16610E-04
   8  Prefactor     15.519        23.523       -.14243E-06    .23584E-05
   9  norm          .10000E-03    4.2075        .18743E-06** at limit **
  10  Prefactor     4.6597        5.8344       -.60593E-07    .15256E-04
  11  Prefactor     .10000E-03    15.509        .87473E-06** at limit **
  12  norm          2.3091        5.2046       -.20099E-05   -.19500E-04
  13  Prefactor     1.1732        .68573        .10451E-06   -.54192E-04
  14  Prefactor     .10000E-03    7.6163        .77226E-07** at limit **
  15  Prefactor     .10000E-03    8.1471       -.11872E-07** at limit **
  16  Prefactor     5.5777        16.376        .11695E-05    .44172E-05
  17  norm          2.5944        2.5466       -.19840E-07   -.18802E-05
  18  Prefactor     .10000E-03    4.3217       -.23450E-06** at limit **
  19  Normalizat    1.0515        .17735       -.47832E-07    .99642E-06
  20  Prefactor     .91322        .72701E-01    .63837E-07   -.33052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.48457
  Prefactor  = 5.68372
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.54291
  Prefactor  = 15.5191
  norm       = 0.0001
  Prefactor  = 4.65973
  Prefactor  = 0.0001
  norm       = 2.30912
  Prefactor  = 1.1732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57767
  norm       = 2.59436
  Prefactor  = 0.0001
  Normalizat = 1.05155
  Prefactor  = 0.913219
 **********
 **   18 **HESSE 
 **********

 FCN=   8932.954     FROM HESSE     STATUS=OK           293 CALLS     2355 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    305.97        .36323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0475        .93431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4846        1.9295        .11258E-03   -1.5393    
   4  Prefactor     5.6837        5.6959        .84244E-03   -1.5231    
   5  Prefactor     .10000E-03    15.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2259        .13678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5429        3.4621        .14727E-03   -1.5282    
   8  Prefactor     15.519        23.524        .10167E-03   -1.4920    
   9  norm          .10000E-03    4.2921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6597        5.8297        .18647E-03   -1.5276    
  11  Prefactor     .10000E-03    15.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3091        5.1998        .27000E-03   -1.5404    
  13  Prefactor     1.1732        21.579        .21168E-02   -1.5491    
  14  Prefactor     .10000E-03    7.6202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5777        16.461        .17010E-03   -1.5236    
  17  norm          2.5944        2.5450        .14497E-03   -1.5386    
  18  Prefactor     .10000E-03    4.3318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0515        .19962        .34061E-03   -.91323    
  20  Prefactor     .91322        .81296E-01    .15523E-03   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37206e-11
Minuit parameter uncertainties:
  1  0.000325689
  2  2.29286e-07
  3  1.92953
  4  5.69646
  5  1.7812e-07
  6  3.47319e-07
  7  3.4622
  8  23.5381
  9  3.06393e-06
  10  5.83044
  11  1.63339e-06
  12  5.20079
  13  10.0669
  14  6.83968e-07
  15  3.38401e-07
  16  16.4743
  17  2.54513
  18  3.07229e-06
  19  0.199766
  20  0.0813067
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  4.543e+00  3.462e+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.132e-01  8.131e-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.052e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.90e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.30e-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) = 8932.94310144
delta logL = 0.0106491322585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8932.94285302
delta logL = 0.0108975501571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5662       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0736       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91260       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=   8932.943     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5827        110.53        .47095E-02    .13004E-03
   2  alpha         2.0778        2.5517        .41934        .13388E-04
   3  Normalizat    1.0557        .15918        .76830E-01   -.20217E-04
   4  Prefactor     .91260        .38377E-01    .45165E-01   -.65798E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58271
  alpha      = 2.07776
  Normalizat = 1.05573
  Prefactor  = 0.912597
 **********
 **   18 **HESSE 
 **********

 FCN=   8932.943     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5827        3.5423        .15136E-03   -1.5280    
   2  alpha         2.0778        .70485        .19612E-01   -.16971    
   3  Normalizat    1.0557        .18852        .34005E-03   -.91186    
   4  Prefactor     .91260        .80245E-01    .15528E-03   -.95702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23534e-12
Minuit parameter uncertainties:
  1  3.54249
  2  0.714837
  3  0.18864
  4  0.0802551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963679': 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) = 8932.94282543
delta logL = 0.0109251447302

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  4.583e+00  3.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.078e+00  7.148e-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:  9.126e-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.056e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 103.606 45.245
Photon Index (Free Index): 2.08 +/- 0.71
Photon Flux (Free Index): 3.44e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.49e-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/963679/cmap_HighResolution_594172801_594432001_4FGL_J0654.4+4514_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.90e-08', energy_flux2='1.78e-05', photon_flux_error='2.97e-08', dlogl='1.09e-02', energy_flux='1.71e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-08-26 10:30:07.440553', photon_index_error2='0.71', photon_index2='2.08', ts='4.65', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.05', time_epoch_completed='1629999007.44', return_code='0', job_id='963679', GAL2='0.91', EG2='1.06', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.94e-08', ts2='4.67', photon_index='2.18' WHERE bin_id='1369' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:30:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 963679: <4FGL_J0654.4+4514_daily_bin1369> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1369> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 10:17:31 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:17:36 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:17:36 2021
Terminated at Thu Aug 26 10:30:08 2021
Results reported at Thu Aug 26 10:30:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1369 103.606 45.2446 594172801 594432001 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 :                                   733.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            757 sec.

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

