/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 5 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1704.1+7647_daily_bin52
RA = 256.037, Dec = 76.7923
tmin = 252806401, tmax = 253065601
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='344415', job_status='RUN', time_executed='2021-09-16 13:10:54.068442', time_epoch_executed='1631823054.07' WHERE source_name='4FGL J1704.1+7647' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344415

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344415/ft1_4FGL_J1704.1+7647_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344415/ft1_4FGL_J1704.1+7647_daily_bin52.fits outfile=/scratch/kocevski/344415/ft1_filteredMKT_4FGL_J1704.1+7647_daily_bin52.fits ra=256.037 dec=76.7923 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.18
user 1.02
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.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/344415/ft1_filteredMKT_4FGL_J1704.1+7647_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.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.43
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/344415/ltcube_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.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/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits
.....................!
real 11.18
user 10.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/344415/ltcube_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.fits outfile=/scratch/kocevski/344415/expmap_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.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/344415/ltcube_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.fits
.....................!
real 156.00
user 151.35
sys 4.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 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/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.fits scfile=/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits outfile=/scratch/kocevski/344415/cmap_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.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.47
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.fits scfile=/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits outfile=/scratch/kocevski/344415/cmap_HighResolution_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.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.47
user 0.31
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.fits', '/scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits', expMap='/scratch/kocevski/344415/expmap_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.fits', expCube='/scratch/kocevski/344415/ltcube_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/344415/Model_4FGL_J1704.1+7647_daily_bin52.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/344415/ft1_filtered_4FGL_J1704.1+7647_daily_bin52.fits
Spacecraft file(s): /scratch/kocevski/344415/ft2_4FGL_J1704.1+7647_daily_bin52.fits
Exposure map: /scratch/kocevski/344415/expmap_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.fits
Exposure cube: /scratch/kocevski/344415/ltcube_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/344415/Model_4FGL_J1704.1+7647_daily_bin52.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) = 8161.13204123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    1.6604       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5797       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.892       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    103.59       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4838       1.0000         .10000E-03   10000.    
    18 'norm      '    .36140       1.0000         .10000E-03   10000.    
    19 'norm      '    11.784       1.0000         .10000E-03   10000.    
    20 'Prefactor '    226.56       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    110.17       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.177       1.0000         .10000E-03   10000.    
    25 'norm      '    .64723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62760       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2790       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=   8161.132     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     4275 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.815        .30443E-06** at limit **
   2  Prefactor     1.6573        45.891        .58822E-05    .44057E-04
   3  Prefactor     .10000E-03    17.885        .14421E-05** at limit **
   4  Prefactor     6.3118        44.633       -.13762E-06   -.36013E-05
   5  Prefactor     .10000E-03    25.394       -.64935E-06** at limit **
   6  Prefactor     .10000E-03    10.964        .19904E-06** at limit **
   7  Prefactor     .10000E-03    38.390        .18145E-05** at limit **
   8  norm          .10000E-03    8.0454        .12099E-06** at limit **
   9  Prefactor     .10000E-03    57.991       -.15481E-05** at limit **
  10  Prefactor     .10000E-03    15.828       -.10562E-05** at limit **
  11  norm          1.5797        1.1816        .38888E-07    .10110E-03
  12  Prefactor     35.701        18.111       -.73736E-07    .61324E-05
  13  Prefactor     .10000E-03    2.2247       -.81639E-07** at limit **
  14  Prefactor     19.892        18.711       -.67596E-08    .32588E-05
  15  Prefactor     45.442        36.743        .19679E-05   -.91131E-04
  16  Prefactor     103.59        65.209       -.28512E-06   -.79111E-05
  17  norm          4.4839        3.5506        .15894E-07    .31223E-05
  18  norm          .36136        .34242       -.96069E-08   -.25012E-03
  19  norm          11.784        6.6811        .16970E-07    .16428E-04
  20  Prefactor     226.57        217.59       -.26244E-06    .17246E-06
  21  Prefactor     .10000E-03    9.3649       -.16967E-06** at limit **
  22  Prefactor     110.17        40.627       -.83711E-07    .60932E-05
  23  Prefactor     .10000E-03    27.616       -.10125E-05** at limit **
  24  Prefactor     16.177        7.8253        .10937E-07   -.30119E-05
  25  norm          .65258        3.0301        .22234E-06   -.87741E-04
  26  Prefactor     .10000E-03    7.7932       -.95461E-07** at limit **
  27  Normalizat    .62765        .20339        .49319E-06   -.41758E-04
  28  Prefactor     1.2789        .12655       -.19986E-06    .70980E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.65726
  Prefactor  = 0.0001
  Prefactor  = 6.31178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57967
  Prefactor  = 35.7011
  Prefactor  = 0.000100003
  Prefactor  = 19.8919
  Prefactor  = 45.4415
  Prefactor  = 103.592
  norm       = 4.48393
  norm       = 0.361357
  norm       = 11.784
  Prefactor  = 226.567
  Prefactor  = 0.0001
  Prefactor  = 110.174
  Prefactor  = 0.0001
  Prefactor  = 16.1773
  norm       = 0.652583
  Prefactor  = 0.0001
  Normalizat = 0.627647
  Prefactor  = 1.27894
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.132     FROM HESSE     STATUS=OK           521 CALLS     4796 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6573        47.770        .16370E-02   -1.5450    
   3  Prefactor     .10000E-03    17.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3118        44.621        .15975E-03   -1.5205    
   5  Prefactor     .10000E-03    25.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5797        1.1806        .16897E-03   -1.5457    
  12  Prefactor     35.701        18.091        .67071E-04   -1.4512    
  13  Prefactor     .10000E-03    6.5584        .22324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.892        18.692        .89803E-04   -1.4816    
  15  Prefactor     45.442        37.811        .59533E-04   -1.4359    
  16  Prefactor     103.59        65.311        .39507E-04   -1.3669    
  17  norm          4.4839        3.5410        .14285E-03   -1.5284    
  18  norm          .36136        .36566        .49768E-03   -1.5588    
  19  norm          11.784        6.6668        .11670E-03   -1.5021    
  20  Prefactor     226.57        217.53        .13441E-03   -1.2686    
  21  Prefactor     .10000E-03    9.4176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     110.17        40.526        .38321E-04   -1.3605    
  23  Prefactor     .10000E-03    27.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.177        7.8400        .99580E-04   -1.4903    
  25  norm          .65258        5.7780        .28990E-02   -1.5546    
  26  Prefactor     .10000E-03    7.8083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .62765        .21662        .40746E-03   -1.0682    
  28  Prefactor     1.2789        .13654        .18688E-03   -.83935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20798e-08
