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


Performing analysis on: 4FGL_J1704.2+1234_daily_bin904
RA = 256.06, Dec = 12.5752
tmin = 473644801, tmax = 473904001
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='369771', job_status='RUN', time_executed='2021-09-16 14:32:46.522154', time_epoch_executed='1631827966.52' WHERE source_name='4FGL J1704.2+1234' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369771/ft1_4FGL_J1704.2+1234_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369771/ft1_4FGL_J1704.2+1234_daily_bin904.fits outfile=/scratch/kocevski/369771/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin904.fits ra=256.06 dec=12.5752 rad=12.0 tmin=473644801.0 tmax=473904001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.80
user 3.58
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.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/369771/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin904.fits evtable="EVENTS" outfile="/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/369771/ltcube_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.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/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits
.....................!
real 13.84
user 13.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/369771/ltcube_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.fits outfile=/scratch/kocevski/369771/expmap_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.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/369771/ltcube_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.fits
.....................!
real 191.23
user 186.58
sys 4.25

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 179 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1704.2+1234 @ 256.06 12.5752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits scfile=/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits outfile=/scratch/kocevski/369771/cmap_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.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.06 yref=12.5752 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits scfile=/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits outfile=/scratch/kocevski/369771/cmap_HighResolution_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.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.06 yref=12.5752 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369771/Model_4FGL_J1704.2+1234_daily_bin904.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits.....................!
real 80.20
user 78.79
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits', '/scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits', expMap='/scratch/kocevski/369771/expmap_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.fits', expCube='/scratch/kocevski/369771/ltcube_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369771/Model_4FGL_J1704.2+1234_daily_bin904.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.2+1234'

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  7.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/369771/ft1_filtered_4FGL_J1704.2+1234_daily_bin904.fits
Spacecraft file(s): /scratch/kocevski/369771/ft2_4FGL_J1704.2+1234_daily_bin904.fits
Exposure map: /scratch/kocevski/369771/expmap_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.fits
Exposure cube: /scratch/kocevski/369771/ltcube_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369771/Model_4FGL_J1704.2+1234_daily_bin904.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) = 10008.9226748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31384E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6976       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.135       1.0000         .10000E-03   10000.    
    11 'norm      '    21.105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.036       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2328       1.0000         .10000E-03   10000.    
    17 'norm      '    .20360E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .59042       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10008.91     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2271 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.032        38.887        .69993E-06    .93099E-04
   2  Prefactor     .10004E-03    5.9762       -.62339E-06** at limit **
   3  Prefactor     .10000E-03    3.2606        .44133E-07** at limit **
   4  Prefactor     .10001E-03    4.3534        .19800E-05** at limit **
   5  Prefactor     .10000E-03    2.7611        .78770E-07** at limit **
   6  Prefactor     4.4814        4.3913        .94337E-07    .92697E-04
   7  Prefactor     3.6856        45.485       -.27899E-05   -.10008E-03
   8  Prefactor     16.717        57.890       -.20870E-06    .10258E-04
   9  Prefactor     2.9484        6.7643        .83025E-06    .59364E-04
  10  Prefactor     21.138        13.716        .17266E-06   -.19594E-04
  11  norm          21.106        4.9166        .36914E-07   -.66522E-04
  12  Prefactor     .10000E-03    3.9708       -.20949E-06** at limit **
  13  norm          23.283        11.474        .48667E-08    .48901E-04
  14  Prefactor     52.951        67.334        .83569E-07   -.24283E-04
  15  Prefactor     .10000E-03    1.5207       -.11031E-06** at limit **
  16  norm          4.2296        8.2991       -.63099E-07    .37998E-04
  17  norm          .10000E-03    15.656       -.33334E-05** at limit **
  18  norm          .10000E-03    40.353        .35036E-07** at limit **
  19  norm          .10000E-03    .61088       -.34161E-07** at limit **
  20  Normalizat    .58960        .28423       -.65775E-05   -.17114E-03
  21  Prefactor     1.1536        .96990E-01    .12973E-05   -.34102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0322
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 4.48136
  Prefactor  = 3.68559
  Prefactor  = 16.7174
  Prefactor  = 2.94842
  Prefactor  = 21.1385
  norm       = 21.1063
  Prefactor  = 0.0001
  norm       = 23.2831
  Prefactor  = 52.9514
  Prefactor  = 0.0001
  norm       = 4.22956
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.589595
  Prefactor  = 1.15356
 **********
 **   18 **HESSE 
 **********

 FCN=   10008.91     FROM HESSE     STATUS=OK           317 CALLS     2588 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.032        36.676        .61183E-04   -1.4395    
   2  Prefactor     .10004E-03    28.617        .42744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2758        .17637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    10.393        .34430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7938        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4814        4.3853        .19023E-03   -1.5285    
   7  Prefactor     3.6856        44.254        .21002E-03   -1.5324    
   8  Prefactor     16.717        57.680        .97985E-04   -1.4890    
   9  Prefactor     2.9484        6.7812        .23660E-03   -1.5365    
  10  Prefactor     21.138        13.704        .87124E-04   -1.4788    
  11  norm          21.106        4.9109        .87186E-04   -1.4789    
  12  Prefactor     .10000E-03    3.9840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.283        11.453        .83013E-04   -1.4743    
  14  Prefactor     52.951        66.824        .55074E-04   -1.4251    
  15  Prefactor     .10000E-03    1.5708        .23990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2296        8.2794        .19586E-03   -1.5297    
  17  norm          .10000E-03    15.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    40.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1425        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .58960        .29355        .56880E-03   -1.0843    
  21  Prefactor     1.1536        .10110        .14804E-03   -.87773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59631e-09
