/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 226 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin153
RA = 194.31, Dec = 36.7706
tmin = 278985601, tmax = 279244801
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='31901', job_status='RUN', time_executed='2021-09-06 11:29:41.030674', time_epoch_executed='1630952981.03' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31901/ft1_4FGL_J1257.2+3646_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31901/ft2_4FGL_J1257.2+3646_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31901/ft1_4FGL_J1257.2+3646_daily_bin153.fits outfile=/scratch/kocevski/31901/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin153.fits ra=194.31 dec=36.7706 rad=12.0 tmin=278985601.0 tmax=279244801.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.75
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31901/ft1_filtered_4FGL_J1257.2+3646_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/31901/ft2_4FGL_J1257.2+3646_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/31901/ltcube_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.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/31901/ft2_4FGL_J1257.2+3646_daily_bin153.fits
.....................!
real 11.70
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31901/ft1_filtered_4FGL_J1257.2+3646_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/31901/ft2_4FGL_J1257.2+3646_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/31901/ltcube_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.fits outfile=/scratch/kocevski/31901/expmap_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.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/31901/ltcube_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.fits
.....................!
real 190.76
user 185.00
sys 5.40

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/31901/ft1_filtered_4FGL_J1257.2+3646_daily_bin153.fits scfile=/scratch/kocevski/31901/ft2_4FGL_J1257.2+3646_daily_bin153.fits outfile=/scratch/kocevski/31901/cmap_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31901/ft1_filtered_4FGL_J1257.2+3646_daily_bin153.fits scfile=/scratch/kocevski/31901/ft2_4FGL_J1257.2+3646_daily_bin153.fits outfile=/scratch/kocevski/31901/cmap_HighResolution_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11094E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.711       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69616E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.816       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11421E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.366       1.0000         .10000E-03   10000.    
    15 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.706       1.0000         .10000E-03   10000.    
    17 'norm      '    11.031       1.0000         .10000E-03   10000.    
    18 'norm      '    .60491E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.207       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1993       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=   6178.342     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2975 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6342       -.28729E-05** at limit **
   2  norm          2.0355        2.7784       -.77622E-07   -.38582E-03
   3  Prefactor     5.2951        5.1706       -.35807E-05    .16004E-03
   4  Prefactor     .10005E-03    1.2575       -.54188E-07** at limit **
   5  Prefactor     5.3238        3.2562        .10306E-06   -.58754E-04
   6  Prefactor     14.803        13.653        .11596E-05   -.12187E-04
   7  Prefactor     24.708        32.752       -.10346E-05   -.89558E-06
   8  Prefactor     .10000E-03    8.6698        .69118E-05** at limit **
   9  Prefactor     59.849        105.52       -.73169E-04   -.53149E-04
  10  Prefactor     .10010E-03    6.0398       -.24344E-05** at limit **
  11  norm          2.7345        6.7228        .81664E-05   -.18157E-03
  12  Prefactor     61.815        66.690       -.13692E-06    .51783E-05
  13  Prefactor     .10000E-03    43.292        .18768E-04** at limit **
  14  Prefactor     30.378        21.111        .86810E-06    .50542E-03
  15  norm          .10000E-03    8.1129       -.41361E-05** at limit **
  16  norm          25.707        15.074       -.36869E-07    .14915E-04
  17  norm          11.038        7.3107       -.46335E-06   -.25581E-03
  18  norm          .10037E-03    9.5580       -.12030E-06** at limit **
  19  Prefactor     .10000E-03    2.9708       -.11959E-06** at limit **
  20  Prefactor     7.9098        12.496       -.38631E-06   -.24618E-04
  21  Prefactor     .10000E-03    29.122       -.15074E-04** at limit **
  22  Prefactor     .10000E-03    18.656        .78150E-05** at limit **
  23  Prefactor     30.257        57.307        .66850E-04    .71480E-05
  24  Normalizat    1.0587        .19502       -.51046E-06    .12452E-03
  25  Prefactor     1.1989        .23103        .66341E-06    .62527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.03553
  Prefactor  = 5.29505
  Prefactor  = 0.000100051
  Prefactor  = 5.32383
  Prefactor  = 14.8027
  Prefactor  = 24.7084
  Prefactor  = 0.0001
  Prefactor  = 59.8492
  Prefactor  = 0.000100105
  norm       = 2.73451
  Prefactor  = 61.8154
  Prefactor  = 0.0001
  Prefactor  = 30.3776
  norm       = 0.0001
  norm       = 25.7068
  norm       = 11.0377
  norm       = 0.000100366
  Prefactor  = 0.0001
  Prefactor  = 7.90979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.257
  Normalizat = 1.05874
  Prefactor  = 1.19891
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.342     FROM HESSE     STATUS=OK           447 CALLS     3422 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0355        2.8325        .13810E-03   -1.5423    
   3  Prefactor     5.2951        5.1733        .17169E-03   -1.5248    
   4  Prefactor     .10005E-03    1.9566        .31276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3238        3.2457        .10370E-03   -1.5246    
   6  Prefactor     14.803        13.634        .10411E-03   -1.4938    
   7  Prefactor     24.708        32.783        .80583E-04   -1.4713    
   8  Prefactor     .10000E-03    8.6755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.849        104.80        .51836E-04   -1.4159    
  10  Prefactor     .10010E-03    20.290        .35466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7345        6.5812        .24671E-03   -1.5377    
  12  Prefactor     61.815        66.744        .51035E-04   -1.4134    
  13  Prefactor     .10000E-03    43.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.378        20.114        .72709E-04   -1.4605    
  15  norm          .10000E-03    8.2997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.707        15.074        .79010E-04   -1.4693    
  17  norm          11.038        7.5458        .12063E-03   -1.5043    
  18  norm          .10037E-03    12.940        .60412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0526        .26385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9098        12.471        .14255E-03   -1.5145    
  21  Prefactor     .10000E-03    29.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.257        57.391        .72899E-04   -1.4607    
  24  Normalizat    1.0587        .23831        .26295E-03   -.91088    
  25  Prefactor     1.1989        .28072        .30398E-03   -.86365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54558e-09
