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


Performing analysis on: 4FGL_J1704.1+7647_daily_bin749
RA = 256.037, Dec = 76.7923
tmin = 433468801, tmax = 433728001
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='350997', job_status='RUN', time_executed='2021-09-16 13:36:13.792300', time_epoch_executed='1631824573.79' WHERE source_name='4FGL J1704.1+7647' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350997/ft1_4FGL_J1704.1+7647_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350997/ft2_4FGL_J1704.1+7647_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350997/ft1_4FGL_J1704.1+7647_daily_bin749.fits outfile=/scratch/kocevski/350997/ft1_filteredMKT_4FGL_J1704.1+7647_daily_bin749.fits ra=256.037 dec=76.7923 rad=12.0 tmin=433468801.0 tmax=433728001.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 4.98
user 4.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350997/ft1_filtered_4FGL_J1704.1+7647_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/350997/ft2_4FGL_J1704.1+7647_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/350997/ltcube_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.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/350997/ft2_4FGL_J1704.1+7647_daily_bin749.fits
.....................!
real 10.91
user 10.58
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350997/ft1_filtered_4FGL_J1704.1+7647_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/350997/ft2_4FGL_J1704.1+7647_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/350997/ltcube_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.fits outfile=/scratch/kocevski/350997/expmap_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.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/350997/ltcube_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.fits
.....................!
real 156.31
user 151.38
sys 4.44

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/350997/ft1_filtered_4FGL_J1704.1+7647_daily_bin749.fits scfile=/scratch/kocevski/350997/ft2_4FGL_J1704.1+7647_daily_bin749.fits outfile=/scratch/kocevski/350997/cmap_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350997/ft1_filtered_4FGL_J1704.1+7647_daily_bin749.fits scfile=/scratch/kocevski/350997/ft2_4FGL_J1704.1+7647_daily_bin749.fits outfile=/scratch/kocevski/350997/cmap_HighResolution_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.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.53
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    94.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .83504       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4869       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6401       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.719       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.172       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3186       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3363       1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.845       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84208       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0252       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=   4612.138     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3479 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.47        .14585E-06** at limit **
   2  Prefactor     8.3833        13.468        .17822E-06   -.13190E-04
   3  Prefactor     7.6669        22.508        .27671E-05   -.11431E-03
   4  Prefactor     6.6086        191.44       -.34614E-05   -.19792E-04
   5  Prefactor     .10000E-03    72.468        .23792E-05** at limit **
   6  Prefactor     .10001E-03    50.768       -.47304E-05** at limit **
   7  Prefactor     .10001E-03    37.661        .38589E-05** at limit **
   8  norm          .10000E-03    12.221        .11897E-07** at limit **
   9  Prefactor     94.150        169.07       -.46160E-05   -.62070E-04
  10  Prefactor     .10000E-03    26.490       -.69162E-06** at limit **
  11  norm          .83515        .98642        .15427E-07    .19460E-03
  12  Prefactor     .10000E-03    6.4557       -.76823E-07** at limit **
  13  Prefactor     .35651        4.2737        .16649E-05   -.33893E-03
  14  Prefactor     .10000E-03    46.124       -.35270E-05** at limit **
  15  Prefactor     .10000E-03    17.568       -.21976E-06** at limit **
  16  Prefactor     .10000E-03    73.773        .26964E-05** at limit **
  17  norm          6.4868        3.8463        .37923E-08    .17449E-04
  18  norm          2.6401        1.1952       -.30291E-07   -.33638E-03
  19  norm          3.3618        4.4080        .57490E-07    .26445E-05
  20  Prefactor     90.767        238.04        .10805E-04    .61458E-04
  21  Prefactor     10.169        10.665       -.21241E-06   -.99060E-04
  22  Prefactor     .10000E-03    74.637        .31456E-05** at limit **
  23  Prefactor     .10001E-03    123.85       -.60416E-05** at limit **
  24  Prefactor     4.3187        5.3168        .21415E-05   -.87986E-03
  25  norm          2.3364        2.4470        .85688E-08    .23326E-04
  26  Prefactor     22.846        14.207       -.10469E-07   -.75540E-05
  27  Normalizat    .84220        .23115       -.73501E-06   -.65782E-04
  28  Prefactor     1.0251        .13655       -.37640E-06   -.77232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.38331
  Prefactor  = 7.66693
  Prefactor  = 6.60862
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 94.1495
  Prefactor  = 0.0001
  norm       = 0.835154
  Prefactor  = 0.0001
  Prefactor  = 0.356515
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.48684
  norm       = 2.64008
  norm       = 3.36179
  Prefactor  = 90.767
  Prefactor  = 10.1694
  Prefactor  = 0.000100004
  Prefactor  = 0.000100015
  Prefactor  = 4.31874
  norm       = 2.33636
  Prefactor  = 22.8459
  Normalizat = 0.842202
  Prefactor  = 1.02512
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.138     FROM HESSE     STATUS=OK           521 CALLS     4000 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.3833        13.467        .13845E-03   -1.5129    
   3  Prefactor     7.6669        22.814        .72379E-03   -1.5154    
   4  Prefactor     6.6086        192.46        .15603E-03   -1.5194    
   5  Prefactor     .10000E-03    73.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    52.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    38.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     94.150        170.68        .41415E-04   -1.3764    
  10  Prefactor     .10000E-03    26.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .83515        .95102        .70415E-03   -1.5525    
  12  Prefactor     .10000E-03    6.4872        .16848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35651        4.5477        .27067E-02   -1.5589    
  14  Prefactor     .10000E-03    47.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    74.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4868        3.8446        .98639E-04   -1.5199    
  18  norm          2.6401        1.1907        .47180E-04   -1.5383    
  19  norm          3.3618        4.3922        .15495E-03   -1.5341    
  20  Prefactor     90.767        242.88        .21094E-03   -1.3800    
  21  Prefactor     10.169        10.680        .12564E-03   -1.5070    
  22  Prefactor     .10000E-03    76.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    126.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3187        5.5738        .88054E-03   -1.5292    
  25  norm          2.3364        2.4508        .10568E-03   -1.5402    
  26  Prefactor     22.846        14.212        .83804E-04   -1.4752    
  27  Normalizat    .84220        .26126        .32195E-03   -.98522    
  28  Prefactor     1.0251        .15509        .18112E-03   -.91897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97873e-08
