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


Performing analysis on: 4FGL_J1724.9+7654_daily_bin1056
RA = 261.233, Dec = 76.9152
tmin = 513043201, tmax = 513302401
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='676357', job_status='RUN', time_executed='2021-09-17 09:04:32.202751', time_epoch_executed='1631894672.2' WHERE source_name='4FGL J1724.9+7654' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/676357

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/676357/ft1_4FGL_J1724.9+7654_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/676357/ft1_4FGL_J1724.9+7654_daily_bin1056.fits outfile=/scratch/kocevski/676357/ft1_filteredMKT_4FGL_J1724.9+7654_daily_bin1056.fits ra=261.233 dec=76.9152 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.39
user 6.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.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/676357/ft1_filteredMKT_4FGL_J1724.9+7654_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/676357/ltcube_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.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/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits
.....................!
real 12.14
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/676357/ltcube_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.fits outfile=/scratch/kocevski/676357/expmap_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.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/676357/ltcube_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.fits
.....................!
real 190.48
user 185.06
sys 5.09

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/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits scfile=/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits outfile=/scratch/kocevski/676357/cmap_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits scfile=/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits outfile=/scratch/kocevski/676357/cmap_HighResolution_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/676357/Model_4FGL_J1724.9+7654_daily_bin1056.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/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits.....................!
real 48.41
user 47.16
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits', '/scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits', expMap='/scratch/kocevski/676357/expmap_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.fits', expCube='/scratch/kocevski/676357/ltcube_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/676357/Model_4FGL_J1724.9+7654_daily_bin1056.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/676357/ft1_filtered_4FGL_J1724.9+7654_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/676357/ft2_4FGL_J1724.9+7654_daily_bin1056.fits
Exposure map: /scratch/kocevski/676357/expmap_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.fits
Exposure cube: /scratch/kocevski/676357/ltcube_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/676357/Model_4FGL_J1724.9+7654_daily_bin1056.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) = 3710.67988492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    110.29       1.0000         .10000E-03   10000.    
     4 'Prefactor '    123.70       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1703       1.0000         .10000E-03   10000.    
    10 'norm      '    .56642       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.418       1.0000         .10000E-03   10000.    
    16 'norm      '    .31369E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4132       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18300E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.204       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60927       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90978       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=   3710.622     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3724 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.623        .26352E-06** at limit **
   2  Prefactor     .10000E-03    19.091        .35691E-07** at limit **
   3  Prefactor     110.33        106.01       -.29752E-06    .29589E-05
   4  Prefactor     123.71        55.052       -.27789E-06    .74676E-05
   5  Prefactor     .10000E-03    23.609       -.86698E-07** at limit **
   6  Prefactor     .10000E-03    72.064       -.27585E-06** at limit **
   7  norm          19.571        28.133        .26632E-06    .16173E-04
   8  Prefactor     2.5186        1306.9       -.40311E-04   -.24965E-05
   9  Prefactor     6.1660        37.511        .13928E-06    .66278E-05
  10  norm          .56636        .61315       -.53651E-07    .13562E-03
  11  Prefactor     .10000E-03    3.7954       -.10844E-06** at limit **
  12  Prefactor     1.2178        11.003       -.59723E-06   -.55818E-05
  13  Prefactor     .10000E-03    15.951       -.48079E-06** at limit **
  14  Prefactor     61.892        60.362        .93439E-06    .49822E-04
  15  Prefactor     26.669        108.11       -.11231E-05    .74050E-05
  16  norm          .10002E-03    4.1730       -.18228E-05** at limit **
  17  norm          5.4131        1.8105        .18522E-07    .17926E-03
  18  norm          2.1933        5.9787        .19551E-05    .45015E-03
  19  Prefactor     .10000E-03    173.83       -.20721E-06** at limit **
  20  Prefactor     13.752        11.474       -.14994E-06    .21761E-03
  21  Prefactor     .10000E-03    24.641       -.37393E-06** at limit **
  22  Prefactor     .10000E-03    106.23       -.12208E-06** at limit **
  23  norm          .10000E-03    2.4028       -.10291E-06** at limit **
  24  Prefactor     .10000E-03    5.6721       -.38264E-06** at limit **
  25  norm          13.206        7.3062        .66373E-07    .20156E-05
  26  norm          .10000E-03    3.2637       -.18841E-06** at limit **
  27  Prefactor     .10000E-03    7.5877       -.61715E-07** at limit **
  28  Normalizat    .60928        .24874        .29668E-05    .14323E-03
  29  Prefactor     .90972        .14483       -.11179E-05    .31279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.331
  Prefactor  = 123.71
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5713
  Prefactor  = 2.5186
  Prefactor  = 6.16597
  norm       = 0.566361
  Prefactor  = 0.0001
  Prefactor  = 1.21784
  Prefactor  = 0.0001
  Prefactor  = 61.892
  Prefactor  = 26.6691
  norm       = 0.000100018
  norm       = 5.41309
  norm       = 2.19332
  Prefactor  = 0.0001
  Prefactor  = 13.7522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2059
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.609284
  Prefactor  = 0.909717
 **********
 **   18 **HESSE 
 **********

 FCN=   3710.622     FROM HESSE     STATUS=OK           549 CALLS     4273 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     110.33        106.01        .19150E-03   -1.3603    
   4  Prefactor     123.71        55.246        .36189E-04   -1.3479    
   5  Prefactor     .10000E-03    23.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    72.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.571        27.823        .90525E-04   -1.4823    
   8  Prefactor     2.5186        1342.5        .24890E-02   -1.5391    
   9  Prefactor     6.1660        37.319        .16162E-03   -1.5211    
  10  norm          .56636        .60851        .47815E-04   -1.5557    
  11  Prefactor     .10000E-03    3.8018        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2178        9.4893        .28713E-03   -1.5487    
  13  Prefactor     .10000E-03    16.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     61.892        56.823        .50999E-04   -1.4133    
  15  Prefactor     26.669        107.89        .38970E-03   -1.4675    
  16  norm          .10002E-03    11.353        .20547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4131        1.8110        .44721E-04   -1.5243    
  18  norm          2.1933        6.0502        .23041E-03   -1.5412    
  19  Prefactor     .10000E-03    173.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.752        11.390        .10801E-03   -1.4966    
  21  Prefactor     .10000E-03    24.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    106.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.4167        .92208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.7509        .14169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.206        7.3252        .11023E-03   -1.4981    
  26  norm          .10000E-03    3.3064        .10745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.5975        .16388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .60928        .27321        .34935E-03   -1.0759    
  29  Prefactor     .90972        .16048        .17644E-03   -.95802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93442e-09
