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


Performing analysis on: 4FGL_J1724.9+7654_daily_bin1667
RA = 261.233, Dec = 76.9152
tmin = 671414401, tmax = 671673601
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='478423', job_status='RUN', time_executed='2022-04-15 03:32:46.260392', time_epoch_executed='1650018766.26' WHERE source_name='4FGL J1724.9+7654' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478423/ft1_4FGL_J1724.9+7654_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478423/ft1_4FGL_J1724.9+7654_daily_bin1667.fits outfile=/scratch/kocevski/478423/ft1_filteredMKT_4FGL_J1724.9+7654_daily_bin1667.fits ra=261.233 dec=76.9152 rad=12.0 tmin=671414401.0 tmax=671673601.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.52
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.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/478423/ft1_filteredMKT_4FGL_J1724.9+7654_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.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.15

Number of photons that the gtmktime cut: 1020

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478423/ltcube_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.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/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits
.....................!
real 12.52
user 12.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478423/ltcube_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.fits outfile=/scratch/kocevski/478423/expmap_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.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/478423/ltcube_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.fits
.....................!
real 191.89
user 185.69
sys 5.65

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
Added 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J1724.9+7654 @ 261.233 76.9152

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits scfile=/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits outfile=/scratch/kocevski/478423/cmap_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.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=261.233 yref=76.9152 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits scfile=/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits outfile=/scratch/kocevski/478423/cmap_HighResolution_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.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=261.233 yref=76.9152 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478423/Model_4FGL_J1724.9+7654_daily_bin1667.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
Working on...
/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits....................!
real 124.12
user 122.58
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits', '/scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits', expMap='/scratch/kocevski/478423/expmap_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.fits', expCube='/scratch/kocevski/478423/ltcube_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478423/Model_4FGL_J1724.9+7654_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1724.9+7654'

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  4.559e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478423/ft1_filtered_4FGL_J1724.9+7654_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478423/ft2_4FGL_J1724.9+7654_daily_bin1667.fits
Exposure map: /scratch/kocevski/478423/expmap_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478423/ltcube_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478423/Model_4FGL_J1724.9+7654_daily_bin1667.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) = 10663.0604155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.309       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.053       1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.641       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .23289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4894       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1360       1.0000         .10000E-03   10000.    
    18 'norm      '    10.251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.887       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.708       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.301       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0959       1.0000         .10000E-03   10000.    
    25 'norm      '    .27171E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81305       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10663.02     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3762 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.309        15.467        .89411E-07    .47360E-05
   2  Prefactor     .10000E-03    17.376       -.86716E-06** at limit **
   3  Prefactor     76.242        60.805        .11430E-05   -.37803E-05
   4  Prefactor     6.9866        17.310        .56093E-07    .81424E-06
   5  Prefactor     27.269        32.738        .11908E-05    .22612E-05
   6  Prefactor     .10000E-03    35.790       -.26159E-05** at limit **
   7  norm          28.053        15.440       -.73245E-09    .45580E-04
   8  Prefactor     87.613        125.50        .32305E-05    .65634E-06
   9  Prefactor     .10000E-03    13.183        .16338E-06** at limit **
  10  norm          .23291        .48635        .44920E-07   -.13456E-03
  11  Prefactor     4.2081        7.0455        .17308E-06    .20342E-04
  12  Prefactor     .10000E-03    1.3614       -.41361E-06** at limit **
  13  Prefactor     .10000E-03    4.1325       -.70860E-08** at limit **
  14  Prefactor     40.351        28.569        .45973E-06    .14593E-03
  15  Prefactor     .10000E-03    25.126        .17264E-05** at limit **
  16  norm          3.4893        2.0429        .15459E-07    .20225E-04
  17  norm          5.1360        1.0202       -.39188E-08    .40530E-03
  18  norm          10.251        5.2853       -.47623E-07    .23207E-04
  19  Prefactor     15.907        113.27       -.44784E-05    .29213E-05
  20  Prefactor     15.708        8.7407        .50268E-07    .20227E-04
  21  Prefactor     22.302        19.646       -.19276E-07    .73394E-05
  22  Prefactor     .10000E-03    57.532        .12585E-05** at limit **
  23  norm          .10000E-03    1.1594       -.62116E-08** at limit **
  24  Prefactor     6.0955        5.2129        .11854E-05   -.33499E-05
  25  norm          .10000E-03    1.1059       -.55292E-08** at limit **
  26  norm          .10000E-03    2.0185        .13219E-06** at limit **
  27  Prefactor     .10000E-03    8.5711        .42332E-07** at limit **
  28  Normalizat    .81305        .16580        .32102E-06    .83604E-04
  29  Prefactor     1.0403        .90968E-01   -.53508E-06    .87170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.309
  Prefactor  = 0.0001
  Prefactor  = 76.2422
  Prefactor  = 6.98657
  Prefactor  = 27.2688
  Prefactor  = 0.0001
  norm       = 28.0531
  Prefactor  = 87.6129
  Prefactor  = 0.0001
  norm       = 0.232911
  Prefactor  = 4.20806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.351
  Prefactor  = 0.0001
  norm       = 3.48935
  norm       = 5.13601
  norm       = 10.2512
  Prefactor  = 15.9073
  Prefactor  = 15.7079
  Prefactor  = 22.3016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.09545
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.813054
  Prefactor  = 1.04032
 **********
 **   18 **HESSE 
 **********

 FCN=   10663.02     FROM HESSE     STATUS=OK           563 CALLS     4325 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.309        15.473        .86768E-04   -1.4784    
   2  Prefactor     .10000E-03    17.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     76.242        60.779        .22992E-03   -1.3959    
   4  Prefactor     6.9866        17.319        .15177E-03   -1.5179    
   5  Prefactor     27.269        32.765        .76702E-04   -1.4663    
   6  Prefactor     .10000E-03    35.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.053        15.421        .75639E-04   -1.4648    
   8  Prefactor     87.613        125.53        .42917E-04   -1.3833    
   9  Prefactor     .10000E-03    13.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .23291        .46954        .94248E-04   -1.5611    
  11  Prefactor     4.2081        6.8608        .19645E-03   -1.5298    
  12  Prefactor     .10000E-03    2.1514        .21707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.351        27.271        .63098E-04   -1.4437    
  15  Prefactor     .10000E-03    25.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4893        2.0419        .10793E-03   -1.5334    
  17  norm          5.1360        1.0210        .43239E-04   -1.5255    
  18  norm          10.251        5.2748        .12515E-03   -1.5068    
  19  Prefactor     15.907        112.89        .10048E-03   -1.4910    
  20  Prefactor     15.708        8.7277        .10105E-03   -1.4915    
  21  Prefactor     22.302        19.581        .84819E-04   -1.4763    
  22  Prefactor     .10000E-03    57.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1673        .10830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.0955        5.2210        .81306E-03   -1.5214    
  25  norm          .10000E-03    1.6947        .39950E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.0724        .28647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.6336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .81305        .18237        .35169E-03   -.99586    
  29  Prefactor     1.0403        .10030        .18251E-03   -.91397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23022e-10
