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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin424
RA = 194.31, Dec = 36.7706
tmin = 349228801, tmax = 349488001
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='33052', job_status='RUN', time_executed='2021-09-06 11:33:44.675213', time_epoch_executed='1630953224.68' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33052/ft1_4FGL_J1257.2+3646_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33052/ft2_4FGL_J1257.2+3646_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33052/ft1_4FGL_J1257.2+3646_daily_bin424.fits outfile=/scratch/kocevski/33052/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin424.fits ra=194.31 dec=36.7706 rad=12.0 tmin=349228801.0 tmax=349488001.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.41
user 3.20
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33052/ft1_filtered_4FGL_J1257.2+3646_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/33052/ft2_4FGL_J1257.2+3646_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/33052/ltcube_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.fits outfile=/scratch/kocevski/33052/expmap_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.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/33052/ltcube_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.fits
.....................!
real 190.82
user 186.26
sys 4.24

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/33052/ft1_filtered_4FGL_J1257.2+3646_daily_bin424.fits scfile=/scratch/kocevski/33052/ft2_4FGL_J1257.2+3646_daily_bin424.fits outfile=/scratch/kocevski/33052/cmap_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33052/ft1_filtered_4FGL_J1257.2+3646_daily_bin424.fits scfile=/scratch/kocevski/33052/ft2_4FGL_J1257.2+3646_daily_bin424.fits outfile=/scratch/kocevski/33052/cmap_HighResolution_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.3880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4608       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.389       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.561       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.101       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .72096E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0840       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.494       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.863       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4482       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .50148       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=   6471.559     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2937 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.099       -.20098E-06** at limit **
   2  norm          2.3880        2.6855       -.45461E-06   -.37377E-03
   3  Prefactor     .10000E-03    1.9543       -.14145E-07** at limit **
   4  Prefactor     3.9136        2.3805       -.17441E-06    .42683E-04
   5  Prefactor     6.4608        2.9793        .80530E-06   -.51064E-04
   6  Prefactor     .10000E-03    2.6981       -.13337E-07** at limit **
   7  Prefactor     12.383        29.107       -.46924E-05   -.86683E-05
   8  Prefactor     .10000E-03    7.1506       -.13870E-07** at limit **
   9  Prefactor     71.707        65.133       -.83036E-05   -.32736E-05
  10  Prefactor     .10000E-03    1.4138        .42775E-07** at limit **
  11  norm          .10000E-03    1.6193        .69456E-07** at limit **
  12  Prefactor     53.562        42.021        .29922E-06    .15042E-05
  13  Prefactor     13.884        18.978        .47258E-06   -.29632E-04
  14  Prefactor     16.102        12.673        .17854E-07   -.18919E-04
  15  norm          .10000E-03    2.0275       -.25270E-07** at limit **
  16  norm          .10000E-03    15.828        .54396E-06** at limit **
  17  norm          .10000E-03    1.8657        .57532E-07** at limit **
  18  norm          6.0969        5.8797        .54948E-07   -.22288E-03
  19  Prefactor     .10000E-03    2.3671        .11997E-06** at limit **
  20  Prefactor     .10000E-03    4.9381        .20347E-06** at limit **
  21  Prefactor     40.488        59.701       -.53755E-05   -.14884E-04
  22  Prefactor     15.863        13.883       -.15334E-06   -.22695E-04
  23  Prefactor     .10000E-03    49.074        .50202E-06** at limit **
  24  Normalizat    1.4483        .17199        .63833E-06   -.75614E-04
  25  Prefactor     .50148        .20149        .47790E-06   -.32140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.38795
  Prefactor  = 0.0001
  Prefactor  = 3.91357
  Prefactor  = 6.46076
  Prefactor  = 0.0001
  Prefactor  = 12.3827
  Prefactor  = 0.0001
  Prefactor  = 71.7068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.5616
  Prefactor  = 13.8835
  Prefactor  = 16.1016
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 6.0969
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 40.4885
  Prefactor  = 15.8632
  Prefactor  = 0.0001
  Normalizat = 1.44829
  Prefactor  = 0.50148
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.559     FROM HESSE     STATUS=OK           433 CALLS     3370 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3880        2.6936        .12895E-03   -1.5399    
   3  Prefactor     .10000E-03    1.9563        .10983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9136        2.3778        .88710E-04   -1.5312    
   5  Prefactor     6.4608        2.9719        .89002E-04   -1.5200    
   6  Prefactor     .10000E-03    2.7008        .12905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.383        29.171        .11381E-03   -1.5004    
   8  Prefactor     .10000E-03    7.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.707        64.875        .47405E-04   -1.4012    
  10  Prefactor     .10000E-03    1.4165        .93403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6280        .99877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.562        42.106        .54805E-04   -1.4243    
  13  Prefactor     13.884        18.930        .10750E-03   -1.4963    
  14  Prefactor     16.102        12.678        .99814E-04   -1.4905    
  15  norm          .10000E-03    2.0349        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.9484        .32894E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0969        6.9549        .16277E-03   -1.5214    
  19  Prefactor     .10000E-03    2.4391        .24034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.072        .34044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.488        58.955        .62991E-04   -1.4434    
  22  Prefactor     15.863        13.891        .10056E-03   -1.4911    
  23  Prefactor     .10000E-03    49.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4483        .19469        .20456E-03   -.79242    
  25  Prefactor     .50148        .22456        .39175E-03   -1.1191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78192e-10
