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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin515
RA = 194.31, Dec = 36.7706
tmin = 372816001, tmax = 373075201
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='34572', job_status='RUN', time_executed='2021-09-06 11:37:32.946436', time_epoch_executed='1630953452.95' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34572/ft1_4FGL_J1257.2+3646_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34572/ft1_4FGL_J1257.2+3646_daily_bin515.fits outfile=/scratch/kocevski/34572/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin515.fits ra=194.31 dec=36.7706 rad=12.0 tmin=372816001.0 tmax=373075201.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.43
user 4.19
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.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/34572/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin515.fits evtable="EVENTS" outfile="/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/34572/ltcube_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.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/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits
.....................!
real 11.92
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/34572/ltcube_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.fits outfile=/scratch/kocevski/34572/expmap_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.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/34572/ltcube_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.fits
.....................!
real 190.36
user 185.29
sys 4.74

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

Setting source of interest to:
4FGL J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits scfile=/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits outfile=/scratch/kocevski/34572/cmap_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.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=194.31 yref=36.7706 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits scfile=/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits outfile=/scratch/kocevski/34572/cmap_HighResolution_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.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=194.31 yref=36.7706 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34572/Model_4FGL_J1257.2+3646_daily_bin515.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/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits.....................!
real 49.86
user 48.28
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits', '/scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits', expMap='/scratch/kocevski/34572/expmap_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.fits', expCube='/scratch/kocevski/34572/ltcube_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34572/Model_4FGL_J1257.2+3646_daily_bin515.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/34572/ft1_filtered_4FGL_J1257.2+3646_daily_bin515.fits
Spacecraft file(s): /scratch/kocevski/34572/ft2_4FGL_J1257.2+3646_daily_bin515.fits
Exposure map: /scratch/kocevski/34572/expmap_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.fits
Exposure cube: /scratch/kocevski/34572/ltcube_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34572/Model_4FGL_J1257.2+3646_daily_bin515.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) = 6194.03626268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.255       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6255       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0559       1.0000         .10000E-03   10000.    
    16 'norm      '    14.889       1.0000         .10000E-03   10000.    
    17 'norm      '    8.6107       1.0000         .10000E-03   10000.    
    18 'norm      '    13.377       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.882       1.0000         .10000E-03   10000.    
    23 'Prefactor '    72.060       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83923       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6194.011     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2879 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.252        27.177       -.45468E-05    .25369E-04
   2  norm          .10000E-03    .96989       -.60759E-06** at limit **
   3  Prefactor     1.7408        3.1595       -.74374E-06   -.37987E-03
   4  Prefactor     4.1510        2.1742        .36281E-07    .27042E-03
   5  Prefactor     5.2291        2.8341       -.66230E-06    .64001E-04
   6  Prefactor     .10000E-03    10.561       -.20957E-05** at limit **
   7  Prefactor     59.411        35.630       -.15974E-04    .33438E-04
   8  Prefactor     .10000E-03    6.2000        .73572E-07** at limit **
   9  Prefactor     .10000E-03    27.606        .22462E-04** at limit **
  10  Prefactor     7.6254        5.2076       -.88044E-06    .13128E-03
  11  norm          .10000E-03    1.6268       -.28614E-07** at limit **
  12  Prefactor     .10000E-03    14.146        .72867E-05** at limit **
  13  Prefactor     .10000E-03    20.344       -.19501E-04** at limit **
  14  Prefactor     .10000E-03    3.5502        .24882E-06** at limit **
  15  norm          8.0566        5.5478       -.31464E-06    .13629E-03
  16  norm          14.888        11.094       -.34613E-06    .20792E-04
  17  norm          8.6170        8.2845       -.30459E-06    .17608E-03
  18  norm          13.366        15.579       -.20704E-05    .87731E-04
  19  Prefactor     1.0892        3.1625       -.15786E-06   -.75809E-03
  20  Prefactor     .10000E-03    3.8534       -.26347E-06** at limit **
  21  Prefactor     .10000E-03    49.265       -.53412E-05** at limit **
  22  Prefactor     16.881        18.071       -.30728E-05    .48208E-04
  23  Prefactor     71.973        73.629       -.91791E-04    .40556E-04
  24  Normalizat    .83932        .16686        .14148E-04   -.25579E-03
  25  Prefactor     1.0239        .20121       -.13033E-05    .58311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2524
  norm       = 0.0001
  Prefactor  = 1.74082
  Prefactor  = 4.15102
  Prefactor  = 5.2291
  Prefactor  = 0.0001
  Prefactor  = 59.4111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.62535
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.05664
  norm       = 14.8882
  norm       = 8.61696
  norm       = 13.3662
  Prefactor  = 1.0892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.881
  Prefactor  = 71.9732
  Normalizat = 0.839317
  Prefactor  = 1.02389
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.011     FROM HESSE     STATUS=OK           427 CALLS     3306 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.252        27.189        .91276E-04   -1.4830    
   2  norm          .10000E-03    .97384        .75558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7408        3.1258        .18341E-03   -1.5444    
   4  Prefactor     4.1510        2.1711        .80218E-04   -1.5300    
   5  Prefactor     5.2291        2.8292        .92561E-04   -1.5251    
   6  Prefactor     .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.411        35.671        .52044E-04   -1.4165    
   8  Prefactor     .10000E-03    6.2050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6254        5.2067        .14344E-03   -1.5156    
  11  norm          .10000E-03    1.6479        .97990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5517        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0566        5.4861        .14126E-03   -1.5140    
  16  norm          14.888        11.096        .10380E-03   -1.4936    
  17  norm          8.6170        8.6641        .11954E-03   -1.5121    
  18  norm          13.366        16.379        .10952E-03   -1.4977    
  19  Prefactor     1.0892        3.0965        .21105E-03   -1.5499    
  20  Prefactor     .10000E-03    3.8552        .15084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.881        18.088        .97478E-04   -1.4886    
  23  Prefactor     71.973        73.695        .23646E-03   -1.4009    
  24  Normalizat    .83932        .19896        .24113E-03   -.98626    
  25  Prefactor     1.0239        .24099        .27908E-03   -.91937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74514e-09
