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


Performing analysis on: 4FGL_J1724.9+7654_daily_bin1202
RA = 261.233, Dec = 76.9152
tmin = 550886401, tmax = 551145601
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='677598', job_status='RUN', time_executed='2021-09-17 09:07:53.647492', time_epoch_executed='1631894873.65' WHERE source_name='4FGL J1724.9+7654' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677598/ft1_4FGL_J1724.9+7654_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677598/ft2_4FGL_J1724.9+7654_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677598/ft1_4FGL_J1724.9+7654_daily_bin1202.fits outfile=/scratch/kocevski/677598/ft1_filteredMKT_4FGL_J1724.9+7654_daily_bin1202.fits ra=261.233 dec=76.9152 rad=12.0 tmin=550886401.0 tmax=551145601.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.77
user 3.57
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677598/ft1_filtered_4FGL_J1724.9+7654_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/677598/ft2_4FGL_J1724.9+7654_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/677598/ltcube_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.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/677598/ft2_4FGL_J1724.9+7654_daily_bin1202.fits
.....................!
real 11.87
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677598/ft1_filtered_4FGL_J1724.9+7654_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/677598/ft2_4FGL_J1724.9+7654_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/677598/ltcube_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.fits outfile=/scratch/kocevski/677598/expmap_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.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/677598/ltcube_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.fits
.....................!
real 189.46
user 184.73
sys 4.36

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/677598/ft1_filtered_4FGL_J1724.9+7654_daily_bin1202.fits scfile=/scratch/kocevski/677598/ft2_4FGL_J1724.9+7654_daily_bin1202.fits outfile=/scratch/kocevski/677598/cmap_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677598/ft1_filtered_4FGL_J1724.9+7654_daily_bin1202.fits scfile=/scratch/kocevski/677598/ft2_4FGL_J1724.9+7654_daily_bin1202.fits outfile=/scratch/kocevski/677598/cmap_HighResolution_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.866       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10133E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84796E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.648       1.0000         .10000E-03   10000.    
     7 'norm      '    .15102E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11568E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.904       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19557E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16679E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7553       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4129       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5616       1.0000         .10000E-03   10000.    
    18 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    351.73       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16987       1.0000         .10000E-03   10000.    
    21 'Prefactor '    95.023       1.0000         .10000E-03   10000.    
    22 'Prefactor '    147.54       1.0000         .10000E-03   10000.    
    23 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10936       1.0000         .10000E-03   10000.    
    25 'norm      '    .13494E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.1034       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .66908E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76956       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2900.537     FROM MIGRAD    STATUS=CONVERGED    277 CALLS     2755 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0320        23.503        .26964E-05    .55760E-04
   2  Prefactor     11.875        29.727       -.16068E-05    .66243E-05
   3  Prefactor     .10000E-03    66.175       -.98620E-06** at limit **
   4  Prefactor     .10000E-03    15.599        .13843E-06** at limit **
   5  Prefactor     64.150        69.005        .60179E-06   -.10805E-04
   6  Prefactor     28.329        95.509       -.73018E-05   -.42945E-04
   7  norm          .10000E-03    12.274        .26070E-06** at limit **
   8  Prefactor     .10000E-03    200.84        .58599E-05** at limit **
   9  Prefactor     .10000E-03    56.297        .11535E-06** at limit **
  10  norm          5.3822        2.2619       -.19306E-06    .31867E-05
  11  Prefactor     21.813        19.086       -.44272E-06   -.19447E-04
  12  Prefactor     .10000E-03    2.2662       -.49846E-07** at limit **
  13  Prefactor     .10000E-03    18.389       -.13400E-06** at limit **
  14  Prefactor     .10000E-03    16.818       -.23932E-06** at limit **
  15  Prefactor     .16050E-03    6960.4       -.12319E-03** at limit **
  16  norm          7.4450        5.2470       -.24000E-06    .18980E-04
  17  norm          2.5654        1.4978       -.18935E-06    .30620E-04
  18  norm          .10000E-03    3.1184        .34688E-06** at limit **
  19  Prefactor     362.67        322.71        .12913E-04   -.26184E-03
  20  Prefactor     .31892E-03    85.168        .19076E-04** at limit **
  21  Prefactor     95.031        48.913       -.52085E-05   -.15966E-04
  22  Prefactor     147.60        28.180        .16679E-05   -.58231E-02
  23  norm          .10000E-03    3.4836       -.39981E-07** at limit **
  24  Prefactor     .10000E-03    329.36        .32634E-05** at limit **
  25  norm          .10000E-03    6.6126        .21489E-06** at limit **
  26  norm          4.1007        6.2052       -.11080E-05   -.10458E-03
  27  Prefactor     .10000E-03    39.834        .16842E-06** at limit **
  28  Normalizat    .76349        .34137        .22103E-05    .88696E-04
  29  Prefactor     1.0499        .18919        .41065E-05    .19195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03199
  Prefactor  = 11.8748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.1496
  Prefactor  = 28.3293
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.38224
  Prefactor  = 21.8126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000160505
  norm       = 7.44496
  norm       = 2.56545
  norm       = 0.0001
  Prefactor  = 362.666
  Prefactor  = 0.000318917
  Prefactor  = 95.0312
  Prefactor  = 147.603
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 4.10075
  Prefactor  = 0.0001
  Normalizat = 0.763491
  Prefactor  = 1.04988
 **********
 **   18 **HESSE 
 **********

 FCN=   2900.537     FROM HESSE     STATUS=OK           623 CALLS     3378 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0320        23.548        .36168E-02   -1.5141    
   2  Prefactor     11.875        29.687        .29073E-02   -1.5019    
   3  Prefactor     .10000E-03    66.203        .90736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.632        .91877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     64.150        69.181        .12582E-02   -1.4104    
   6  Prefactor     28.329        95.219        .22590E-02   -1.4643    
   7  norm          .10000E-03    12.252        .10233E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    200.73        .10651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.384        .90808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3822        2.2587        .43338E-02   -1.5244    
  11  Prefactor     21.813        19.081        .21396E-02   -1.4774    
  12  Prefactor     .10000E-03    2.2529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.811        .10193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16050E-03    192.03        .14421       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4450        5.2511        .36827E-02   -1.5162    
  17  norm          2.5654        1.4991        .63767E-02   -1.5388    
  18  norm          .10000E-03    3.1174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     362.67        328.17        .54284E-03   -1.1876    
  20  Prefactor     .31892E-03    14.331        .63537E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     95.031        51.131        .10308E-02   -1.3755    
  22  Prefactor     147.60        157.12        .82943E-03   -1.3272    
  23  norm          .10000E-03    3.4823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.341        .64102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.5291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.1007        6.3512        .49753E-02   -1.5303    
  27  Prefactor     .10000E-03    39.550        .93860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .76349        .31094        .81521E-01   -1.0144    
  29  Prefactor     1.0499        .17230        .40068E-01   -.91085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89867e-07
