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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin864
RA = 194.31, Dec = 36.7706
tmin = 463276801, tmax = 463536001
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='36469', job_status='RUN', time_executed='2021-09-06 11:43:00.059947', time_epoch_executed='1630953780.06' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36469

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36469/ft1_4FGL_J1257.2+3646_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36469/ft2_4FGL_J1257.2+3646_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36469/ft1_4FGL_J1257.2+3646_daily_bin864.fits outfile=/scratch/kocevski/36469/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin864.fits ra=194.31 dec=36.7706 rad=12.0 tmin=463276801.0 tmax=463536001.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.67
user 3.43
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36469/ft1_filtered_4FGL_J1257.2+3646_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/36469/ft2_4FGL_J1257.2+3646_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/36469/ltcube_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.fits outfile=/scratch/kocevski/36469/expmap_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.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/36469/ltcube_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.fits
.....................!
real 192.21
user 185.36
sys 5.11

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/36469/ft1_filtered_4FGL_J1257.2+3646_daily_bin864.fits scfile=/scratch/kocevski/36469/ft2_4FGL_J1257.2+3646_daily_bin864.fits outfile=/scratch/kocevski/36469/cmap_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36469/ft1_filtered_4FGL_J1257.2+3646_daily_bin864.fits scfile=/scratch/kocevski/36469/ft2_4FGL_J1257.2+3646_daily_bin864.fits outfile=/scratch/kocevski/36469/cmap_HighResolution_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.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.61
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.3444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4729       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20183E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.701       1.0000         .10000E-03   10000.    
    16 'norm      '    15.821       1.0000         .10000E-03   10000.    
    17 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7535       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2143       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.312       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9739       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.136       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5221       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .50787       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=   6123.237     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2888 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.196       -.91627E-06** at limit **
   2  norm          6.3435        3.0352       -.11907E-06    .19492E-03
   3  Prefactor     5.5354        6.1496       -.23411E-06    .19135E-04
   4  Prefactor     1.4728        1.4258        .10566E-07    .31433E-03
   5  Prefactor     .10000E-03    1.1223       -.28433E-06** at limit **
   6  Prefactor     .10000E-03    4.4255       -.12742E-05** at limit **
   7  Prefactor     .10000E-03    12.531        .22166E-05** at limit **
   8  Prefactor     7.0092        18.852       -.10658E-05   -.21947E-04
   9  Prefactor     58.330        81.135       -.93014E-06    .38886E-05
  10  Prefactor     .10000E-03    3.0998        .14266E-06** at limit **
  11  norm          .10000E-03    3.4941       -.11429E-05** at limit **
  12  Prefactor     56.837        63.360       -.32721E-05    .11546E-04
  13  Prefactor     .10000E-03    9.9012       -.17248E-05** at limit **
  14  Prefactor     .10000E-03    4.5875       -.38900E-05** at limit **
  15  norm          12.703        6.2746       -.13463E-06   -.13847E-03
  16  norm          15.822        12.606        .95700E-07    .16092E-04
  17  norm          .10001E-03    2.1104        .22585E-05** at limit **
  18  norm          2.7585        4.3960       -.13019E-05   -.16227E-02
  19  Prefactor     3.2143        3.1326       -.15461E-06   -.71883E-03
  20  Prefactor     .10000E-03    5.6992        .22757E-05** at limit **
  21  Prefactor     55.314        47.043        .22031E-05   -.22035E-04
  22  Prefactor     8.9739        10.393       -.22690E-06   -.28145E-04
  23  Prefactor     38.099        72.654       -.56055E-04    .75729E-05
  24  Normalizat    1.5224        .19850        .34437E-05   -.39431E-03
  25  Prefactor     .50744        .23284       -.60931E-06   -.12517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.34346
  Prefactor  = 5.53541
  Prefactor  = 1.47282
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00922
  Prefactor  = 58.3299
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.8372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7025
  norm       = 15.8221
  norm       = 0.000100012
  norm       = 2.75851
  Prefactor  = 3.21432
  Prefactor  = 0.0001
  Prefactor  = 55.3137
  Prefactor  = 8.97392
  Prefactor  = 38.099
  Normalizat = 1.52244
  Prefactor  = 0.507444
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.237     FROM HESSE     STATUS=OK           427 CALLS     3315 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3435        3.0180        .89894E-04   -1.5204    
   3  Prefactor     5.5354        6.1471        .17075E-03   -1.5237    
   4  Prefactor     1.4728        1.4429        .88230E-04   -1.5465    
   5  Prefactor     .10000E-03    9.6711        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4356        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0092        18.831        .15152E-03   -1.5178    
   9  Prefactor     58.330        81.154        .52529E-04   -1.4179    
  10  Prefactor     .10000E-03    3.1136        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5451        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.837        63.326        .53210E-04   -1.4199    
  13  Prefactor     .10000E-03    9.9147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5897        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.703        6.2667        .11240E-03   -1.4995    
  16  norm          15.822        12.604        .10069E-03   -1.4912    
  17  norm          .10001E-03    4.1591        .20298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7585        4.0979        .18752E-03   -1.5376    
  19  Prefactor     3.2143        3.1193        .12861E-03   -1.5349    
  20  Prefactor     .10000E-03    5.7158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.314        47.034        .53935E-04   -1.4219    
  22  Prefactor     8.9739        10.393        .13380E-03   -1.5109    
  23  Prefactor     38.099        72.579        .64902E-04   -1.4473    
  24  Normalizat    1.5224        .22547        .21457E-03   -.77150    
  25  Prefactor     .50744        .26078        .41283E-03   -1.1164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92295e-09