Minuit parameter uncertainties:
  1  15.4763
  2  2.05094e-06
  3  60.8286
  4  17.3316
  5  32.7866
  6  3.89812e-05
  7  15.4235
  8  125.915
  9  2.86609e-06
  10  0.46955
  11  6.86207
  12  9.38598e-07
  13  4.69042e-07
  14  27.2796
  15  2.54864e-05
  16  2.04192
  17  1.02097
  18  5.27499
  19  84.9806
  20  8.72843
  21  19.587
  22  2.40789e-05
  23  6.56466e-07
  24  5.22135
  25  8.01737e-05
  26  1.18979e-07
  27  3.45923e-06
  28  0.182507
  29  0.100319
Done.

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

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  4.035e+01  2.728e+01  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  1.040e+00  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  8.131e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.83
Ra Dec: 261.233 76.915
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.22e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 9.98e-06

TS (Fixed Index): 3.83
Ra Dec: 261.233 76.915
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478423/likelihoodResults_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.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) = 10662.9582399
delta logL = 0.0666492235323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10662.9548401
delta logL = 0.0700490901236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.133       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9628       1.0000          .0000       10.000    
     3 'Normalizat'    .80031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+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=   10662.95     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.129        33.977        .69615E-04    .34040E-03
   2  Index         2.9626        .75016        .76712E-02    .12687E-03
   3  Normalizat    .80038        .17325        .35409E-03   -.47896E-03
   4  Prefactor     1.0444        .98241E-01    .18219E-03   -.93967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.129
  Index      = 2.96262
  Normalizat = 0.800377
  Prefactor  = 1.04444
 **********
 **   18 **HESSE 
 **********

 FCN=   10662.95     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.129        30.117        .13923E-04   -1.4556    
   2  Index         2.9626        .66428        .30685E-03   -.41969    
   3  Normalizat    .80038        .17302        .14164E-04   -1.0005    
   4  Prefactor     1.0444        .98187E-01    .36437E-04   -.91263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.741e-10
Minuit parameter uncertainties:
  1  30.1305
  2  0.666642
  3  0.173139
  4  0.0982037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478423': 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) = 10662.9548396
delta logL = 0.0700495351994

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  3.313e+01  3.013e+01  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.963e+00  6.666e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  1.044e+00  9.820e-02  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  8.004e-01  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 261.233 76.915
Photon Index (Free Index): 2.96 +/- 0.67
Photon Flux (Free Index): 7.39e-08 +/- 5.25e-08
Energy Flux (Free Index): 1.50e-05 +/- 9.25e-06

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/478423/cmap_HighResolution_671414401_671673601_4FGL_J1724.9+7654_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='6.22e-08', energy_flux2='1.50e-05', photon_flux_error='4.20e-08', dlogl='7.00e-02', energy_flux='1.48e-05', photon_flux2='7.39e-08', job_status='DONE', time_completed='2022-04-15 03:55:43.825572', photon_index_error2='0.67', photon_index2='2.96', ts='3.83', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='9.25e-06', EG='0.81', time_epoch_completed='1650020143.83', return_code='0', job_id='478423', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='9.98e-06', photon_flux_error2='5.25e-08', ts2='4.07', photon_index='2.72' WHERE bin_id='1667' AND source_name='4FGL J1724.9+7654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:55:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 478422: <4FGL_J1724.9+7654_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1724.9+7654_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:50 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:25 2022
Terminated at Fri Apr 15 03:55:29 2022
Results reported at Fri Apr 15 03:55:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.9+7654_daily_bin1667 261.233 76.9152 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1724.9+7654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1380.05 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1443 sec.
    Turnaround time :                            13659 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 478423: <4FGL_J1724.9+7654_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1724.9+7654_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:50 2022
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:25 2022
Terminated at Fri Apr 15 03:55:44 2022
Results reported at Fri Apr 15 03:55:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.9+7654_daily_bin1667 261.233 76.9152 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1724.9+7654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1378.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1459 sec.
    Turnaround time :                            13674 sec.

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

