/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 36 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin43
RA = 194.31, Dec = 36.7706
tmin = 250473601, tmax = 250732801
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='31715', job_status='RUN', time_executed='2021-09-06 11:26:16.288831', time_epoch_executed='1630952776.29' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31715

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31715/ft1_4FGL_J1257.2+3646_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31715/ft2_4FGL_J1257.2+3646_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31715/ft1_4FGL_J1257.2+3646_daily_bin43.fits outfile=/scratch/kocevski/31715/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin43.fits ra=194.31 dec=36.7706 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.36
user 1.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31715/ft2_4FGL_J1257.2+3646_daily_bin43.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/31715/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/31715/ft1_filtered_4FGL_J1257.2+3646_daily_bin43.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31715/ft1_filtered_4FGL_J1257.2+3646_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/31715/ft2_4FGL_J1257.2+3646_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/31715/ltcube_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.fits outfile=/scratch/kocevski/31715/expmap_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.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/31715/ltcube_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.fits
.....................!
real 191.24
user 184.96
sys 4.86

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/31715/ft1_filtered_4FGL_J1257.2+3646_daily_bin43.fits scfile=/scratch/kocevski/31715/ft2_4FGL_J1257.2+3646_daily_bin43.fits outfile=/scratch/kocevski/31715/cmap_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.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/31715/ft1_filtered_4FGL_J1257.2+3646_daily_bin43.fits scfile=/scratch/kocevski/31715/ft2_4FGL_J1257.2+3646_daily_bin43.fits outfile=/scratch/kocevski/31715/cmap_HighResolution_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.8895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81791E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .88591E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9370       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2203       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4191       1.0000         .10000E-03   10000.    
    18 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.814       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12391E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0563       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61338       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5959.432     FROM MIGRAD    STATUS=CONVERGED   1110 CALLS     3841 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9633        .18142E-02** at limit **
   2  norm          1.8893        1.7104        .92061E-04    .29885E-04
   3  Prefactor     .10000E-03    6.0761        .36285E-03** at limit **
   4  Prefactor     1.1128        1.0975        .69086E-03   -.23655E-03
   5  Prefactor     5.4740        2.5436        .79994E-04   -.38798E-04
   6  Prefactor     18.013        9.0386        .94377E-04   -.23420E-03
   7  Prefactor     22.483        25.344        .84393E-04   -.36776E-04
   8  Prefactor     .10000E-03    6.1420        .18142E-02** at limit **
   9  Prefactor     .10144E-03    65.856        .17085    ** at limit **
  10  Prefactor     .10000E-03    1.8893        .10343E-02** at limit **
  11  norm          2.8851        3.5800        .15083E-03    .53064E-04
  12  Prefactor     .10002E-03    60.797        .15614    ** at limit **
  13  Prefactor     .10000E-03    10.755        .18142E-02** at limit **
  14  Prefactor     6.9429        10.738        .15232E-03   -.40303E-04
  15  norm          .10000E-03    2.1032        .10878E-02** at limit **
  16  norm          5.2288        10.365        .17593E-03   -.71663E-04
  17  norm          8.4093        3.7039        .46494E-03    .18496E-03
  18  norm          .10000E-03    11.795        .30310E-02** at limit **
  19  Prefactor     .10000E-03    1.3026        .84997E-03** at limit **
  20  Prefactor     .10000E-03    5.4067        .17496E-02** at limit **
  21  Prefactor     28.755        33.179        .74637E-04    .24676E-04
  22  Prefactor     .10000E-03    12.961        .18142E-02** at limit **
  23  Prefactor     .10000E-03    31.751        .18142E-02** at limit **
  24  Normalizat    1.0562        .17640        .19984E-03   -.23715E-03
  25  Prefactor     .61351        .21032        .31073E-03   -.15257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.88932
  Prefactor  = 0.0001
  Prefactor  = 1.11276
  Prefactor  = 5.47398
  Prefactor  = 18.0131
  Prefactor  = 22.4829
  Prefactor  = 0.0001
  Prefactor  = 0.000101437
  Prefactor  = 0.0001
  norm       = 2.88507
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 6.94291
  norm       = 0.0001
  norm       = 5.22883
  norm       = 8.4093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05624
  Prefactor  = 0.613509
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.432     FROM HESSE     STATUS=OK           423 CALLS     4264 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8893        1.7103        .36824E-05   -1.5433    
   3  Prefactor     .10000E-03    6.0765        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1128        1.0974        .27635E-04   -1.5497    
   5  Prefactor     5.4740        2.5434        .31998E-05   -1.5240    
   6  Prefactor     18.013        9.0385        .18875E-04   -1.4859    
   7  Prefactor     22.483        25.344        .33757E-05   -1.4759    
   8  Prefactor     .10000E-03    6.1422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10144E-03    70.296        .16377       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8894        .20685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8851        3.5812        .60331E-05   -1.5368    
  12  Prefactor     .10002E-03    62.724        .15307       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9429        10.738        .60929E-05   -1.5181    
  15  norm          .10000E-03    2.1035        .21756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2288        10.366        .70373E-05   -1.5251    
  17  norm          8.4093        3.6942        .18597E-04   -1.5128    
  18  norm          .10000E-03    11.832        .60621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3028        .16999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4073        .34992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.755        33.179        .14927E-04   -1.4635    
  22  Prefactor     .10000E-03    12.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0562        .17653        .39968E-04   -.91170    
  25  Prefactor     .61351        .21049        .12429E-04   -1.0702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5868e-10