Minuit parameter uncertainties:
  1  8.14887e-06
  2  17.8103
  3  4.75961e-06
  4  33.5995
  5  7.0463e-05
  6  1.9215e-06
  7  8.16536e-05
  8  1.92423e-06
  9  0.000140173
  10  5.00038e-05
  11  1.18058
  12  18.0941
  13  0.00025631
  14  18.6978
  15  37.831
  16  65.3565
  17  3.54112
  18  0.36566
  19  6.66723
  20  218.314
  21  1.38601e-06
  22  40.5359
  23  5.99956e-05
  24  7.84053
  25  3.88382
  26  8.2686e-06
  27  0.216911
  28  0.136577
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  2.563e-04  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.279e+00  1.366e-01  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:  6.276e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344415/likelihoodResults_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.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): 102
logL (Free Index) = 8161.1326086
delta logL = -0.000728208057808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8161.1318773
delta logL = 3.08701783069e-06

Fit tolerance = 1e-08

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

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

 FCN=   8160.670     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      287 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44891E-01    .79630        .47473E-02    .66493E-02
   2  Index         5.2017        3.0682        .14051        .18600E-03
   3  Normalizat    .57073        .37416E-01    .96065E-01   -.63181E-04
   4  Prefactor     1.2993        .23821E-01    .32986E-01   -.21197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.044891
  Index      = 5.20173
  Normalizat = 0.570726
  Prefactor  = 1.29929
 **********
 **   18 **HESSE 
 **********

 FCN=   8160.670     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      320 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44891E-01    2.8792        .22182E-03   -1.5666    
   2  Index         5.2017        7.5948        .82203E-02    .40357E-01
   3  Normalizat    .57073        .14749        .42575E-03   -1.0924    
   4  Prefactor     1.2993        .92110E-01    .18555E-03   -.83328    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19758e-10
Minuit parameter uncertainties:
  1  0.718259
  2  8.39704
  3  0.147589
  4  0.0921215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344415': 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): 102
logL (Free Index) = 8160.66967151
delta logL = 0.462208880022

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  4.489e-02  7.183e-01  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  5.202e+00  8.397e+00  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.299e+00  9.212e-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:  5.707e-01  1.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.037 76.792

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/344415/cmap_HighResolution_252806401_253065601_4FGL_J1704.1+7647_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-16 13:26:46.492555', job_id='344415', GAL2='1.30', fit_tolerance='1e-08', EG2='0.57', EG='0.63', time_epoch_completed='1631824006.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='4.62e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='52' AND source_name='4FGL J1704.1+7647' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 13:26:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 344415: <4FGL_J1704.1+7647_daily_bin52> in cluster <slac> Done

Job <4FGL_J1704.1+7647_daily_bin52> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 13:10:17 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 13:10:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 13:10:41 2021
Terminated at Thu Sep 16 13:26:47 2021
Results reported at Thu Sep 16 13:26:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.1+7647_daily_bin52 256.037 76.7923 252806401 253065601 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 :                                   950.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            990 sec.

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

