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 120 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.DDone.


Performing analysis on: 4FGL_J1724.2+4005_daily_bin1667
RA = 261.051, Dec = 40.0891
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='478420', job_status='RUN', time_executed='2022-04-15 03:33:33.039008', time_epoch_executed='1650018813.04' WHERE source_name='4FGL J1724.2+4005' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478420

Creating custom pfile directory:
/scratch/kocevski/478420/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/478420/ft1_4FGL_J1724.2+4005_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/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478420/ft1_4FGL_J1724.2+4005_daily_bin1667.fits outfile=/scratch/kocevski/478420/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1667.fits ra=261.051 dec=40.0891 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.47
user 3.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_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/478420/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/478420/ft1_filtered_4FGL_J1724.2+4005_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.16

Number of photons that the gtmktime cut: 802

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478420/ft1_filtered_4FGL_J1724.2+4005_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478420/ltcube_671414401_671673601_4FGL_J1724.2+4005_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/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits
.....................!
real 12.26
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478420/ft1_filtered_4FGL_J1724.2+4005_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478420/ltcube_671414401_671673601_4FGL_J1724.2+4005_daily_bin1667.fits outfile=/scratch/kocevski/478420/expmap_671414401_671673601_4FGL_J1724.2+4005_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/478420/ltcube_671414401_671673601_4FGL_J1724.2+4005_daily_bin1667.fits
.....................!
real 190.58
user 185.65
sys 4.58

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

Setting source of interest to:
4FGL J1724.2+4005 @ 261.051 40.0891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478420/ft1_filtered_4FGL_J1724.2+4005_daily_bin1667.fits scfile=/scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits outfile=/scratch/kocevski/478420/cmap_671414401_671673601_4FGL_J1724.2+4005_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.051 yref=40.0891 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478420/ft1_filtered_4FGL_J1724.2+4005_daily_bin1667.fits scfile=/scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits outfile=/scratch/kocevski/478420/cmap_HighResolution_671414401_671673601_4FGL_J1724.2+4005_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.051 yref=40.0891 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/478420/ft1_filtered_4FGL_J1724.2+4005_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478420/ft2_4FGL_J1724.2+4005_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478420/Model_4FGL_J1724.2+4005_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/478420/ft1_filtered_4FGL_J1724.2+4005_daily_bin1667.fits.....................!
real 68.73
user 67.09
sys 1.14

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

