aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 192 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7395
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0650.7+2503_daily_bin1722
RA = 102.699, Dec = 25.0548
tmin = 685670401, tmax = 685929601
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='229962', job_status='RUN', time_executed='2022-09-27 00:22:05.373391', time_epoch_executed='1664263325.37' WHERE source_name='4FGL J0650.7+2503' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229962/ft1_4FGL_J0650.7+2503_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229962/ft1_4FGL_J0650.7+2503_daily_bin1722.fits outfile=/scratch/kocevski/229962/ft1_filteredMKT_4FGL_J0650.7+2503_daily_bin1722.fits ra=102.699 dec=25.0548 rad=12.0 tmin=685670401.0 tmax=685929601.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.69
user 3.42
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.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/229962/ft1_filteredMKT_4FGL_J0650.7+2503_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.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.33
sys 0.16

Number of photons that the gtmktime cut: 2236

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229962/ltcube_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.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/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits
.....................!
real 14.29
user 13.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229962/ltcube_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.fits outfile=/scratch/kocevski/229962/expmap_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.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/229962/ltcube_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.fits
.....................!
real 194.35
user 185.97
sys 4.98

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 174 point sources and 4 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 J0650.7+2503 @ 102.699 25.0548

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits scfile=/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits outfile=/scratch/kocevski/229962/cmap_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.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=102.699 yref=25.0548 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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits scfile=/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits outfile=/scratch/kocevski/229962/cmap_HighResolution_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.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=102.699 yref=25.0548 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229962/Model_4FGL_J0650.7+2503_daily_bin1722.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 IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits.....................!
real 454.63
user 451.72
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits', '/scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits', expMap='/scratch/kocevski/229962/expmap_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.fits', expCube='/scratch/kocevski/229962/ltcube_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229962/Model_4FGL_J0650.7+2503_daily_bin1722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0650.7+2503'

4FGL J0650.7+2503
   Spectrum: LogParabola
291         norm:  8.998e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        alpha:  1.680e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  2.860e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.965e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/229962/ft1_filtered_4FGL_J0650.7+2503_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229962/ft2_4FGL_J0650.7+2503_daily_bin1722.fits
Exposure map: /scratch/kocevski/229962/expmap_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229962/ltcube_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229962/Model_4FGL_J0650.7+2503_daily_bin1722.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) = 20047.4497265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1950       1.0000          .0000       .10000E+07
     2 'norm      '    .71970E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .24662E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28843E-04   1.0000          .0000       .10000E+07
     5 'norm      '    2.9455       1.0000          .0000       .10000E+07
     6 'Prefactor '    .77933E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.735       1.0000          .0000       .10000E+07
     8 'norm      '    88.476       1.0000          .0000       .10000E+07
     9 'norm      '    .95357E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .53000E-05   1.0000          .0000       .10000E+07
    11 'Normalizat'    1.1514       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .95210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20047.42     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      689 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1918        5.9642        .15043E-06   -.17973E-02
   2  norm           .0000        .63825        .67322E-06** at limit **
   3  Prefactor      .0000        11.069       -.11726E-05** at limit **
   4  Prefactor     .66613E-09    48.001        .13236E-05** at limit **
   5  norm          2.9503        9.8016       -.49680E-06   -.19125E-03
   6  Prefactor     .33307E-09    13.683        .42602E-06** at limit **
   7  Prefactor     20.753        10.676        .33237E-06   -.13026E-02
   8  norm          88.184        1.7598        .15582E-07    .29497E-01
   9  norm          .55511E-10    8.8390        .72594E-06** at limit **
  10  Prefactor      .0000        2.4126        .95077E-06** at limit **
  11  Normalizat    1.1520        .19053       -.17986E-04   -.67710E-04
  12  Prefactor     .95205        .51867E-01    .36752E-05   -.29786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19183
  norm       = 0
  Prefactor  = 0
  Prefactor  = 6.66134e-10
  norm       = 2.95031
  Prefactor  = 3.33067e-10
  Prefactor  = 20.753
  norm       = 88.1837
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 1.15197
  Prefactor  = 0.95205
 **********
 **   18 **HESSE 
 **********

 FCN=   20047.42     FROM HESSE     STATUS=OK           155 CALLS      844 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1918        5.9490        .44081E-03   -1.5662    
   2  norm           .0000        .63891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        11.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66613E-09    48.831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9503        9.7938        .59152E-03   -1.5674    
   6  Prefactor     .33307E-09    13.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.753        10.712        .21967E-03   -1.5617    
   8  norm          88.184        17.223        .10632E-03   -1.5520    
   9  norm          .55511E-10    .25853        .26299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.4114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    1.1520        .18612        .13655       -.88100    
  12  Prefactor     .95205        .49644E-01    .45666E-01   -.94345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04972e-07
