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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin219
RA = 194.31, Dec = 36.7706
tmin = 296092801, tmax = 296352001
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='32032', job_status='RUN', time_executed='2021-09-06 11:29:37.469765', time_epoch_executed='1630952977.47' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32032/ft1_4FGL_J1257.2+3646_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32032/ft2_4FGL_J1257.2+3646_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32032/ft1_4FGL_J1257.2+3646_daily_bin219.fits outfile=/scratch/kocevski/32032/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin219.fits ra=194.31 dec=36.7706 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.39
user 2.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32032/ft1_filtered_4FGL_J1257.2+3646_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/32032/ft2_4FGL_J1257.2+3646_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/32032/ltcube_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.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/32032/ft2_4FGL_J1257.2+3646_daily_bin219.fits
.....................!
real 11.92
user 11.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32032/ft1_filtered_4FGL_J1257.2+3646_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/32032/ft2_4FGL_J1257.2+3646_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/32032/ltcube_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.fits outfile=/scratch/kocevski/32032/expmap_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.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/32032/ltcube_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.fits
.....................!
real 190.87
user 185.43
sys 5.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/32032/ft1_filtered_4FGL_J1257.2+3646_daily_bin219.fits scfile=/scratch/kocevski/32032/ft2_4FGL_J1257.2+3646_daily_bin219.fits outfile=/scratch/kocevski/32032/cmap_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32032/ft1_filtered_4FGL_J1257.2+3646_daily_bin219.fits scfile=/scratch/kocevski/32032/ft2_4FGL_J1257.2+3646_daily_bin219.fits outfile=/scratch/kocevski/32032/cmap_HighResolution_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.369       1.0000         .10000E-03   10000.    
     2 'norm      '    .96488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.363       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48957E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1958       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.862       1.0000         .10000E-03   10000.    
    15 'norm      '    .47778E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    14.714       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.6910       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71314       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1491       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.891       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90857       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91984       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=   5751.898     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2941 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.363        29.343       -.79449E-07   -.23817E-04
   2  norm          .96539        2.8564        .13632E-05    .45187E-03
   3  Prefactor     .10000E-03    3.0691        .45071E-07** at limit **
   4  Prefactor     3.9019        2.5037       -.28631E-06   -.25027E-03
   5  Prefactor     5.7193        2.6638       -.81098E-07   -.21329E-03
   6  Prefactor     12.363        8.7322       -.32744E-08   -.38363E-04
   7  Prefactor     .10000E-03    54.585        .10008E-05** at limit **
   8  Prefactor     .10000E-03    93.393       -.36804E-05** at limit **
   9  Prefactor     58.536        65.619       -.32834E-06    .18824E-04
  10  Prefactor     .10000E-03    11.332        .13388E-06** at limit **
  11  norm          1.1913        2.6827        .68683E-06    .35934E-03
  12  Prefactor     38.815        61.393        .40164E-06   -.24172E-04
  13  Prefactor     .10000E-03    7.4490        .83389E-07** at limit **
  14  Prefactor     17.855        16.327       -.10103E-05    .37010E-04
  15  norm          .10139E-03    3.2280       -.16686E-05** at limit **
  16  norm          14.714        12.831        .41263E-07   -.12401E-05
  17  norm          .10000E-03    2.1630       -.25659E-07** at limit **
  18  norm          9.6920        5.5621       -.80529E-07   -.27773E-04
  19  Prefactor     .71415        1.4121        .71014E-06    .19121E-02
  20  Prefactor     7.1492        8.0673       -.15849E-06   -.39431E-04
  21  Prefactor     .10000E-03    14.729        .28792E-07** at limit **
  22  Prefactor     .10000E-03    8.3811        .13609E-06** at limit **
  23  Prefactor     24.864        42.582       -.39741E-06   -.70982E-04
  24  Normalizat    .90865        .16442        .67127E-06   -.10808E-03
  25  Prefactor     .91976        .20483       -.17107E-05   -.29268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3635
  norm       = 0.965387
  Prefactor  = 0.0001
  Prefactor  = 3.90195
  Prefactor  = 5.71932
  Prefactor  = 12.3627
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 58.5362
  Prefactor  = 0.0001
  norm       = 1.19128
  Prefactor  = 38.8151
  Prefactor  = 0.0001
  Prefactor  = 17.8554
  norm       = 0.000101389
  norm       = 14.7136
  norm       = 0.0001
  norm       = 9.69201
  Prefactor  = 0.714148
  Prefactor  = 7.14921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8639
  Normalizat = 0.908652
  Prefactor  = 0.919755
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.898     FROM HESSE     STATUS=OK           445 CALLS     3386 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.363        29.349        .11390E-03   -1.5005    
   2  norm          .96539        2.7421        .18464E-03   -1.5511    
   3  Prefactor     .10000E-03    3.1178        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9019        2.4565        .82433E-04   -1.5313    
   5  Prefactor     5.7193        2.6543        .80129E-04   -1.5230    
   6  Prefactor     12.363        8.7303        .11393E-03   -1.5005    
   7  Prefactor     .10000E-03    55.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    95.021        .38463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.536        65.582        .52444E-04   -1.4176    
  10  Prefactor     .10000E-03    11.693        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1913        2.5988        .17740E-03   -1.5490    
  12  Prefactor     38.815        61.648        .64319E-04   -1.4461    
  13  Prefactor     .10000E-03    7.4556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.855        16.216        .94766E-04   -1.4863    
  15  norm          .10139E-03    3.1479        .41872E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.714        12.827        .10442E-03   -1.4941    
  17  norm          .10000E-03    2.1930        .21611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.6920        5.5235        .12873E-03   -1.5085    
  19  Prefactor     .71415        1.2594        .13909E-02   -1.5539    
  20  Prefactor     7.1492        8.0330        .15002E-03   -1.5173    
  21  Prefactor     .10000E-03    14.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.864        42.724        .80291E-04   -1.4710    
  24  Normalizat    .90865        .19082        .22296E-03   -.96157    
  25  Prefactor     .91976        .23373        .28047E-03   -.95454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93289e-09
