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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1264
RA = 103.596, Dec = 50.7027
tmin = 566956801, tmax = 567216001
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='953320', job_status='RUN', time_executed='2021-08-26 09:50:57.907362', time_epoch_executed='1629996657.91' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953320

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953320/ft1_4FGL_J0654.3+5042_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953320/ft1_4FGL_J0654.3+5042_daily_bin1264.fits outfile=/scratch/kocevski/953320/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1264.fits ra=103.596 dec=50.7027 rad=12.0 tmin=566956801.0 tmax=567216001.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 11.95
user 2.33
sys 9.57

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.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/953320/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1264.fits evtable="EVENTS" outfile="/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.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 10.98
user 0.33
sys 10.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/953320/ltcube_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.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/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits
.....................!
real 23.77
user 12.92
sys 10.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/953320/ltcube_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.fits outfile=/scratch/kocevski/953320/expmap_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.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/953320/ltcube_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.fits
.....................!
real 203.00
user 186.43
sys 16.11

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 191 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.3+5042 @ 103.596 50.7027

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits scfile=/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits outfile=/scratch/kocevski/953320/cmap_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.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.596 yref=50.7027 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 9.73
user 0.39
sys 9.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits scfile=/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits outfile=/scratch/kocevski/953320/cmap_HighResolution_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.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.596 yref=50.7027 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 9.70
user 0.38
sys 9.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953320/Model_4FGL_J0654.3+5042_daily_bin1264.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/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits......................!
real 31.36
user 15.68
sys 14.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits', '/scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits', expMap='/scratch/kocevski/953320/expmap_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.fits', expCube='/scratch/kocevski/953320/ltcube_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953320/Model_4FGL_J0654.3+5042_daily_bin1264.xml', optimizer='MINUIT')

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

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.530e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953320/ft1_filtered_4FGL_J0654.3+5042_daily_bin1264.fits
Spacecraft file(s): /scratch/kocevski/953320/ft2_4FGL_J0654.3+5042_daily_bin1264.fits
Exposure map: /scratch/kocevski/953320/expmap_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.fits
Exposure cube: /scratch/kocevski/953320/ltcube_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953320/Model_4FGL_J0654.3+5042_daily_bin1264.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) = 246.660815055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20259E-02   1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4919.2       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18417E-02   1.0000         .10000E-03   10000.    
     8 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    .11065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85341E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .13361E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    600.04       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14742E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    249.74       1.0000         .10000E-03   10000.    
    16 'norm      '    .16409E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    88.441       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56753E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11729E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1044       1.0000         .10000E-03   10000.    
    23 'norm      '    5.6740       1.0000         .10000E-03   10000.    
    24 'norm      '    4.6279       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63714E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   246.3452     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     4141 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    997.42        .30480E-06** at limit **
   2  norm         10000.0        2220.6       -.54451E-06** at limit **
   3  norm         10000.0        6718.9       -.44808E-05** at limit **
   4  Prefactor     .10000E-03    303.36       -.21590E-05** at limit **
   5  Prefactor    10000.0        9370.9       -.48541E-05** at limit **
   6  Prefactor     4916.2        3629.7        .85510E-05    .87309E-05
   7  Prefactor     .10000E-03    197.04       -.94965E-06** at limit **
   8  norm         10000.0        1099.5       -.45507E-06** at limit **
   9  norm          .10000E-03    376.34       -.23508E-06** at limit **
  10  Prefactor     .10003E-03    6768.5        .10048E-04** at limit **
  11  norm          .10000E-03    258.87       -.23447E-06** at limit **
  12  Prefactor     599.91        594.69        .26346E-05    .38282E-04
  13  Prefactor     .10000E-03    92.511       -.10680E-06** at limit **
  14  Prefactor     .10000E-03    364.63       -.27799E-06** at limit **
  15  Prefactor     249.34        889.51       -.27510E-05    .33887E-05
  16  norm          .10000E-03    166.98        .12896E-07** at limit **
  17  Prefactor     .10000E-03    47.113       -.17795E-06** at limit **
  18  Prefactor     88.589        262.57        .90498E-05   -.31062E-04
  19  norm          .10000E-03    1.0355       -.74832E-07** at limit **
  20  Prefactor     .10028E-03    83.251        .15328E-07** at limit **
  21  Prefactor     .10000E-03    50.094       -.44974E-06** at limit **
  22  norm          2.0983        5.8789       -.56348E-06   -.73785E-04
  23  norm          5.6648        9.6947        .57655E-07    .38177E-04
  24  norm          4.6307        4.5756        .27537E-07    .42607E-04
  25  Normalizat    .10000E-01    .80468E-01   -.26588E-05** at limit **
  26  Prefactor     .26201E-12    .10097       -.12490E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 4916.17
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 599.913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 249.345
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.5886
  norm       = 0.0001
  Prefactor  = 0.00010028
  Prefactor  = 0.0001
  norm       = 2.09832
  norm       = 5.66475
  norm       = 4.6307
  Normalizat = 0.01
  Prefactor  = 2.62013e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   246.3452     FROM HESSE     STATUS=OK           438 CALLS     4579 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    997.47        .20217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        2220.2        .20704E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        6718.1        .18154E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    303.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9371.4        .18513E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4916.2        3663.7        .40005E-04   -.16767E-01
   7  Prefactor     .10000E-03    197.16        .20302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        1099.3        .20130E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    376.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    6758.5        .18882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    258.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     599.91        603.61        .84213E-04   -1.0759    
  13  Prefactor     .10000E-03    92.514        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    364.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     249.34        892.46        .12817E-03   -1.2537    
  16  norm          .10000E-03    167.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.117        .10539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     88.589        272.55        .21362E-03   -1.3823    
  19  norm          .10000E-03    1.0379        .15611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10028E-03    624.52        .23479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.201        .10860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0983        6.1010        .49341E-04   -1.5418    
  23  norm          5.6648        9.8843        .54744E-04   -1.5232    
  24  norm          4.6307        4.6656        .28559E-04   -1.5278    
  25  Normalizat    .10000E-01    .80669E-01    .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .26201E-12    .10357        .30343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17224e-10
