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


Performing analysis on: 4FGL_J1704.1+7647_daily_bin811
RA = 256.037, Dec = 76.7923
tmin = 449539201, tmax = 449798401
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='351095', job_status='RUN', time_executed='2021-09-16 13:36:47.950983', time_epoch_executed='1631824607.95' WHERE source_name='4FGL J1704.1+7647' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351095/ft1_4FGL_J1704.1+7647_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351095/ft2_4FGL_J1704.1+7647_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351095/ft1_4FGL_J1704.1+7647_daily_bin811.fits outfile=/scratch/kocevski/351095/ft1_filteredMKT_4FGL_J1704.1+7647_daily_bin811.fits ra=256.037 dec=76.7923 rad=12.0 tmin=449539201.0 tmax=449798401.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 5.68
user 5.40
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351095/ft2_4FGL_J1704.1+7647_daily_bin811.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/351095/ft1_filteredMKT_4FGL_J1704.1+7647_daily_bin811.fits evtable="EVENTS" outfile="/scratch/kocevski/351095/ft1_filtered_4FGL_J1704.1+7647_daily_bin811.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351095/ft1_filtered_4FGL_J1704.1+7647_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/351095/ft2_4FGL_J1704.1+7647_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/351095/ltcube_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.fits outfile=/scratch/kocevski/351095/expmap_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.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/351095/ltcube_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.fits
.....................!
real 192.47
user 186.30
sys 5.18

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/351095/ft1_filtered_4FGL_J1704.1+7647_daily_bin811.fits scfile=/scratch/kocevski/351095/ft2_4FGL_J1704.1+7647_daily_bin811.fits outfile=/scratch/kocevski/351095/cmap_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351095/ft1_filtered_4FGL_J1704.1+7647_daily_bin811.fits scfile=/scratch/kocevski/351095/ft2_4FGL_J1704.1+7647_daily_bin811.fits outfile=/scratch/kocevski/351095/cmap_HighResolution_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.724       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.883       1.0000         .10000E-03   10000.    
     8 'norm      '    .15076E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .32856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.900       1.0000         .10000E-03   10000.    
    17 'norm      '    7.6202       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4301       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1582       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4415       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.907       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2544       1.0000         .10000E-03   10000.    
    26 'Prefactor '    44.833       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85566       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95582       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=   5546.845     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3518 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.598        .61597E-07** at limit **
   2  Prefactor     12.140        15.534       -.43085E-08   -.15686E-05
   3  Prefactor     10.038        17.883        .14715E-06   -.79420E-05
   4  Prefactor     .10000E-03    50.901        .19219E-06** at limit **
   5  Prefactor     50.709        36.794        .15248E-06   -.22676E-04
   6  Prefactor     13.756        30.569        .47770E-09   -.10303E-04
   7  Prefactor     20.854        42.112       -.95966E-07   -.13087E-04
   8  norm          .10010E-03    16.262        .20215E-05** at limit **
   9  Prefactor     .10000E-03    51.775        .11898E-06** at limit **
  10  Prefactor     .10000E-03    20.165        .53151E-07** at limit **
  11  norm          .32882        .87713        .82941E-06    .30579E-03
  12  Prefactor     28.093        14.629       -.69793E-06   -.19391E-03
  13  Prefactor     .10000E-03    2.4531        .42042E-06** at limit **
  14  Prefactor     .10000E-03    10.976       -.18091E-07** at limit **
  15  Prefactor     .10000E-03    13.068        .20573E-06** at limit **
  16  Prefactor     14.785        56.463       -.14520E-05   -.15894E-04
  17  norm          7.6202        3.7877       -.39481E-07   -.76823E-04
  18  norm          3.4300        1.0987       -.14525E-07   -.20608E-03
  19  norm          .10000E-03    3.3165        .18366E-06** at limit **
  20  Prefactor     5.1280        7377.8        .18134E-05   -.16071E-06
  21  Prefactor     8.4420        10.239       -.72913E-08   -.24440E-04
  22  Prefactor     20.903        35.193       -.13864E-07   -.79979E-05
  23  Prefactor     .10000E-03    61.335        .20906E-06** at limit **
  24  Prefactor     .10000E-03    6.7260        .59847E-06** at limit **
  25  norm          1.2608        2.6677        .37373E-06    .43743E-04
  26  Prefactor     44.827        22.307       -.18520E-06   -.87865E-05
  27  Normalizat    .85611        .21293       -.22440E-05   -.97567E-04
  28  Prefactor     .95554        .12973        .91328E-06   -.28771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.14
  Prefactor  = 10.0379
  Prefactor  = 0.0001
  Prefactor  = 50.7093
  Prefactor  = 13.7556
  Prefactor  = 20.8538
  norm       = 0.000100098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.32882
  Prefactor  = 28.0935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7854
  norm       = 7.62016
  norm       = 3.43005
  norm       = 0.0001
  Prefactor  = 5.12802
  Prefactor  = 8.44195
  Prefactor  = 20.9028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26084
  Prefactor  = 44.8274
  Normalizat = 0.856109
  Prefactor  = 0.955536
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.845     FROM HESSE     STATUS=OK           519 CALLS     4037 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.140        15.535        .11498E-03   -1.5011    
   3  Prefactor     10.038        17.929        .12644E-03   -1.5074    
   4  Prefactor     .10000E-03    50.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.709        37.059        .56309E-04   -1.4283    
   6  Prefactor     13.756        30.581        .10796E-03   -1.4966    
   7  Prefactor     20.854        42.143        .87648E-04   -1.4794    
   8  norm          .10010E-03    59.927        .54558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .32882        .89008        .10577E-03   -1.5593    
  12  Prefactor     28.093        14.746        .75575E-04   -1.4647    
  13  Prefactor     .10000E-03    2.5618        .22736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.785        56.667        .10376E-03   -1.4939    
  17  norm          7.6202        3.7862        .98739E-04   -1.5156    
  18  norm          3.4300        1.0995        .42209E-04   -1.5338    
  19  norm          .10000E-03    3.3419        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1280        7345.6        .17701E-03   -1.5255    
  21  Prefactor     8.4420        10.105        .13798E-03   -1.5127    
  22  Prefactor     20.903        35.094        .87598E-04   -1.4793    
  23  Prefactor     .10000E-03    61.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.8331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2608        2.6239        .17078E-03   -1.5483    
  26  Prefactor     44.827        22.289        .59878E-04   -1.4368    
  27  Normalizat    .85611        .23613        .31046E-03   -.98020    
  28  Prefactor     .95554        .14456        .18722E-03   -.94227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73245e-09