Minuit parameter uncertainties:
  1  23.5756
  2  29.7238
  3  0.000196509
  4  6.96468e-06
  5  69.268
  6  95.7354
  7  1.51147e-06
  8  0.000775125
  9  5.62011e-05
  10  2.25875
  11  19.0867
  12  2.5392e-07
  13  8.20232e-06
  14  7.7763e-06
  15  0.216279
  16  5.25143
  17  1.49907
  18  1.32849e-06
  19  329.875
  20  0.112049
  21  51.1544
  22  157.563
  23  1.50803e-06
  24  0.000191483
  25  1.30188e-06
  26  6.35222
  27  1.15947e-05
  28  0.31166
  29  0.172392
Done.

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

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  7.776e-06  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.050e+00  1.724e-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:  7.635e-01  3.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 261.233 76.915
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677598/likelihoodResults_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.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) = 2900.53753455
delta logL = -0.000282624590909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2900.53725196
delta logL = -3.62542778021e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7137       1.0000          .0000       10.000    
     3 'Normalizat'    .76355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       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.

 FCN=   2900.537     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.385        .90712E-02** at limit **
   2  Index         2.7015        6.3433        .50000        .65755E-05
   3  Normalizat    .76349        .28789        .81521E-01    .15041E-04
   4  Prefactor     1.0499        .16669        .39918E-01    .21649E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.70148
  Normalizat = 0.763491
  Prefactor  = 1.04988
 **********
 **   18 **HESSE 
 **********

 FCN=   2900.537     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7015        6.3411        .50000       -.47766    
   3  Normalizat    .76349        .31543        .36096E-03   -1.0144    
   4  Prefactor     1.0499        .18312        .17928E-03   -.91085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38004e-11
Minuit parameter uncertainties:
  1  1.21692e-06
  2  4.4645
  3  0.31619
  4  0.183229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677598': 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) = 2900.5372519
delta logL = 2.40333974943e-08

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  1.217e-06  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.701e+00  4.465e+00  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.050e+00  1.832e-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:  7.635e-01  3.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 261.233 76.915

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/677598/cmap_HighResolution_550886401_551145601_4FGL_J1724.9+7654_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-17 09:17:27.365156', job_id='677598', GAL2='1.05', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631895447.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1202' AND source_name='4FGL J1724.9+7654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 09:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 677598: <4FGL_J1724.9+7654_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1724.9+7654_daily_bin1202> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 17 09:05:15 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 09:05:16 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:05:16 2021
Terminated at Fri Sep 17 09:17:28 2021
Results reported at Fri Sep 17 09:17:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.9+7654_daily_bin1202 261.233 76.9152 550886401 551145601 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 :                                   568.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