Minuit parameter uncertainties:
  1  5.20899e-06
  2  2.69372
  3  9.00906e-07
  4  2.37787
  5  2.97202
  6  3.19498e-06
  7  29.2046
  8  2.19445e-06
  9  64.9393
  10  2.26177e-07
  11  9.30156e-06
  12  42.129
  13  18.9385
  14  12.6802
  15  2.31563e-07
  16  2.45585e-05
  17  0.000302707
  18  6.95578
  19  1.98845e-05
  20  0.000331877
  21  59.0396
  22  13.8936
  23  1.6225e-05
  24  0.194792
  25  0.224954
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.262e-07  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:  5.015e-01  2.250e-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.448e+00  1.948e-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: 2.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33052/likelihoodResults_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.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) = 6471.56224618
delta logL = -0.00292905221249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6471.55931662
delta logL = 5.05859134137e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0029       1.0000          .0000       10.000    
     3 'Normalizat'    1.4483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50149       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=   6471.559     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      222 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0308        .90712E-02** at limit **
   2  Index         1.4821        9.2399        .50000        .77625E-07
   3  Normalizat    1.4483        .71050E-02    .46277E-01    .13471E-03
   4  Prefactor     .50148        .84675E-02    .88406E-01    .10454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.48205
  Normalizat = 1.4483
  Prefactor  = 0.50148
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.559     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      253 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.874        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4821        5.0034        .50000       -.78044    
   3  Normalizat    1.4483        .20919E-01    .20456E-03   -.79242    
   4  Prefactor     .50148        .24857E-01    .39175E-03   -1.1191    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95371e-12
Minuit parameter uncertainties:
  1  3.24632e-05
  2  295.827
  3  0.0209195
  4  0.0248571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33052': 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) = 6471.55930679
delta logL = 1.03380525616e-05

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.246e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.482e+00  2.958e+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:  5.015e-01  2.486e-02  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.448e+00  2.092e-02  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/33052/cmap_HighResolution_349228801_349488001_4FGL_J1257.2+3646_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-03', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2021-09-06 11:46:01.984078', job_id='33052', GAL2='0.50', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630953961.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='424' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 33052: <4FGL_J1257.2+3646_daily_bin424> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin424> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:36 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:37 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:30:37 2021
Terminated at Mon Sep  6 11:46:02 2021
Results reported at Mon Sep  6 11:46:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin424 194.31 36.7706 349228801 349488001 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 :                                   735.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