Minuit parameter uncertainties:
  1  6.34634e-05
  2  13.4718
  3  22.8395
  4  71.5813
  5  0.000802728
  6  0.00137315
  7  0.000976174
  8  5.70383e-06
  9  171.577
  10  0.000139965
  11  0.951036
  12  5.685e-06
  13  2.5465
  14  0.000876665
  15  2.62759e-05
  16  0.000938093
  17  3.84474
  18  1.1907
  19  4.39261
  20  245.613
  21  10.682
  22  0.00107331
  23  0.0027508
  24  5.57443
  25  2.45095
  26  14.2141
  27  0.261647
  28  0.155158
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  3.565e-01  2.546e+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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.025e+00  1.552e-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:  8.422e-01  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/350997/likelihoodResults_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.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) = 4612.13828387
delta logL = 3.81288009521e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4612.13828178
delta logL = 5.90103445575e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35652       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5430       1.0000          .0000       10.000    
     3 'Normalizat'    .84224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0251       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=   4612.138     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      263 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36052        7.6680        .27226E-02    .23991E-03
   2  Index         2.5358        3.0578        .12798E-01    .14542E-05
   3  Normalizat    .84224        .24627        .32195E-03   -.42375E-06
   4  Prefactor     1.0251        .15169        .18112E-03    .85365E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360516
  Index      = 2.53579
  Normalizat = 0.842236
  Prefactor  = 1.02511
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.138     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .68E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36052        5.1063        .10890E-03   -1.5588    
   2  Index         2.5358        2.5874        .51192E-03   -.51535    
   3  Normalizat    .84224        .24625        .12878E-04   -.98521    
   4  Prefactor     1.0251        .15177        .36224E-04   -.91897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78575e-14
Minuit parameter uncertainties:
  1  2.7135
  2  2.77097
  3  0.246574
  4  0.151838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350997': 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) = 4612.13827812
delta logL = 9.55438554229e-06

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  3.605e-01  2.714e+00  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.536e+00  2.771e+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.025e+00  1.518e-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:  8.422e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 256.037 76.792

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/350997/cmap_HighResolution_433468801_433728001_4FGL_J1704.1+7647_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-16 13:47:15.857188', job_id='350997', GAL2='1.03', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631825235.86', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.55e-06', ts2='0.02', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='749' AND source_name='4FGL J1704.1+7647' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 13:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 350997: <4FGL_J1704.1+7647_daily_bin749> in cluster <slac> Done

Job <4FGL_J1704.1+7647_daily_bin749> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 13:35:26 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 13:35:59 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:35:59 2021
Terminated at Thu Sep 16 13:47:16 2021
Results reported at Thu Sep 16 13:47:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.1+7647_daily_bin749 256.037 76.7923 433468801 433728001 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 :                                   619.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            710 sec.

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