Minuit parameter uncertainties:
  1  1.46377e-05
  2  15.5397
  3  17.9386
  4  3.36721e-05
  5  37.0754
  6  30.6162
  7  42.2029
  8  0.00485363
  9  2.21684e-05
  10  7.20253e-06
  11  0.890112
  12  14.7475
  13  1.52594e-06
  14  2.2056e-05
  15  1.10552e-06
  16  56.8748
  17  3.78629
  18  1.0995
  19  2.3078e-06
  20  352.112
  21  10.1074
  22  35.1291
  23  8.54166e-06
  24  1.93272e-06
  25  2.62409
  26  22.2933
  27  0.236412
  28  0.144622
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  1.526e-06  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:  9.555e-01  1.446e-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.561e-01  2.364e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351095/likelihoodResults_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.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) = 5546.84690075
delta logL = -0.00185802812211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5546.84504186
delta logL = 8.62746674102e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5546.845     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      267 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.969        .24000E-02** at limit **
   2  Index         2.0614        6.0003        .50000        .96993E-06
   3  Normalizat    .85610        .18469E-01    .31046E-03   -.39208E-02
   4  Prefactor     .95553        .11788E-01    .18722E-03   -.64724E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06137
  Normalizat = 0.856098
  Prefactor  = 0.95553
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.845     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    215.60        .48000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0614        8.9044        .50000       -.62824    
   3  Normalizat    .85610        .41695E-01    .62092E-04   -.98020    
   4  Prefactor     .95553        .26612E-01    .37443E-04   -.94227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.453e-08
Minuit parameter uncertainties:
  1  0.000229882
  2  500.376
  3  0.0416968
  4  0.0266126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351095': 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) = 5546.84503587
delta logL = 6.85442410031e-06

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  2.299e-04  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.061e+00  5.004e+02  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:  9.555e-01  2.661e-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:  8.561e-01  4.170e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/351095/cmap_HighResolution_449539201_449798401_4FGL_J1704.1+7647_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-16 13:51:03.727548', job_id='351095', GAL2='0.96', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631825463.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='811' AND source_name='4FGL J1704.1+7647' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 13:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 351095: <4FGL_J1704.1+7647_daily_bin811> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.1+7647_daily_bin811 256.037 76.7923 449539201 449798401 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 :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            929 sec.

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

