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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin817
RA = 194.31, Dec = 36.7706
tmin = 451094401, tmax = 451353601
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='36401', job_status='RUN', time_executed='2021-09-06 11:45:01.606723', time_epoch_executed='1630953901.61' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36401

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36401/ft1_4FGL_J1257.2+3646_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36401/ft2_4FGL_J1257.2+3646_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36401/ft1_4FGL_J1257.2+3646_daily_bin817.fits outfile=/scratch/kocevski/36401/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin817.fits ra=194.31 dec=36.7706 rad=12.0 tmin=451094401.0 tmax=451353601.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.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36401/ft2_4FGL_J1257.2+3646_daily_bin817.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/36401/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin817.fits evtable="EVENTS" outfile="/scratch/kocevski/36401/ft1_filtered_4FGL_J1257.2+3646_daily_bin817.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36401/ft1_filtered_4FGL_J1257.2+3646_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/36401/ft2_4FGL_J1257.2+3646_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/36401/ltcube_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.fits outfile=/scratch/kocevski/36401/expmap_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.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/36401/ltcube_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.fits
.....................!
real 191.74
user 185.78
sys 5.53

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/36401/ft1_filtered_4FGL_J1257.2+3646_daily_bin817.fits scfile=/scratch/kocevski/36401/ft2_4FGL_J1257.2+3646_daily_bin817.fits outfile=/scratch/kocevski/36401/cmap_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.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.83
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36401/ft1_filtered_4FGL_J1257.2+3646_daily_bin817.fits scfile=/scratch/kocevski/36401/ft2_4FGL_J1257.2+3646_daily_bin817.fits outfile=/scratch/kocevski/36401/cmap_HighResolution_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.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.98
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7980       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33928       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5382       1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.988       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11769E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .80337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3291       1.0000         .10000E-03   10000.    
    16 'norm      '    10.279       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3662       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9964       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25558E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.978       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87693       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=   5992.435     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2930 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.922       -.22084E-06** at limit **
   2  norm          7.7995        3.3909        .60835E-07   -.49974E-03
   3  Prefactor     10.109        6.7681        .35437E-07   -.56424E-04
   4  Prefactor     .10000E-03    1.3476       -.11804E-06** at limit **
   5  Prefactor     .34252        1.9754       -.25806E-06   -.37632E-03
   6  Prefactor     1.1226        21.849        .53357E-05   -.16393E-03
   7  Prefactor     59.084        32.919        .82946E-07   -.14385E-04
   8  Prefactor     3.5508        14.544        .47813E-06   -.37442E-04
   9  Prefactor     62.004        57.615       -.19760E-05   -.97176E-04
  10  Prefactor     .10000E-03    12.771        .49030E-06** at limit **
  11  norm          .79471        7.3659        .46909E-05   -.35700E-05
  12  Prefactor     .10000E-03    24.602       -.86647E-07** at limit **
  13  Prefactor     2.1695        88.194       -.15257E-04   -.39343E-04
  14  Prefactor     .10000E-03    13.509        .28685E-06** at limit **
  15  norm          8.3328        5.3753        .26559E-06   -.15376E-03
  16  norm          10.278        10.537        .61676E-07   -.12259E-04
  17  norm          6.3648        5.6456        .13605E-06   -.27422E-03
  18  norm          4.9992        7.2025        .18988E-06   -.99856E-04
  19  Prefactor     7.0383        3.8928        .22183E-06   -.24774E-03
  20  Prefactor     .10000E-03    12.611       -.14737E-06** at limit **
  21  Prefactor     .10000E-03    45.639        .84992E-07** at limit **
  22  Prefactor     10.012        10.705        .28645E-07   -.13657E-04
  23  Prefactor     23.825        63.484        .77073E-06    .10175E-03
  24  Normalizat    .91867        .16478        .87004E-07   -.10588E-03
  25  Prefactor     .87759        .19921       -.50020E-06   -.25536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.79946
  Prefactor  = 10.1091
  Prefactor  = 0.0001
  Prefactor  = 0.342523
  Prefactor  = 1.12257
  Prefactor  = 59.0838
  Prefactor  = 3.55082
  Prefactor  = 62.0039
  Prefactor  = 0.0001
  norm       = 0.794711
  Prefactor  = 0.0001
  Prefactor  = 2.16949
  Prefactor  = 0.0001
  norm       = 8.33278
  norm       = 10.2778
  norm       = 6.3648
  norm       = 4.99917
  Prefactor  = 7.03825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0123
  Prefactor  = 23.8253
  Normalizat = 0.918672
  Prefactor  = 0.877592
 **********
 **   18 **HESSE 
 **********

 FCN=   5992.435     FROM HESSE     STATUS=OK           435 CALLS     3365 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7995        3.3188        .86696E-04   -1.5149    
   3  Prefactor     10.109        6.7765        .12602E-03   -1.5072    
   4  Prefactor     .10000E-03    1.3703        .17452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34252        3.2599        .19009E-02   -1.5591    
   6  Prefactor     1.1226        22.226        .22080E-02   -1.5496    
   7  Prefactor     59.084        32.954        .52194E-04   -1.4169    
   8  Prefactor     3.5508        14.436        .21490E-03   -1.5331    
   9  Prefactor     62.004        57.384        .50965E-04   -1.4131    
  10  Prefactor     .10000E-03    13.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79471        7.6150        .35168E-03   -1.5530    
  12  Prefactor     .10000E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1695        92.514        .28610E-03   -1.5413    
  14  Prefactor     .10000E-03    13.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3328        5.3592        .13590E-03   -1.5131    
  16  norm          10.278        10.538        .12498E-03   -1.5067    
  17  norm          6.3648        5.7166        .12028E-03   -1.5203    
  18  norm          4.9992        7.3533        .89954E-03   -1.5261    
  19  Prefactor     7.0383        3.8892        .51349E-03   -1.5177    
  20  Prefactor     .10000E-03    12.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    45.890        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.012        10.710        .12664E-03   -1.5075    
  23  Prefactor     23.825        62.993        .81804E-04   -1.4731    
  24  Normalizat    .91867        .19491        .22488E-03   -.95807    
  25  Prefactor     .87759        .23316        .28834E-03   -.96929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94349e-10
