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


Performing analysis on: 4FGL_J1704.1+7647_monthly_bin170
RA = 256.037, Dec = 76.7923
tmin = 677635201, tmax = 680227201
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='110325', job_status='RUN', time_executed='2022-07-23 02:16:21.611234', time_epoch_executed='1658567781.61' WHERE source_name='4FGL J1704.1+7647' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110325

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110325/ft1_4FGL_J1704.1+7647_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110325/ft1_4FGL_J1704.1+7647_monthly_bin170.fits outfile=/scratch/kocevski/110325/ft1_filteredMKT_4FGL_J1704.1+7647_monthly_bin170.fits ra=256.037 dec=76.7923 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.21
user 31.48
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.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/110325/ft1_filteredMKT_4FGL_J1704.1+7647_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.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.85
user 0.63
sys 0.20

Number of photons that the gtmktime cut: 10050

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/110325/ltcube_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.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/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits
.....................!
real 111.07
user 110.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/110325/ltcube_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.fits outfile=/scratch/kocevski/110325/expmap_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.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/110325/ltcube_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.fits
.....................!
real 192.16
user 186.02
sys 5.75

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits scfile=/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits outfile=/scratch/kocevski/110325/cmap_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.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=256.037 yref=76.7923 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.80
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits scfile=/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits outfile=/scratch/kocevski/110325/cmap_HighResolution_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.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=256.037 yref=76.7923 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.80
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/110325/Model_4FGL_J1704.1+7647_monthly_bin170.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/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits.....................!
real 1053.45
user 1050.35
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits', '/scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits', expMap='/scratch/kocevski/110325/expmap_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.fits', expCube='/scratch/kocevski/110325/ltcube_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110325/Model_4FGL_J1704.1+7647_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/110325/ft1_filtered_4FGL_J1704.1+7647_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/110325/ft2_4FGL_J1704.1+7647_monthly_bin170.fits
Exposure map: /scratch/kocevski/110325/expmap_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.fits
Exposure cube: /scratch/kocevski/110325/ltcube_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110325/Model_4FGL_J1704.1+7647_monthly_bin170.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) = 105590.496532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3048       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1746       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.797       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3871       1.0000         .10000E-03   10000.    
     8 'norm      '    8.6618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27475E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4142       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15945E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1631       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1484       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3097       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6322       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1230       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1087       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9369       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4671       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91906       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   105590.4     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3103 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4506       -.53994E-07** at limit **
   2  Prefactor     .10000E-03    1.1128        .27834E-07** at limit **
   3  Prefactor     2.3066        2.8744       -.24895E-06   -.27039E-03
   4  Prefactor     5.1725        8.0847       -.37903E-05   -.52528E-04
   5  Prefactor     22.796        7.2059       -.21829E-06   -.54312E-04
   6  Prefactor     .10000E-03    4.7445       -.51005E-07** at limit **
   7  Prefactor     3.3971        11.346        .15570E-04    .17089E-04
   8  norm          8.6619        4.2245       -.90252E-06   -.13412E-03
   9  Prefactor     .10000E-03    7.1819       -.16319E-06** at limit **
  10  Prefactor     .10451E-03    2.1466        .15593E-05** at limit **
  11  norm          .25774        .17919        .77442E-08   -.47481E-02
  12  Prefactor     1.4178        1.9251       -.10261E-06   -.12964E-02
  13  Prefactor     1.0471        .74500        .51790E-07   -.14272E-02
  14  Prefactor     .11199E-01    .88754       -.36762E-06    .11224E-02
  15  Prefactor     4.8496        6.0443       -.14881E-06   -.13814E-02
  16  Prefactor     3.1621        6.8714       -.17747E-06   -.37201E-04
  17  norm          3.1484        .68546        .10603E-07   -.80828E-04
  18  norm          3.3097        .25517        .10255E-07   -.54432E-03
  19  norm          3.0984        1.1234        .31928E-07   -.47137E-03
  20  Prefactor     .10000E-03    9.3024        .28597E-06** at limit **
  21  Prefactor     6.6316        1.4399       -.76705E-07   -.87325E-02
  22  Prefactor     .10000E-03    1.2441       -.49191E-07** at limit **
  23  Prefactor     3.1236        10.202        .15156E-05   -.13520E-04
  24  Prefactor     2.1088        1.4399       -.20563E-07   -.13445E-02
  25  norm          1.9370        .71251       -.10666E-07   -.63025E-03
  26  Prefactor     3.4676        2.1157        .34307E-06   -.44309E-02
  27  Normalizat    .91904        .48685E-01   -.21965E-06   -.74550E-03
  28  Prefactor     1.0378        .29706E-01   -.41765E-07   -.10462E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.30664
  Prefactor  = 5.17252
  Prefactor  = 22.7959
  Prefactor  = 0.0001
  Prefactor  = 3.39707
  norm       = 8.66192
  Prefactor  = 0.0001
  Prefactor  = 0.000104513
  norm       = 0.257737
  Prefactor  = 1.41777
  Prefactor  = 1.04708
  Prefactor  = 0.0111988
  Prefactor  = 4.84956
  Prefactor  = 3.16207
  norm       = 3.14836
  norm       = 3.30974
  norm       = 3.09837
  Prefactor  = 0.0001
  Prefactor  = 6.63163
  Prefactor  = 0.0001
  Prefactor  = 3.12364
  Prefactor  = 2.10882
  norm       = 1.93696
  Prefactor  = 3.46757
  Normalizat = 0.919043
  Prefactor  = 1.03777
 **********
 **   18 **HESSE 
 **********

 FCN=   105590.4     FROM HESSE     STATUS=OK           551 CALLS     3654 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.1434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3066        2.8729        .27029E-03   -1.5404    
   4  Prefactor     5.1725        8.0808        .17672E-03   -1.5253    
   5  Prefactor     22.796        7.2381        .83893E-04   -1.4753    
   6  Prefactor     .10000E-03    4.7982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3971        11.358        .21985E-03   -1.5339    
   8  norm          8.6619        4.2131        .13620E-03   -1.5119    
   9  Prefactor     .10000E-03    7.1870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10451E-03    2.1917        .13952       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25774        .15385        .94551E-03   -1.5606    
  12  Prefactor     1.4178        1.8883        .36411E-03   -1.5470    
  13  Prefactor     1.0471        .69966        .19637E-03   -1.5503    
  14  Prefactor     .11199E-01    .91540        .84346E-01   -1.5687    
  15  Prefactor     4.8496        6.1443        .91329E-03   -1.5267    
  16  Prefactor     3.1621        6.8648        .22789E-03   -1.5352    
  17  norm          3.1484        .68234        .11801E-03   -1.5353    
  18  norm          3.3097        .25496        .43031E-04   -1.5344    
  19  norm          3.0984        1.1197        .18941E-03   -1.5356    
  20  Prefactor     .10000E-03    9.3331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6316        1.7814        .77910E-03   -1.5193    
  22  Prefactor     .10000E-03    1.2533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1236        10.197        .22943E-03   -1.5354    
  24  Prefactor     2.1088        1.4500        .28412E-03   -1.5418    
  25  norm          1.9370        .70982        .15976E-03   -1.5430    
  26  Prefactor     3.4676        2.7528        .10859E-02   -1.5336    
  27  Normalizat    .91904        .55429E-01    .30720E-03   -.95794    
  28  Prefactor     1.0378        .34060E-01    .18497E-03   -.91481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16576e-07
