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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin258
RA = 194.31, Dec = 36.7706
tmin = 306201601, tmax = 306460801
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='32808', job_status='RUN', time_executed='2021-09-06 11:34:05.605228', time_epoch_executed='1630953245.61' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32808/ft1_4FGL_J1257.2+3646_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32808/ft2_4FGL_J1257.2+3646_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32808/ft1_4FGL_J1257.2+3646_daily_bin258.fits outfile=/scratch/kocevski/32808/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin258.fits ra=194.31 dec=36.7706 rad=12.0 tmin=306201601.0 tmax=306460801.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32808/ft1_filtered_4FGL_J1257.2+3646_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/32808/ft2_4FGL_J1257.2+3646_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/32808/ltcube_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.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/32808/ft2_4FGL_J1257.2+3646_daily_bin258.fits
.....................!
real 12.03
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32808/ft1_filtered_4FGL_J1257.2+3646_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/32808/ft2_4FGL_J1257.2+3646_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/32808/ltcube_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.fits outfile=/scratch/kocevski/32808/expmap_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.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/32808/ltcube_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.fits
.....................!
real 189.80
user 185.32
sys 4.07

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/32808/ft1_filtered_4FGL_J1257.2+3646_daily_bin258.fits scfile=/scratch/kocevski/32808/ft2_4FGL_J1257.2+3646_daily_bin258.fits outfile=/scratch/kocevski/32808/cmap_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32808/ft1_filtered_4FGL_J1257.2+3646_daily_bin258.fits scfile=/scratch/kocevski/32808/ft2_4FGL_J1257.2+3646_daily_bin258.fits outfile=/scratch/kocevski/32808/cmap_HighResolution_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2715       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12954E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7282       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    173.38       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3491       1.0000         .10000E-03   10000.    
    11 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3013       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9393       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2423       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9117       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.032       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.311       1.0000         .10000E-03   10000.    
    23 'Prefactor '    120.43       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71116       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2159       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=   6007.091     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2879 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.509        .58176E-06** at limit **
   2  norm          2.2715        3.0269       -.11555E-06   -.28143E-03
   3  Prefactor     .10000E-03    12.511       -.12731E-05** at limit **
   4  Prefactor     3.7279        2.6147        .10534E-06    .14011E-03
   5  Prefactor     6.4436        2.9115        .58913E-08    .78893E-04
   6  Prefactor     8.6417        8.0807       -.16403E-07    .60402E-05
   7  Prefactor     .10000E-03    9.3144        .31874E-06** at limit **
   8  Prefactor     10.458        16.207       -.56839E-06   -.24921E-04
   9  Prefactor     173.39        87.986        .10946E-05    .13330E-03
  10  Prefactor     7.3488        6.6307        .69202E-06   -.44761E-03
  11  norm          .10000E-03    4.6750       -.11998E-07** at limit **
  12  Prefactor     15.037        31.797       -.84150E-06   -.22509E-04
  13  Prefactor     .10000E-03    22.707       -.25071E-05** at limit **
  14  Prefactor     6.3016        10.373        .85501E-06   -.24453E-03
  15  norm          2.9390        3.9368       -.46939E-06   -.10246E-03
  16  norm          4.2414        8.8555        .32776E-05   -.51438E-03
  17  norm          2.9125        4.7981       -.25379E-06   -.19514E-03
  18  norm          .10000E-03    3.5555       -.80431E-07** at limit **
  19  Prefactor     5.3350        5.3670        .28575E-05   -.13748E-02
  20  Prefactor     20.033        25.864       -.38966E-05    .19876E-04
  21  Prefactor     .10000E-03    19.283        .26688E-05** at limit **
  22  Prefactor     33.312        23.051        .23872E-06    .16201E-04
  23  Prefactor     120.38        73.754       -.84438E-05   -.63830E-03
  24  Normalizat    .71098        .17389        .63931E-06   -.24349E-04
  25  Prefactor     1.2162        .21216       -.79014E-06    .69526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.27146
  Prefactor  = 0.000100001
  Prefactor  = 3.72792
  Prefactor  = 6.4436
  Prefactor  = 8.64165
  Prefactor  = 0.0001
  Prefactor  = 10.4579
  Prefactor  = 173.388
  Prefactor  = 7.34884
  norm       = 0.0001
  Prefactor  = 15.0367
  Prefactor  = 0.000100003
  Prefactor  = 6.30161
  norm       = 2.93904
  norm       = 4.24143
  norm       = 2.91247
  norm       = 0.0001
  Prefactor  = 5.33502
  Prefactor  = 20.0333
  Prefactor  = 0.000100003
  Prefactor  = 33.3116
  Prefactor  = 120.383
  Normalizat = 0.71098
  Prefactor  = 1.21622
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.091     FROM HESSE     STATUS=OK           433 CALLS     3312 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2715        3.0294        .13649E-03   -1.5407    
   3  Prefactor     .10000E-03    13.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7279        2.6257        .92332E-04   -1.5322    
   5  Prefactor     6.4436        2.9083        .84900E-04   -1.5200    
   6  Prefactor     8.6417        8.0798        .13636E-03   -1.5120    
   7  Prefactor     .10000E-03    9.3215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.458        16.201        .12389E-03   -1.5061    
   9  Prefactor     173.39        88.107        .15322E-03   -1.3067    
  10  Prefactor     7.3488        6.6411        .73976E-03   -1.5166    
  11  norm          .10000E-03    4.7669        .16323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.037        31.803        .10329E-03   -1.4932    
  13  Prefactor     .10000E-03    22.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3016        10.368        .79953E-03   -1.5206    
  15  norm          2.9390        3.9241        .17062E-03   -1.5365    
  16  norm          4.2414        9.0031        .97815E-03   -1.5296    
  17  norm          2.9125        4.7250        .18852E-03   -1.5367    
  18  norm          .10000E-03    3.5646        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3350        5.5735        .69581E-03   -1.5246    
  20  Prefactor     20.033        26.137        .89489E-04   -1.4812    
  21  Prefactor     .10000E-03    19.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.312        23.064        .69429E-04   -1.4553    
  23  Prefactor     120.38        79.631        .18336E-03   -1.3509    
  24  Normalizat    .71098        .20850        .27593E-03   -1.0346    
  25  Prefactor     1.2162        .25470        .27131E-03   -.85834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42677e-09