Minuit parameter uncertainties:
  1  5.5613e-06
  2  1.33752e-05
  3  106.188
  4  55.2691
  5  6.76211e-06
  6  7.96359e-05
  7  27.8418
  8  119.082
  9  30.3666
  10  0.608521
  11  2.40027e-06
  12  6.80017
  13  1.20531e-05
  14  56.8728
  15  107.621
  16  0.000913757
  17  1.81102
  18  6.05186
  19  7.80414e-05
  20  11.392
  21  3.17663e-05
  22  7.4186e-05
  23  2.52206e-06
  24  9.60993e-06
  25  7.3257
  26  1.88029e-06
  27  1.42471e-06
  28  0.273818
  29  0.16056
Done.

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

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  6.189e+01  5.687e+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:  9.097e-01  1.606e-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:  6.093e-01  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.98
Ra Dec: 261.233 76.915
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 9.54e-08 +/- 8.75e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 2.08e-05

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

Saving results to:
/scratch/kocevski/676357/likelihoodResults_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.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) = 3710.5827154
delta logL = 0.0389583954466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3710.58025214
delta logL = 0.0414216533404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.966       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5191       1.0000          .0000       10.000    
     3 'Normalizat'    .61697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90668       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=   3710.580     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      291 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.993        66.947        .23500E-03    .33525E-04
   2  Index         2.5190        .69196        .63947E-02    .17849E-03
   3  Normalizat    .61690        .25754        .34743E-03    .39905E-04
   4  Prefactor     .90680        .15653        .17670E-03   -.89572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.9932
  Index      = 2.51896
  Normalizat = 0.6169
  Prefactor  = 0.906798
 **********
 **   18 **HESSE 
 **********

 FCN=   3710.580     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.993        65.506        .94001E-05   -1.3997    
   2  Index         2.5190        .67699        .12789E-02   -.51923    
   3  Normalizat    .61690        .25763        .13897E-04   -1.0727    
   4  Prefactor     .90680        .15658        .35340E-04   -.95904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94385e-11
Minuit parameter uncertainties:
  1  65.5703
  2  0.679765
  3  0.258129
  4  0.156657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/676357': 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) = 3710.58025157
delta logL = 0.0414222235509

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  7.299e+01  6.557e+01  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.519e+00  6.798e-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:  9.068e-01  1.567e-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:  6.169e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 261.233 76.915
Photon Index (Free Index): 2.52 +/- 0.68
Photon Flux (Free Index): 8.46e-08 +/- 7.70e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/676357/cmap_HighResolution_513043201_513302401_4FGL_J1724.9+7654_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-02', comment='SUCCESS', photon_flux='9.54e-08', energy_flux2='2.41e-05', photon_flux_error='8.75e-08', dlogl='4.14e-02', energy_flux='2.26e-05', photon_flux2='8.46e-08', job_status='DONE', time_completed='2021-09-17 09:16:14.749829', photon_index_error2='0.68', photon_index2='2.52', ts='3.98', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.59e-07', energy_flux_error2='1.94e-05', EG='0.61', time_epoch_completed='1631895374.75', return_code='0', job_id='676357', GAL2='0.91', EG2='0.62', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='7.70e-08', ts2='4.10', photon_index='2.72' WHERE bin_id='1056' AND source_name='4FGL J1724.9+7654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 09:16:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 676357: <4FGL_J1724.9+7654_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1724.9+7654_daily_bin1056> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 17 09:00:32 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 09:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 09:00:34 2021
Terminated at Fri Sep 17 09:16:15 2021
Results reported at Fri Sep 17 09:16:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.9+7654_daily_bin1056 261.233 76.9152 513043201 513302401 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 :                                   664.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