Minuit parameter uncertainties:
  1  0.00048937
  2  0.00135582
  3  0.0589843
  4  0.000166196
  5  0.0253888
  6  4111.93
  7  9.66115e-05
  8  0.000830776
  9  0.000139391
  10  0.0218491
  11  0.000117695
  12  610.305
  13  2.41356e-05
  14  0.000156251
  15  950.186
  16  5.59618e-05
  17  2.67663e-06
  18  276.548
  19  2.13453e-07
  20  0.0267376
  21  6.75575e-05
  22  6.10284
  23  9.88713
  24  4.66593
  25  5.14877e-08
  26  3.30113e-07
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e+04  8.308e-04  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  2.620e-13  3.301e-07  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.000e-02  5.149e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.61
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.81e-05 +/- 5.66e-12
Energy Flux (Fixed Index): 3.18e-02 +/- 2.64e-09

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) = 238.722066834
delta logL = 7.62314617697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 238.722063753
delta logL = 7.62314925758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3231       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .20762E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+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=   238.5784     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      258 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6508.1        7676.7        .18142E-01    .91754E-05
   2  alpha         3.5846        .56211        .14231E-02    .18947E-04
   3  Normalizat    .10000E-01    .64893E-01    .12042E-02** at limit **
   4  Prefactor     .52180E-12    .74874E-01    .25053E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 6508.13
  alpha      = 3.58462
  Normalizat = 0.01
  Prefactor  = 5.21805e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   238.5784     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6508.1        7668.2        .70031E-03    .30640    
   2  alpha         3.5846        .55965        .56922E-04    .44876    
   3  Normalizat    .10000E-01    .64892E-01    .24083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52180E-12    .74878E-01    .50106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24362e-10
Minuit parameter uncertainties:
  1  5617.86
  2  0.56557
  3  9.91288e-07
  4  3.95783e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953320': 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) = 238.578399803
delta logL = 7.76681320773

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  6.508e+03  5.618e+03  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  3.585e+00  5.656e-01  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  5.218e-13  3.958e-07  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.000e-02  9.913e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.98
Ra Dec: 103.596 50.703
Photon Index (Free Index): 3.58 +/- 0.57
Photon Flux (Free Index): 3.98e-04 +/- 1.51e-04
Energy Flux (Free Index): 6.78e-02 +/- 2.30e-02

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953320/cmap_HighResolution_566956801_567216001_4FGL_J0654.3+5042_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.81e-05', energy_flux2='6.78e-02', photon_flux_error='5.66e-12', dlogl='7.77e+00', energy_flux='3.18e-02', photon_flux2='3.98e-04', job_status='DONE', time_completed='2021-08-26 09:59:04.589292', photon_index_error2='0.57', photon_index2='3.58', ts='24.61', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='2.30e-02', EG='0.01', time_epoch_completed='1629997144.59', return_code='0', job_id='953320', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='2.64e-09', photon_flux_error2='1.51e-04', ts2='43.98', photon_index='2.13' WHERE bin_id='1264' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 09:59:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 953320: <4FGL_J0654.3+5042_daily_bin1264> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1264> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 09:45:52 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:45:54 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:45:54 2021
Terminated at Thu Aug 26 09:59:08 2021
Results reported at Thu Aug 26 09:59:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1264 103.596 50.7027 566956801 567216001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.3+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             197.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            796 sec.

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