Minuit parameter uncertainties:
  1  1.04032e-05
  2  2.83273
  3  5.17377
  4  0.000632219
  5  3.24577
  6  13.637
  7  32.8069
  8  1.34685e-05
  9  105.123
  10  0.00291661
  11  6.58297
  12  66.8254
  13  2.00076e-05
  14  20.1184
  15  8.72934e-06
  16  15.0757
  17  7.54646
  18  0.00435196
  19  5.93874e-06
  20  12.4751
  21  4.63199e-05
  22  1.7183e-05
  23  57.4964
  24  0.238548
  25  0.281072
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.001e-04  2.917e-03  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.199e+00  2.811e-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.059e+00  2.385e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31901/likelihoodResults_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.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) = 6178.34237983
delta logL = -0.00023323768437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6178.34214719
delta logL = -5.92800461163e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1483       1.0000          .0000       10.000    
     3 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1990       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=   6178.223     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      311 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11407        .27449        .10532E-01   -.52214E-02
   2  Index         3.7552        .75035        .10282        .24357E-03
   3  Normalizat    1.0299        .19728        .60165E-01   -.20260E-03
   4  Prefactor     1.2188        .23187        .68215E-01   -.14306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.11407
  Index      = 3.75516
  Normalizat = 1.02989
  Prefactor  = 1.2188
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.223     FROM HESSE     STATUS=OK            35 CALLS      346 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11407        2.2103        .52112E-03   -1.5775    
   2  Index         3.7552        3.1823        .93649E-02   -.25161    
   3  Normalizat    1.0299        .23746        .26609E-03   -.92036    
   4  Prefactor     1.2188        .28406        .30178E-03   -.85755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.168e-10
Minuit parameter uncertainties:
  1  1.00385
  2  3.47228
  3  0.237709
  4  0.284416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31901': 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) = 6178.22261822
delta logL = 0.119528370312

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.141e-01  1.004e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.755e+00  3.472e+00  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.219e+00  2.844e-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.030e+00  2.377e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/31901/cmap_HighResolution_278985601_279244801_4FGL_J1257.2+3646_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-06 11:41:41.434557', job_id='31901', GAL2='1.22', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1630953701.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.20e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='153' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:41:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 31901: <4FGL_J1257.2+3646_daily_bin153> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin153> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:45 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:46 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:25:46 2021
Terminated at Mon Sep  6 11:41:42 2021
Results reported at Mon Sep  6 11:41:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin153 194.31 36.7706 278985601 279244801 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 :                                   717.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