Minuit parameter uncertainties:
  1  29.3833
  2  2.74242
  3  2.87716e-06
  4  2.4566
  5  2.65436
  6  8.73115
  7  0.000589699
  8  0.00117788
  9  65.6635
  10  0.000102028
  11  2.59904
  12  61.7492
  13  9.54509e-06
  14  16.22
  15  0.0041824
  16  12.8297
  17  1.17401e-06
  18  5.52376
  19  1.25941
  20  8.03425
  21  1.60352e-05
  22  1.45834e-05
  23  42.7767
  24  0.190964
  25  0.233982
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.020e-04  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:  9.198e-01  2.340e-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:  9.087e-01  1.910e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32032/likelihoodResults_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.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) = 5751.89875105
delta logL = -0.000406249964726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5751.89834145
delta logL = 3.34403739544e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59138E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1558       1.0000          .0000       10.000    
     3 'Normalizat'    .90877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5751.076     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      299 TOTAL
                     EDM=   .25E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11637E-01    .25520        .50043E-06   -.80723E-04
   2  Index         4.8912        3.1991       -.33262E-04   -.11505E-05
   3  Normalizat    .83581        .18811       -.31645E-06    .11356E-05
   4  Prefactor     .97733        .23455       -.13931E-05   -.13571E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0116371
  Index      = 4.8912
  Normalizat = 0.835811
  Prefactor  = 0.977332
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.076     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      334 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11637E-01    .13917        .15359E-02   -1.5686    
   2  Index         4.8912        1.8596        .10186       -.21762E-01
   3  Normalizat    .83581        .33310E-01    .45014E-01   -.98754    
   4  Prefactor     .97733        .42377E-01    .45254E-01   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19796e-11
Minuit parameter uncertainties:
  1  0.0801409
  2  1.90543
  3  0.0333109
  4  0.0423783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32032': 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) = 5751.07643742
delta logL = 0.821907377457

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.164e-02  8.014e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  4.891e+00  1.905e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.773e-01  4.238e-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:  8.358e-01  3.331e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 194.310 36.771
Photon Index (Free Index): 4.89 +/- 1.91
Photon Flux (Free Index): 5.36e-08 +/- 9.55e-08
Energy Flux (Free Index): 7.20e-06 +/- 1.41e-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/32032/cmap_HighResolution_296092801_296352001_4FGL_J1257.2+3646_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', comment='SUCCESS', energy_flux2='7.20e-06', dlogl='8.22e-01', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-09-06 11:41:25.437119', photon_index_error2='1.91', photon_index2='4.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='5.94e-08', energy_flux_error2='1.41e-05', EG='0.91', time_epoch_completed='1630953685.44', return_code='0', job_id='32032', GAL2='0.98', EG2='0.84', return_code2='102', photon_flux_error2='9.55e-08', ts2='1.79', photon_index='2.03' WHERE bin_id='219' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 32032: <4FGL_J1257.2+3646_daily_bin219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin219 194.31 36.7706 296092801 296352001 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 :                                   704.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