Minuit parameter uncertainties:
  1  5.94906
  2  4.74367e-07
  3  2.96394e-05
  4  0.000365242
  5  9.79388
  6  0.00013834
  7  10.7117
  8  17.223
  9  8.02187e-06
  10  1.25325e-05
  11  0.186223
  12  0.0496459
Done.

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

Extracting fit parameters...

4FGL J0650.7+2503
   Spectrum: LogParabola
291         norm:  2.950e+00  9.794e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        alpha:  1.680e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  2.860e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.965e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  9.521e-01  4.965e-02  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.152e+00  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 102.699 25.055
Photon Flux Upper Limit: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229962/likelihoodResults_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20047.414725
delta logL = 0.000725446723663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20047.4147014
delta logL = 0.000749046135752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9649       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6288       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95204       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20047.41     FROM MIGRAD    STATUS=FAILED        99 CALLS      273 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9737        906.69        .11789E-03    .17988E-02
   2  alpha         1.6301        4.1768        .50000       -.82902E-03
   3  Normalizat    1.1523        .99015E-01    .60654E-03    .32314E-04
   4  Prefactor     .95203        .20962E-01    .17820E-03   -.38360E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   20047.41     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      362 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9737        906.69        .36438E-04    .17988E-02
   2  alpha         1.6301        4.1768        .29730E-02   -.82902E-03
   3  Normalizat    1.1523        .99015E-01    .12324E-03    .32314E-04
   4  Prefactor     .95203        .20962E-01    .28214E-04   -.38360E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20047.41     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      434 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9738        9.9909        .94314E-06    .15771E-02
   2  alpha         1.6301        1.2363        .55054E-01    .17119E-04
   3  Normalizat    1.1523        .18819        .48523E-05    .52482E-04
   4  Prefactor     .95203        .51271E-01    .71281E-05   -.31133E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9738
  alpha      = 1.63011
  Normalizat = 1.15228
  Prefactor  = 0.952035
 **********
 **   18 **HESSE 
 **********

 FCN=   20047.41     FROM HESSE     STATUS=OK            25 CALLS      459 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9738        9.8247        .37368E-06   -1.5673    
   2  alpha         1.6301        1.2213        .22022E-02   -.35539    
   3  Normalizat    1.1523        .18838        .97047E-06   -.88091    
   4  Prefactor     .95203        .51308E-01    .14256E-05   -.94346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95366e-10
Minuit parameter uncertainties:
  1  9.82479
  2  1.28467
  3  0.188486
  4  0.051311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229962': 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) = 20047.4147005
delta logL = 0.000749956605432

Extracting fit parameters...

4FGL J0650.7+2503
   Spectrum: LogParabola
291         norm:  2.974e+00  9.825e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        alpha:  1.630e+00  1.285e+00  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  2.860e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.965e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  9.520e-01  5.131e-02  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.152e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 102.699 25.055

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/229962/cmap_HighResolution_685670401_685929601_4FGL_J0650.7+2503_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-05', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2022-09-27 00:42:37.092155', job_id='229962', GAL2='0.95', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1664264557.09', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.50e-04', ts2='0.11', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='1722' AND source_name='4FGL J0650.7+2503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:42:37 PDT 2022

----------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 229963: <4FGL_J0650.7+2503_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0650.7+2503_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:40 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:18:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:18:43 2022
Terminated at Tue Sep 27 00:36:48 2022
Results reported at Tue Sep 27 00:36:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.7+2503_daily_bin1722 102.699 25.0548 685670401 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0650.7+2503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1003.20 sec.
    Max Memory :                                 621 MB
    Average Memory :                             378.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1085 sec.
    Turnaround time :                            1868 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 229962: <4FGL_J0650.7+2503_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0650.7+2503_daily_bin1722> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:40 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:18:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:18:43 2022
Terminated at Tue Sep 27 00:42:37 2022
Results reported at Tue Sep 27 00:42:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0650.7+2503_daily_bin1722 102.699 25.0548 685670401 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0650.7+2503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1225.94 sec.
    Max Memory :                                 1270 MB
    Average Memory :                             398.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2934 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1434 sec.
    Turnaround time :                            2217 sec.

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