Using source of interest name: '4FGL J1724.2+4005'

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  4.785e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .18215       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0446       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37156E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16552E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4354       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1904       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0139       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39429E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .33064       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2475       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1867       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0980       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21096E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.549       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.1559       1.0000         .10000E-03   10000.    
    27 'norm      '    .94136       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.9081       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.0845       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8481.336     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4456 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3837       -.28080E-07** at limit **
   2  norm          .18214        .10028       -.40178E-08    .20025E-03
   3  norm          3.0448        9.2518        .85157E-05   -.57457E-03
   4  Prefactor     .10000E-03    21.930       -.24712E-05** at limit **
   5  Prefactor     .10000E-03    1.8014       -.62943E-07** at limit **
   6  norm          .10000E-03    13.492       -.27969E-06** at limit **
   7  Prefactor     .10000E-03    .62761        .52717E-07** at limit **
   8  Prefactor     8.4361        1.8258       -.44507E-07   -.37186E-03
   9  Prefactor     .52093        2.2936        .14814E-05   -.25351E-03
  10  Prefactor     .10000E-03    .53845       -.39599E-08** at limit **
  11  norm          3.1904        1.5225       -.68436E-08   -.58336E-04
  12  norm          1.0147        .80248       -.83557E-07   -.66531E-03
  13  Prefactor     .10000E-03    4.5153        .17676E-06** at limit **
  14  norm          .33094        .57267        .26649E-06    .43856E-03
  15  norm          6.2472        6.4004        .18062E-06    .13816E-05
  16  norm          5.9114        2.0253        .64734E-07   -.36809E-03
  17  Prefactor     .10000E-03    1.3427        .58208E-08** at limit **
  18  Prefactor     .10001E-03    32.912        .63505E-05** at limit **
  19  norm          5.1856        4.5212       -.54844E-06   -.61780E-03
  20  Prefactor     .10001E-03    40.667       -.63211E-05** at limit **
  21  Prefactor     .10001E-03    84.175       -.53068E-05** at limit **
  22  norm          3.0966        3.8271        .26713E-06   -.70351E-04
  23  Prefactor     .10007E-03    97.720        .89972E-05** at limit **
  24  Prefactor     28.420        38.018       -.48396E-05   -.43963E-03
  25  Prefactor     .10000E-03    3.9498        .33934E-07** at limit **
  26  Prefactor     8.1552        7.4389       -.23291E-06   -.14610E-03
  27  norm          .94131        1.5756        .44876E-06    .55286E-03
  28  norm          .10000E-03    18.253        .12367E-05** at limit **
  29  norm          1.9078        6.7357        .23506E-07   -.27023E-03
  30  Prefactor     5.0842        5.2766        .57829E-06    .20741E-03
  31  Normalizat    1.2340        .18859        .74183E-07   -.16258E-03
  32  Prefactor     .74126        .12060       -.50802E-06   -.83916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.182138
  norm       = 3.04481
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.43608
  Prefactor  = 0.520931
  Prefactor  = 0.0001
  norm       = 3.19042
  norm       = 1.01469
  Prefactor  = 0.000100002
  norm       = 0.33094
  norm       = 6.24724
  norm       = 5.91135
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 5.18563
  Prefactor  = 0.000100009
  Prefactor  = 0.000100008
  norm       = 3.09663
  Prefactor  = 0.000100068
  Prefactor  = 28.4201
  Prefactor  = 0.0001
  Prefactor  = 8.15519
  norm       = 0.941305
  norm       = 0.0001
  norm       = 1.90779
  Prefactor  = 5.08422
  Normalizat = 1.23404
  Prefactor  = 0.741265  **********
 **   18 **HESSE 
 **********

 FCN=   8481.336     FROM HESSE     STATUS=OK           671 CALLS     5127 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4008        .10575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .18214        .10007        .20577E-04   -1.5623    
   3  norm          3.0448        9.5448        .11626E-02   -1.5359    
   4  Prefactor     .10000E-03    22.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8404        .23676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3509        .11864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4361        1.5744        .46164E-04   -1.5127    
   9  Prefactor     .52093        2.1853        .26637E-03   -1.5564    
  10  Prefactor     .10000E-03    .53968        .65976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1904        1.5221        .75730E-04   -1.5351    
  12  norm          1.0147        .76007        .67797E-03   -1.5507    
  13  Prefactor     .10000E-03    13.070        .36039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .33094        .48846        .86827E-03   -1.5593    
  15  norm          6.2472        6.3876        .16060E-03   -1.5208    
  16  norm          5.9114        2.0124        .71643E-04   -1.5222    
  17  Prefactor     .10000E-03    1.3643        .10419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    33.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1856        4.5365        .17562E-03   -1.5252    
  20  Prefactor     .10001E-03    41.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    84.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0966        3.8169        .19270E-03   -1.5356    
  23  Prefactor     .10007E-03    102.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.420        39.278        .74981E-04   -1.4641    
  25  Prefactor     .10000E-03    3.9559        .17874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.1552        7.4243        .14039E-03   -1.5137    
  27  norm          .94131        1.3100        .14563E-02   -1.5514    
  28  norm          .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.9078        6.7504        .30099E-03   -1.5432    
  30  Prefactor     5.0842        5.2686        .17831E-03   -1.5257    
  31  Normalizat    1.2340        .22317        .27344E-03   -.85557    
  32  Prefactor     .74126        .14407        .22842E-03   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08969e-09