Minuit parameter uncertainties:
  1  6.97849e-05
  2  3.01808
  3  6.14783
  4  1.44294
  5  0.000240989
  6  8.20436e-06
  7  1.23745e-05
  8  18.8471
  9  81.3087
  10  3.72373e-06
  11  1.66434e-05
  12  63.4012
  13  1.42013e-05
  14  1.09693e-06
  15  6.26699
  16  12.6058
  17  0.000437552
  18  4.09831
  19  3.11944
  20  5.4716e-06
  21  47.0661
  22  10.3953
  23  72.7478
  24  0.22562
  25  0.261393
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.724e-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:  5.074e-01  2.614e-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.522e+00  2.256e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36469/likelihoodResults_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.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) = 6123.23823857
delta logL = -0.00151173187351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6123.23672784
delta logL = -1.00063334685e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9992       1.0000          .0000       10.000    
     3 'Normalizat'    1.5225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50737       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=   6123.237     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    27.499        .13874E-02** at limit **
   2  Index         1.9482        8.7620        .50000        .57178E-04
   3  Normalizat    1.5224        .12899E-01    .21456E-03    .22254E-05
   4  Prefactor     .50744        .15167E-01    .41284E-03   -.23903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101104
  Index      = 1.94817
  Normalizat = 1.52244
  Prefactor  = 0.507439
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.237     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    116.94        .27748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9482        8.5422        .50000       -.65652    
   3  Normalizat    1.5224        .27444E-01    .85826E-05   -.77150    
   4  Prefactor     .50744        .32266E-01    .16513E-04   -1.1164    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62032e-08
Minuit parameter uncertainties:
  1  0.0227723
  2  242.536
  3  0.027444
  4  0.0322669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36469': 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) = 6123.23672568
delta logL = 1.15312832349e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.011e-04  2.277e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.948e+00  2.425e+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.074e-01  3.227e-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.522e+00  2.744e-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/36469/cmap_HighResolution_463276801_463536001_4FGL_J1257.2+3646_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-06 11:55:07.796645', job_id='36469', GAL2='0.51', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1630954507.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='1.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='864' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 36469: <4FGL_J1257.2+3646_daily_bin864> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin864> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:41:05 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:41:07 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:41:07 2021
Terminated at Mon Sep  6 11:55:08 2021
Results reported at Mon Sep  6 11:55:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin864 194.31 36.7706 463276801 463536001 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 :                                   709.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

