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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin597
RA = 194.31, Dec = 36.7706
tmin = 394070401, tmax = 394329601
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='34702', job_status='RUN', time_executed='2021-09-06 11:38:28.365231', time_epoch_executed='1630953508.37' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34702

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34702/ft1_4FGL_J1257.2+3646_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34702/ft2_4FGL_J1257.2+3646_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34702/ft1_4FGL_J1257.2+3646_daily_bin597.fits outfile=/scratch/kocevski/34702/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin597.fits ra=194.31 dec=36.7706 rad=12.0 tmin=394070401.0 tmax=394329601.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.52
user 4.23
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34702/ft1_filtered_4FGL_J1257.2+3646_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/34702/ft2_4FGL_J1257.2+3646_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/34702/ltcube_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.fits outfile=/scratch/kocevski/34702/expmap_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.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/34702/ltcube_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.fits
.....................!
real 193.22
user 187.84
sys 4.85

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/34702/ft1_filtered_4FGL_J1257.2+3646_daily_bin597.fits scfile=/scratch/kocevski/34702/ft2_4FGL_J1257.2+3646_daily_bin597.fits outfile=/scratch/kocevski/34702/cmap_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.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.62
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34702/ft1_filtered_4FGL_J1257.2+3646_daily_bin597.fits scfile=/scratch/kocevski/34702/ft2_4FGL_J1257.2+3646_daily_bin597.fits outfile=/scratch/kocevski/34702/cmap_HighResolution_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34702/ft1_filtered_4FGL_J1257.2+3646_daily_bin597.fits', '/scratch/kocevski/34702/ft2_4FGL_J1257.2+3646_daily_bin597.fits', expMap='/scratch/kocevski/34702/expmap_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.fits', expCube='/scratch/kocevski/34702/ltcube_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34702/Model_4FGL_J1257.2+3646_daily_bin597.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/34702/ft1_filtered_4FGL_J1257.2+3646_daily_bin597.fits
Spacecraft file(s): /scratch/kocevski/34702/ft2_4FGL_J1257.2+3646_daily_bin597.fits
Exposure map: /scratch/kocevski/34702/expmap_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.fits
Exposure cube: /scratch/kocevski/34702/ltcube_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34702/Model_4FGL_J1257.2+3646_daily_bin597.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) = 6882.64840564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.5515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1196       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14639E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13886E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.0178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.770       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    53.332       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9156       1.0000         .10000E-03   10000.    
    18 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5817       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.124       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.764       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5338       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61242       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=   6882.620     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2929 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.782        .11668E-05** at limit **
   2  norm          3.5515        2.4753       -.25119E-06   -.11225E-04
   3  Prefactor     6.5533        8.0017       -.17752E-05   -.10364E-03
   4  Prefactor     .10000E-03    .74355       -.24342E-07** at limit **
   5  Prefactor     2.1196        1.8850       -.21709E-06   -.20515E-04
   6  Prefactor     11.327        9.9849       -.11304E-05   -.29263E-04
   7  Prefactor     33.567        28.985       -.34749E-05    .28234E-04
   8  Prefactor     5.8417        13.958       -.38000E-05   -.58680E-04
   9  Prefactor     .10001E-03    296.30        .85189E-04** at limit **
  10  Prefactor     .10000E-03    4.4557        .32386E-06** at limit **
  11  norm          8.0145        5.3714       -.76452E-06   -.46057E-03
  12  Prefactor     .10000E-03    28.058       -.18050E-05** at limit **
  13  Prefactor     .10000E-03    17.720        .30529E-05** at limit **
  14  Prefactor     14.774        13.455       -.28432E-05   -.17757E-04
  15  norm          .10000E-03    2.8389        .40173E-07** at limit **
  16  norm          53.331        20.713       -.10337E-05    .54690E-04
  17  norm          4.9116        4.2571       -.68767E-06   -.42788E-03
  18  norm          .10000E-03    9.0368        .90589E-07** at limit **
  19  Prefactor     1.5821        2.7565       -.17251E-06   -.45338E-03
  20  Prefactor     10.126        12.256       -.47155E-06    .67585E-05
  21  Prefactor     .10000E-03    15.018       -.47763E-05** at limit **
  22  Prefactor     .10000E-03    13.653        .85435E-06** at limit **
  23  Prefactor     32.618        61.114       -.13089E-03    .39249E-04
  24  Normalizat    1.5335        .19067        .80825E-05   -.73120E-03
  25  Prefactor     .61276        .22390        .13947E-07    .18034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.55146
  Prefactor  = 6.5533
  Prefactor  = 0.0001
  Prefactor  = 2.11964
  Prefactor  = 11.3275
  Prefactor  = 33.567
  Prefactor  = 5.84169
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 8.01448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7737
  norm       = 0.0001
  norm       = 53.3314
  norm       = 4.9116
  norm       = 0.0001
  Prefactor  = 1.58214
  Prefactor  = 10.1257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.618
  Normalizat = 1.5335
  Prefactor  = 0.612764
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.620     FROM HESSE     STATUS=OK           427 CALLS     3356 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5515        2.4691        .10453E-03   -1.5331    
   3  Prefactor     6.5533        8.0092        .15678E-03   -1.5196    
   4  Prefactor     .10000E-03    .74765        .69736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1196        1.8868        .10311E-03   -1.5417    
   6  Prefactor     11.327        9.9765        .11903E-03   -1.5035    
   7  Prefactor     33.567        28.989        .69164E-04   -1.4549    
   8  Prefactor     5.8417        13.772        .16618E-03   -1.5225    
   9  Prefactor     .10001E-03    298.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.064        .32652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.0145        5.3669        .14160E-03   -1.5142    
  12  Prefactor     .10000E-03    28.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.774        13.165        .10422E-03   -1.4939    
  15  norm          .10000E-03    2.8800        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          53.331        20.710        .54922E-04   -1.4246    
  17  norm          4.9116        4.1910        .14507E-03   -1.5265    
  18  norm          .10000E-03    9.1723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5821        2.6947        .16582E-03   -1.5456    
  20  Prefactor     10.126        12.149        .12593E-03   -1.5071    
  21  Prefactor     .10000E-03    15.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.618        61.175        .70004E-04   -1.4565    
  24  Normalizat    1.5335        .22148        .22227E-03   -.76841    
  25  Prefactor     .61276        .25700        .39798E-03   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12816e-09