Minuit parameter uncertainties:
  1  2.65592e-05
  2  3.31887
  3  6.77705
  4  8.21327e-07
  5  2.11322
  6  9.99388
  7  32.9641
  8  14.3251
  9  57.4349
  10  3.69144e-05
  11  4.92055
  12  7.44946e-05
  13  28.3806
  14  1.11671e-05
  15  5.35956
  16  10.5397
  17  5.71708
  18  7.35467
  19  3.88937
  20  1.12049e-05
  21  8.40256e-05
  22  10.7122
  23  63.1701
  24  0.195063
  25  0.233428
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.691e-05  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:  8.776e-01  2.334e-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.187e-01  1.951e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36401/likelihoodResults_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.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) = 5992.43567368
delta logL = -0.000360264069059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5992.4352531
delta logL = 6.03196658631e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20850E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1683       1.0000          .0000       10.000    
     3 'Normalizat'    .91898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87718       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=   5990.126     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      259 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93350E-01    .72887        .27695E-02   -.19133E-03
   2  Index         4.3118        1.8223        .67760E-01    .13280E-03
   3  Normalizat    .79211        .46947E-01    .45144E-01   -.50161E-04
   4  Prefactor     .97326        .58834E-01    .44714E-01   -.42497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0933502
  Index      = 4.31177
  Normalizat = 0.79211
  Prefactor  = 0.973256
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.126     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93350E-01    1.3518        .12438E-04   -1.5647    
   2  Index         4.3118        2.7079        .27430E-02   -.13809    
   3  Normalizat    .79211        .16832        .23984E-03   -1.0036    
   4  Prefactor     .97326        .20867        .27494E-03   -.93626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64067e-10
Minuit parameter uncertainties:
  1  0.710101
  2  2.86512
  3  0.16843
  4  0.208843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36401': 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) = 5990.12602872
delta logL = 2.30928470119

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.335e-02  7.101e-01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  4.312e+00  2.865e+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.733e-01  2.088e-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.921e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 194.310 36.771
Photon Index (Free Index): 4.31 +/- 2.87
Photon Flux (Free Index): 9.17e-08 +/- 4.99e-08
Energy Flux (Free Index): 1.31e-05 +/- 8.82e-06

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/36401/cmap_HighResolution_451094401_451353601_4FGL_J1257.2+3646_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='2.31e+00', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-09-06 11:57:15.814829', photon_index_error2='2.87', photon_index2='4.31', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.21e-08', energy_flux_error2='8.82e-06', EG='0.92', time_epoch_completed='1630954635.81', return_code='0', job_id='36401', GAL2='0.97', EG2='0.79', return_code2='102', photon_flux_error2='4.99e-08', ts2='4.99', photon_index='2.03' WHERE bin_id='817' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 36401: <4FGL_J1257.2+3646_daily_bin817> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin817> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:59 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:41:01 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:01 2021
Terminated at Mon Sep  6 11:57:16 2021
Results reported at Mon Sep  6 11:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin817 194.31 36.7706 451094401 451353601 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 :                                   720.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