Minuit parameter uncertainties:
  1  36.695
  2  0.00206507
  3  5.78462e-06
  4  0.000666607
  5  6.05011e-06
  6  4.38565
  7  25.5654
  8  57.8732
  9  6.78299
  10  13.7055
  11  4.91097
  12  2.41188e-06
  13  11.4538
  14  66.9189
  15  3.09529e-06
  16  8.28167
  17  8.61029e-05
  18  2.82692e-07
  19  2.67373e-06
  20  0.294328
  21  0.101119
Done.

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

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  1.672e+01  5.787e+01  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.154e+00  1.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  5.896e-01  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 256.060 12.575
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369771/likelihoodResults_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.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) = 10008.8877674
delta logL = 0.022971878574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10008.8853055
delta logL = 0.0254337776769

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10008.89     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      253 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.393        1036.9        .27220E-02    .86789E-05
   2  Index         2.4678        2.4761        .23691        .74106E-04
   3  Normalizat    .58625        .42668E-01    .12857        .69156E-04
   4  Prefactor     1.1538        .15047E-01    .35826E-01   -.24098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3928
  Index      = 2.46781
  Normalizat = 0.586253
  Prefactor  = 1.15378
 **********
 **   18 **HESSE 
 **********

 FCN=   10008.89     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.393        53.298        .10888E-03   -1.4976    
   2  Index         2.4678        1.2662        .90353E-02   -.53105    
   3  Normalizat    .58625        .27474        .57030E-03   -1.0857    
   4  Prefactor     1.1538        .98226E-01    .14802E-03   -.87766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26644e-11
Minuit parameter uncertainties:
  1  53.4883
  2  1.28517
  3  0.275385
  4  0.0982417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369771': 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) = 10008.8852472
delta logL = 0.0254921271971

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  1.339e+01  5.349e+01  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  2.468e+00  1.285e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.154e+00  9.824e-02  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  5.863e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 256.060 12.575

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/369771/cmap_HighResolution_473644801_473904001_4FGL_J1704.2+1234_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-16 14:47:01.228165', job_id='369771', GAL2='1.15', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631828821.23', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.55e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='904' AND source_name='4FGL J1704.2+1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 14:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 369771: <4FGL_J1704.2+1234_daily_bin904> in cluster <slac> Done

Job <4FGL_J1704.2+1234_daily_bin904> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 14:30:38 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 14:32: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 14:32:32 2021
Terminated at Thu Sep 16 14:47:02 2021
Results reported at Thu Sep 16 14:47:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.2+1234_daily_bin904 256.06 12.5752 473644801 473904001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1704.2+1234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            984 sec.

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