Minuit parameter uncertainties:
  1  3.80985e-05
  2  2.46918
  3  8.01049
  4  2.64074e-06
  5  1.88684
  6  9.978
  7  29.0016
  8  13.7792
  9  0.00347741
  10  1.94043e-05
  11  5.36722
  12  5.91393e-05
  13  2.67136e-05
  14  13.1673
  15  5.76977e-06
  16  20.713
  17  4.19123
  18  3.37424e-05
  19  2.6949
  20  12.1518
  21  2.98106e-05
  22  0.000106875
  23  61.2932
  24  0.221621
  25  0.257493
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.940e-05  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:  6.128e-01  2.575e-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:  1.534e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34702/likelihoodResults_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.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) = 6882.61993931
delta logL = -0.000294653783385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6882.61964472
delta logL = -6.34590833215e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0236       1.0000          .0000       10.000    
     3 'Normalizat'    1.5336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61269       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=   6882.620     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .41789E-01    .61404E-01** at limit **
   2  Index         2.0205        8.9595        .50000        .12322E-05
   3  Normalizat    1.5335        .44577E-03    .50278E-01    .77547E-04
   4  Prefactor     .61275        .53301E-03    .89827E-01    .84157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02051
  Normalizat = 1.53352
  Prefactor  = 0.61275
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.620     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.997        .32719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0205        8.1331        .50000       -.63838    
   3  Normalizat    1.5335        .58242E-02    .22227E-03   -.76841    
   4  Prefactor     .61275        .69451E-02    .39799E-03   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.90026e-09
Minuit parameter uncertainties:
  1  0.000180857
  2  221.617
  3  0.00582418
  4  0.00694508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34702': 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) = 6882.61964465
delta logL = 4.40377334598e-09

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.809e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.021e+00  2.216e+02  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:  6.127e-01  6.945e-03  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:  1.534e+00  5.824e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/34702/cmap_HighResolution_394070401_394329601_4FGL_J1257.2+3646_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-06 11:51:22.846566', job_id='34702', GAL2='0.61', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630954282.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='4.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='597' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 34702: <4FGL_J1257.2+3646_daily_bin597> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin597> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:49 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:51 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:51 2021
Terminated at Mon Sep  6 11:51:23 2021
Results reported at Mon Sep  6 11:51:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin597 194.31 36.7706 394070401 394329601 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 :                                   772.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

