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


Performing analysis on: 4FGL_J1657.7+4808_daily_bin747
RA = 254.438, Dec = 48.1368
tmin = 432950401, tmax = 433209601
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='225678', job_status='RUN', time_executed='2021-09-16 05:53:27.070741', time_epoch_executed='1631796807.07' WHERE source_name='4FGL J1657.7+4808' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225678/ft1_4FGL_J1657.7+4808_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225678/ft1_4FGL_J1657.7+4808_daily_bin747.fits outfile=/scratch/kocevski/225678/ft1_filteredMKT_4FGL_J1657.7+4808_daily_bin747.fits ra=254.438 dec=48.1368 rad=12.0 tmin=432950401.0 tmax=433209601.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.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.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/225678/ft1_filteredMKT_4FGL_J1657.7+4808_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.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.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/225678/ltcube_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.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/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits
.....................!
real 13.00
user 12.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/225678/ltcube_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.fits outfile=/scratch/kocevski/225678/expmap_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.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/225678/ltcube_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.fits
.....................!
real 191.35
user 186.31
sys 4.59

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

Setting source of interest to:
4FGL J1657.7+4808 @ 254.438 48.1368

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits scfile=/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits outfile=/scratch/kocevski/225678/cmap_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.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=254.438 yref=48.1368 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits scfile=/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits outfile=/scratch/kocevski/225678/cmap_HighResolution_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.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=254.438 yref=48.1368 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/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225678/Model_4FGL_J1657.7+4808_daily_bin747.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/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits.....................!
real 41.39
user 40.10
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits', '/scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits', expMap='/scratch/kocevski/225678/expmap_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.fits', expCube='/scratch/kocevski/225678/ltcube_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225678/Model_4FGL_J1657.7+4808_daily_bin747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.7+4808'

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  1.071e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  1.099e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  5.763e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/225678/ft1_filtered_4FGL_J1657.7+4808_daily_bin747.fits
Spacecraft file(s): /scratch/kocevski/225678/ft2_4FGL_J1657.7+4808_daily_bin747.fits
Exposure map: /scratch/kocevski/225678/expmap_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.fits
Exposure cube: /scratch/kocevski/225678/ltcube_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225678/Model_4FGL_J1657.7+4808_daily_bin747.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) = 4188.47525885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.71       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.279       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5983       1.0000         .10000E-03   10000.    
     7 'norm      '    .50255       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.312       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56442E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7085       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9194       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4885       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .48577       1.0000         .10000E-03   10000.    
    21 'norm      '    40.666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9001       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.507       1.0000         .10000E-03   10000.    
    25 'norm      '    6.6834       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    83.474       1.0000         .10000E-03   10000.    
    32 'Prefactor '    45.953       1.0000         .10000E-03   10000.    
    33 'Prefactor '    32.229       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .29043E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .81926       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .67789       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4188.465     FROM MIGRAD    STATUS=CONVERGED   1073 CALLS     5629 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.70        145.25        .33444E-06   -.15625E-04
   2  Prefactor     .10000E-03    8.8048       -.18568E-06** at limit **
   3  Prefactor     .10000E-03    35.249        .11925E-05** at limit **
   4  Prefactor     .10000E-03    16.646        .43764E-05** at limit **
   5  Prefactor     10.279        5.8008        .17610E-06    .14941E-03
   6  norm          8.5671        79.837       -.23024E-05    .25096E-04
   7  norm          .50256        .18936        .29131E-07    .14275E-02
   8  norm          .10000E-03    6.1698        .48944E-07** at limit **
   9  Prefactor     10.141        7.7417        .95264E-07    .38889E-04
  10  Prefactor     19.311        16.642       -.15991E-06   -.40969E-04
  11  norm          .10000E-03    39.595        .12049E-05** at limit **
  12  Prefactor     .57705        1.2676        .62627E-06    .23594E-03
  13  Prefactor     .10000E-03    .85725       -.43432E-06** at limit **
  14  Prefactor     .10000E-03    2.0685       -.18496E-06** at limit **
  15  Prefactor     1.7094        4.6961       -.39641E-06    .17291E-03
  16  Prefactor     1.9380        88.719        .31938E-05   -.17897E-04
  17  norm          7.4886        2.4866        .15636E-06    .39830E-03
  18  norm          4.2313        1.9599        .25662E-07    .23487E-03
  19  Prefactor     .10000E-03    6.5904       -.79704E-08** at limit **
  20  norm          .48587        1.0836       -.43909E-06   -.22713E-04
  21  norm          40.668        16.933        .84118E-06    .18727E-03
  22  Prefactor     .10000E-03    7.1642        .32953E-06** at limit **
  23  norm          2.9003        2.9475        .43373E-07    .37564E-03
  24  Prefactor     19.507        8.1180       -.41754E-07    .23479E-04
  25  norm          6.6839        6.0625       -.16830E-05    .25958E-03
  26  Prefactor     .10001E-03    95.449        .20214E-05** at limit **
  27  norm          .10000E-03    2.8155       -.52303E-07** at limit **
  28  Prefactor     .10000E-03    53.008       -.11173E-05** at limit **
  29  Prefactor     .10000E-03    2.3128       -.94173E-07** at limit **
  30  Prefactor     .10000E-03    54.802       -.19006E-05** at limit **
  31  Prefactor     83.436        158.64        .21230E-05    .69043E-04
  32  Prefactor     45.945        58.164        .11542E-06    .82959E-04
  33  Prefactor     32.230        18.112       -.98899E-07    .12647E-03
  34  Prefactor     .10001E-03    525.07       -.63327E-04** at limit **
  35  norm          .10000E-03    26.465       -.20000E-05** at limit **
  36  Normalizat    .81933        .29513        .59894E-06    .14738E-03
  37  Prefactor     .67780        .20556       -.21467E-06    .10901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.702
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 10.2791
  norm       = 8.5671
  norm       = 0.502558
  norm       = 0.0001
  Prefactor  = 10.1412
  Prefactor  = 19.3108
  norm       = 0.000100003
  Prefactor  = 0.577052
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.70941
  Prefactor  = 1.93801
  norm       = 7.48861
  norm       = 4.23133
  Prefactor  = 0.0001
  norm       = 0.485869
  norm       = 40.6678
  Prefactor  = 0.0001
  norm       = 2.90034
  Prefactor  = 19.5072
  norm       = 6.68386
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 83.4357
  Prefactor  = 45.9446
  Prefactor  = 32.2302
  Prefactor  = 0.000100012
  norm       = 0.000100001
  Normalizat = 0.819333
  Prefactor  = 0.677796
 **********
 **   18 **HESSE 
 **********

 FCN=   4188.465     FROM HESSE     STATUS=OK           861 CALLS     6490 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.70        145.30        .33725E-04   -1.3313    
   2  Prefactor     .10000E-03    8.8668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.279        5.8006        .10674E-03   -1.5067    
   6  norm          8.5671        78.201        .13670E-03   -1.5122    
   7  norm          .50256        .18716        .15386E-04   -1.5566    
   8  norm          .10000E-03    6.1709        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.141        7.7493        .12581E-03   -1.5071    
  10  Prefactor     19.311        16.672        .91142E-04   -1.4829    
  11  norm          .10000E-03    39.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .57705        2.0592        .94948E-04   -1.5556    
  13  Prefactor     .10000E-03    8.3260        .16566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0745        .90855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7094        4.5667        .20225E-03   -1.5446    
  16  Prefactor     1.9380        84.928        .29995E-03   -1.5430    
  17  norm          7.4886        2.4939        .55448E-04   -1.5161    
  18  norm          4.2313        1.9575        .57325E-04   -1.5297    
  19  Prefactor     .10000E-03    6.6091        .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .48587        1.0435        .90033E-04   -1.5569    
  21  norm          40.668        16.893        .62859E-04   -1.4432    
  22  Prefactor     .10000E-03    7.1675        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9003        2.9127        .10063E-03   -1.5367    
  24  Prefactor     19.507        8.1177        .90685E-04   -1.4824    
  25  norm          6.6839        6.0411        .70847E-03   -1.5191    
  26  Prefactor     .10001E-03    95.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.8191        .10604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    53.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.3170        .96114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    54.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     83.436        158.77        .43966E-04   -1.3879    
  32  Prefactor     45.945        58.165        .59146E-04   -1.4351    
  33  Prefactor     32.230        18.071        .70582E-04   -1.4572    
  34  Prefactor     .10001E-03    503.87        .91893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    27.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .81933        .34642        .32569E-03   -.99356    
  37  Prefactor     .67780        .24024        .27029E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13309e-10