Minuit parameter uncertainties:
  1  7.36908e-08
  2  1.29044e-06
  3  2.87311
  4  8.08253
  5  7.23841
  6  1.59832e-05
  7  11.3652
  8  4.21322
  9  1.0365e-06
  10  0.00629034
  11  0.153855
  12  1.88834
  13  0.699665
  14  0.201595
  15  6.14506
  16  6.86649
  17  0.682342
  18  0.254958
  19  1.1197
  20  3.26865e-06
  21  1.78138
  22  2.12521e-06
  23  10.2028
  24  1.44998
  25  0.709821
  26  2.7529
  27  0.0554328
  28  0.0340608
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.047e+00  6.997e-01  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.038e+00  3.406e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.190e-01  5.543e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.30e-08 +/- 8.68e-09
Energy Flux (Fixed Index): 3.59e-06 +/- 2.40e-06

TS (Fixed Index): 3.82
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 2.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110325/likelihoodResults_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.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) = 105590.348751
delta logL = 0.0750901710853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 105590.340282
delta logL = 0.0835596706602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1391       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3505       1.0000          .0000       10.000    
     3 'Normalizat'    .92191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   105590.3     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      272 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1390        .71751        .20963E-03    .10413E-03
   2  Index         2.3505        .47167        .82480E-02    .32595E-04
   3  Normalizat    .92192        .51968E-01    .30677E-03    .96412E-03
   4  Prefactor     1.0367        .32872E-01    .18505E-03    .80446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13899
  Index      = 2.35046
  Normalizat = 0.921915
  Prefactor  = 1.03671
 **********
 **   18 **HESSE 
 **********

 FCN=   105590.3     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1390        .71256        .83851E-05   -1.5495    
   2  Index         2.3505        .46827        .32992E-03   -.55849    
   3  Normalizat    .92192        .51993E-01    .12271E-04   -.95694    
   4  Prefactor     1.0367        .32888E-01    .37010E-04   -.91516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22288e-10
Minuit parameter uncertainties:
  1  0.712565
  2  0.469226
  3  0.0519961
  4  0.0328885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110325': 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) = 105590.340282
delta logL = 0.0835596830584

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.139e+00  7.126e-01  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.350e+00  4.692e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.037e+00  3.289e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.219e-01  5.200e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 256.037 76.792
Photon Index (Free Index): 2.35 +/- 0.47
Photon Flux (Free Index): 1.08e-08 +/- 8.92e-09
Energy Flux (Free Index): 3.78e-06 +/- 2.40e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/110325/cmap_HighResolution_677635201_680227201_4FGL_J1704.1+7647_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', comment='SUCCESS', photon_flux='1.30e-08', energy_flux2='3.78e-06', photon_flux_error='8.68e-09', dlogl='8.36e-02', energy_flux='3.59e-06', photon_flux2='1.08e-08', job_status='DONE', time_completed='2022-07-23 05:02:45.900376', photon_index_error2='0.47', photon_index2='2.35', ts='3.82', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.80e-08', energy_flux_error2='2.40e-06', EG='0.92', time_epoch_completed='1658577765.9', return_code='0', job_id='110325', GAL2='1.04', EG2='0.92', return_code2='0', energy_flux_error='2.40e-06', photon_flux_error2='8.92e-09', ts2='3.98', photon_index='2.55' WHERE bin_id='170' AND source_name='4FGL J1704.1+7647' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:02:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 110325: <4FGL_J1704.1+7647_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1704.1+7647_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:15:28 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:15:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:15:29 2022
Terminated at Sat Jul 23 05:02:47 2022
Results reported at Sat Jul 23 05:02:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.1+7647_monthly_bin170 256.037 76.7923 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1704.1+7647 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9964.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             464.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10037 sec.
    Turnaround time :                            10039 sec.

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