Minuit parameter uncertainties:
  1  7.80313e-05
  2  3.02958
  3  0.000194381
  4  2.62577
  5  2.9084
  6  8.08077
  7  3.36266e-05
  8  16.208
  9  88.1742
  10  6.64176
  11  1.83278e-05
  12  31.8392
  13  0.000491345
  14  10.3712
  15  3.92444
  16  9.00595
  17  4.72557
  18  1.52125e-06
  19  5.57402
  20  26.1519
  21  0.000480414
  22  23.0704
  23  79.7021
  24  0.208736
  25  0.254954
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.349e+00  6.642e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.216e+00  2.550e-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:  7.110e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/32808/likelihoodResults_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.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): 0
logL (Free Index) = 6007.05861938
delta logL = 0.0327496055052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6007.05842322
delta logL = 0.0329457600556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2942       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1703       1.0000          .0000       10.000    
     3 'Normalizat'    .70684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2191       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6007.058     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      307 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2972        7.5921        .79455E-03    .14500E-03
   2  Index         2.1708        .61469        .65831E-02    .41679E-03
   3  Normalizat    .70683        .20090        .27666E-03    .41093E-07
   4  Prefactor     1.2190        .25254        .27104E-03    .53690E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.29721
  Index      = 2.17078
  Normalizat = 0.706834
  Prefactor  = 1.21898
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.058     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2972        7.1082        .15891E-03   -1.5206    
   2  Index         2.1708        .57571        .13166E-02   -.60146    
   3  Normalizat    .70683        .20085        .11066E-04   -1.0362    
   4  Prefactor     1.2190        .25252        .27104E-03   -.85749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87894e-12
Minuit parameter uncertainties:
  1  7.10918
  2  0.577597
  3  0.201062
  4  0.252775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32808': 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) = 6007.05842193
delta logL = 0.0329470499237

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.297e+00  7.109e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.171e+00  5.776e-01  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.528e-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:  7.068e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.17 +/- 0.58
Photon Flux (Free Index): 3.20e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.63e-05

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/32808/cmap_HighResolution_306201601_306460801_4FGL_J1257.2+3646_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='1.52e-05', photon_flux_error='2.52e-08', dlogl='3.29e-02', energy_flux='1.80e-05', photon_flux2='3.20e-08', job_status='DONE', time_completed='2021-09-06 11:45:44.465082', photon_index_error2='0.58', photon_index2='2.17', ts='2.70', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='8.61e-08', energy_flux_error2='1.63e-05', EG='0.71', time_epoch_completed='1630953944.47', return_code='0', job_id='32808', GAL2='1.22', EG2='0.71', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.08e-08', ts2='2.77', photon_index='2.03' WHERE bin_id='258' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 32808: <4FGL_J1257.2+3646_daily_bin258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin258 194.31 36.7706 306201601 306460801 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