Minuit parameter uncertainties:
  1  145.661
  2  3.41387e-05
  3  0.000598996
  4  1.3605e-05
  5  5.80088
  6  51.8566
  7  0.187159
  8  1.05483e-05
  9  7.75008
  10  16.6757
  11  0.000668329
  12  2.0594
  13  0.0002629
  14  9.45692e-06
  15  4.56763
  16  25.697
  17  2.49397
  18  1.95756
  19  1.94094e-05
  20  1.04354
  21  16.8945
  22  6.46502e-06
  23  2.9128
  24  8.11815
  25  6.04169
  26  0.00173331
  27  2.31991e-06
  28  0.000730577
  29  3.19528e-06
  30  0.000975639
  31  159.584
  32  58.2366
  33  18.0741
  34  0.00489765
  35  0.000354139
  36  0.347364
  37  0.240611
Done.

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

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  4.231e+00  1.958e+00  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  1.099e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  5.763e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  6.778e-01  2.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  8.193e-01  3.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.29
Ra Dec: 254.438 48.137
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 7.25e-08
Energy Flux (Fixed Index): 5.26e-05 +/- 2.43e-05

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) = 4188.40592674
delta logL = 0.0594870598488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4188.39647463
delta logL = 0.0689391662254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0405       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5210       1.0000          .0000       5.0000    
     3 'Normalizat'    .78383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   4188.396     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0404        1.9963        .54141E-04    .28552E-02
   2  alpha         2.5212        .58895        .11243E-01    .12870E-03
   3  Normalizat    .78374        .32342        .33225E-03   -.30590E-04
   4  Prefactor     .69804        .24112        .26654E-03   -.11969E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.04043
  alpha      = 2.52116
  Normalizat = 0.783743
  Prefactor  = 0.698037
 **********
 **   18 **HESSE 
 **********

 FCN=   4188.396     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0404        1.9653        .10828E-04   -1.5306    
   2  alpha         2.5212        .57923        .44971E-03    .84647E-02
   3  Normalizat    .78374        .32333        .13290E-04   -1.0067    
   4  Prefactor     .69804        .24104        .10661E-04   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70031e-10