Minuit parameter uncertainties:
  1  6.10031e-07
  2  1.71031
  3  5.1093e-06
  4  1.09746
  5  2.5435
  6  9.03917
  7  25.3561
  8  4.00906e-08
  9  0.0201231
  10  4.71146e-06
  11  3.58147
  12  0.00199154
  13  1.24152e-05
  14  10.7406
  15  4.40323e-06
  16  10.3691
  17  3.69433
  18  9.34237e-05
  19  1.65656e-06
  20  2.72662e-06
  21  33.2004
  22  8.37508e-06
  23  3.40344e-06
  24  0.176627
  25  0.210756
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.711e-06  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.135e-01  2.108e-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.056e+00  1.766e-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: 3.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31715/likelihoodResults_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.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) = 5959.43460441
delta logL = -0.00249427985545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5959.43211005
delta logL = 8.17217369331e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0128       1.0000          .0000       10.000    
     3 'Normalizat'    1.0562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61351       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5959.432     FROM MIGRAD    STATUS=FAILED        93 CALLS      244 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10280E-03    1.5623        .10432E-01** at limit **
   2  Index         1.7832        5.8306        .50000        .24086E-04
   3  Normalizat    1.0562        .31281E-02    .19984E-03   -.34019E-04
   4  Prefactor     .61351        .38086E-02    .31073E-03   -.22391E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5959.432     FROM SIMPLEX   STATUS=PROGRESS      95 CALLS      339 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.5623        .16340E-03** at limit **
   2  Index         1.7469        5.8306        .13005E-01    .24086E-04
   3  Normalizat    1.0562        .31281E-02    .15604E-04   -.34019E-04
   4  Prefactor     .61345        .38086E-02    .30781E-04   -.22391E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5959.432     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      415 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    489.64        .21838E-03** at limit **
   2  Index         1.6385        5.1506        .50000       -.38972E-07
   3  Normalizat    1.0562        .11795        .15987E-05    .14222E-03
   4  Prefactor     .61350        .14219        .24859E-05   -.95125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.63852
  Normalizat = 1.05624
  Prefactor  = 0.613503
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.432     FROM HESSE     STATUS=OK            29 CALLS      444 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2627        .43676E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6385        6.0577        .50000       -.73730    
   3  Normalizat    1.0562        .16741        .31975E-06   -.91169    
   4  Prefactor     .61350        .20405        .49717E-06   -1.0702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41248e-10
Minuit parameter uncertainties:
  1  7.83802e-07
  2  114.487
  3  0.167494
  4  0.204298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31715': 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) = 5959.432107
delta logL = 3.13180589728e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.838e-07  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.639e+00  1.145e+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.135e-01  2.043e-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.056e+00  1.675e-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/31715/cmap_HighResolution_250473601_250732801_4FGL_J1257.2+3646_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2021-09-06 11:39:04.263181', job_id='31715', GAL2='0.61', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630953544.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='43' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:39:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 31715: <4FGL_J1257.2+3646_daily_bin43> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin43 194.31 36.7706 250473601 250732801 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 :                                   763.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