Minuit parameter uncertainties:
  1  3.47403e-06
  2  0.100069
  3  9.5496
  4  0.000341735
  5  6.42119e-05
  6  4.0363e-05
  7  3.19058e-06
  8  1.57441
  9  2.13383
  10  5.1101e-07
  11  1.52213
  12  0.760081
  13  0.000306655
  14  0.488463
  15  6.38829
  16  2.01245
  17  1.07497e-06
  18  0.00125308
  19  4.53685
  20  0.00124864
  21  0.00169124
  22  3.81721
  23  0.00528232
  24  39.3137
  25  1.5638e-06
  26  7.42512
  27  1.31009
  28  0.000164883
  29  6.7531
  30  5.26912
  31  0.223347
  32  0.144141DDone.

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

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  6.247e+00  6.388e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  7.413e-01  1.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.234e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 261.051 40.089
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 7.71e-06 +/- 7.88e-06

TS (Fixed Index): 1.63
Ra Dec: 261.051 40.089
Photon Flux Upper Limit: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478420/likelihoodResults_671414401_671673601_4FGL_J1724.2+4005_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) = 8480.3258924
delta logL = 1.01029618474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8480.13901445
delta logL = 1.19717414418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1222       1.0000         .10000E-03   10000.    
     2 'alpha     '    .89251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8480.139     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1195        2.2846        .70773E-02   -.26598E-03
   2  alpha         .89187        .46785        .47683       -.48379E-04
   3  Normalizat    1.2488        .17639        .61502E-01    .11194E-04
   4  Prefactor     .73901        .11789        .42918E-01    .19638E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11946
  alpha      = 0.891873
  Normalizat = 1.24885
  Prefactor  = 0.739007
 **********
 **   18 **HESSE 
 **********

 FCN=   8480.139     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .20E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1195        4.7443        .13316E-03   -1.5417    
   2  alpha         .89187        .94103        .20960E-02   -.69874    
   3  Normalizat    1.2488        .20957        .27202E-03   -.85106    
   4  Prefactor     .73901        .14023        .22874E-03   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03428e-15
Minuit parameter uncertainties:
  1  4.74509
  2  0.983769
  3  0.209715
  4  0.140299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478420': 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) = 8480.13901422
delta logL = 1.19717436963

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  2.119e+00  4.745e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  8.919e-01  9.838e-01  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  7.390e-01  1.403e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.249e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 261.051 40.089
Photon Index (Free Index): 0.89 +/- 0.98
Photon Flux (Free Index): 5.22e-09 +/- 8.23e-09
Energy Flux (Free Index): 2.29e-05 +/- 3.41e-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/478420/cmap_HighResolution_671414401_671673601_4FGL_J1724.2+4005_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='2.29e-05', photon_flux_error='2.40e-08', dlogl='1.20e+00', energy_flux='7.71e-06', photon_flux2='5.22e-09', job_status='DONE', time_completed='2022-04-15 03:56:09.666618', photon_index_error2='0.98', photon_index2='0.89', ts='1.63', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='8.29e-08', energy_flux_error2='3.41e-05', EG='1.23', time_epoch_completed='1650020169.67', return_code='0', job_id='478420', GAL2='0.74', EG2='1.25', return_code2='0', energy_flux_error='7.88e-06', photon_flux_error2='8.23e-09', ts2='4.02', photon_index='2.33' WHERE bin_id='1667' AND source_name='4FGL J1724.2+4005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:56:09 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 478421: <4FGL_J1724.2+4005_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1724.2+4005_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) <bullet0076>, 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:25 2022
Results reported at Fri Apr 15 03:55:25 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   1373.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1440 sec.
    Turnaround time :                            13655 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 478420: <4FGL_J1724.2+4005_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1724.2+4005_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:49 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:24 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:24 2022
Terminated at Fri Apr 15 03:56:10 2022
Results reported at Fri Apr 15 03:56:10 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   1353.90 sec.
    Max Memory :                                 623 MB
    Average Memory :                             304.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1485 sec.
    Turnaround time :                            13701 sec.

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