Minuit parameter uncertainties:
  1  1.96537
  2  0.584541
  3  0.324126
  4  0.2414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225678': 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) = 4188.39647457
delta logL = 0.0689392234308

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  4.040e+00  1.965e+00  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.521e+00  5.845e-01  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  1.099e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  5.763e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  6.980e-01  2.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  7.837e-01  3.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.24
Ra Dec: 254.438 48.137
Photon Index (Free Index): 2.52 +/- 0.58
Photon Flux (Free Index): 1.85e-07 +/- 1.11e-07
Energy Flux (Free Index): 5.13e-05 +/- 2.28e-05

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/225678/cmap_HighResolution_432950401_433209601_4FGL_J1657.7+4808_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='5.13e-05', photon_flux_error='7.25e-08', dlogl='6.89e-02', energy_flux='5.26e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-16 06:06:51.689199', photon_index_error2='0.58', photon_index2='2.52', ts='11.29', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='0.82', time_epoch_completed='1631797611.69', return_code='0', job_id='225678', GAL2='0.70', EG2='0.78', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='1.11e-07', ts2='11.24', photon_index='2.31' WHERE bin_id='747' AND source_name='4FGL J1657.7+4808' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 06:06:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 225678: <4FGL_J1657.7+4808_daily_bin747> in cluster <slac> Done

Job <4FGL_J1657.7+4808_daily_bin747> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep 16 05:50:31 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 05:53:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 05:53:18 2021
Terminated at Thu Sep 16 06:06:52 2021
Results reported at Thu Sep 16 06:06:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.7+4808_daily_bin747 254.438 48.1368 432950401 433209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1657.7+4808 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   803.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            981 sec.

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