Minuit parameter uncertainties:
  1  27.2067
  2  5.87321e-06
  3  3.12607
  4  2.17116
  5  2.82928
  6  0.000125708
  7  35.6843
  8  1.73352e-05
  9  0.000114412
  10  5.20699
  11  1.17605e-05
  12  1.51311e-05
  13  7.44373e-05
  14  3.82781e-06
  15  5.48648
  16  11.0972
  17  8.66532
  18  16.3845
  19  3.09692
  20  6.55177e-06
  21  0.000270535
  22  18.0942
  23  73.7882
  24  0.199135
  25  0.241248
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.625e+00  5.207e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.024e+00  2.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.393e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.45
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.28e-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) = 6193.77520712
delta logL = 0.235761386676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6193.74285083
delta logL = 0.268117673559

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6193.743     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      243 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7574        249.76        .32076E-02   -.41809E-04
   2  Index         1.6801        5.3177        .15965        .22612E-04
   3  Normalizat    .85077        .15599        .44271E-01   -.14761E-03
   4  Prefactor     1.0158        .13778        .63318E-01    .73234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.75736
  Index      = 1.68008
  Normalizat = 0.850766
  Prefactor  = 1.01579
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.743     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7574        6.9972        .12830E-03   -1.5083    
   2  Index         1.6801        .45992        .79211E-02   -.72613    
   3  Normalizat    .85077        .18629        .23965E-03   -.98212    
   4  Prefactor     1.0158        .23664        .28004E-03   -.92205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3631e-10
Minuit parameter uncertainties:
  1  6.99774
  2  0.461083
  3  0.186432
  4  0.236886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34572': 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) = 6193.74285034
delta logL = 0.268118164275

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.757e+00  6.998e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.680e+00  4.611e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.016e+00  2.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.508e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.99
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.68 +/- 0.46
Photon Flux (Free Index): 2.00e-08 +/- 1.82e-08
Energy Flux (Free Index): 3.47e-05 +/- 4.00e-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/34572/cmap_HighResolution_372816001_373075201_4FGL_J1257.2+3646_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='3.47e-05', photon_flux_error='1.98e-08', dlogl='2.68e-01', energy_flux='1.87e-05', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-09-06 11:48:27.819990', photon_index_error2='0.46', photon_index2='1.68', ts='8.45', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.00e-05', EG='0.84', time_epoch_completed='1630954107.82', return_code='0', job_id='34572', GAL2='1.02', EG2='0.85', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='1.82e-08', ts2='8.99', photon_index='2.03' WHERE bin_id='515' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:48:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 34572: <4FGL_J1257.2+3646_daily_bin515> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin515> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:36 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:35:38 2021
Terminated at Mon Sep  6 11:48:29 2021
Results reported at Mon Sep  6 11:48:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin515 194.31 36.7706 372816001 373075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

