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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin214
RA = 194.31, Dec = 36.7706
tmin = 294796801, tmax = 295056001
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='32020', job_status='RUN', time_executed='2021-09-06 11:29:34.964810', time_epoch_executed='1630952974.96' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32020/ft1_4FGL_J1257.2+3646_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32020/ft2_4FGL_J1257.2+3646_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32020/ft1_4FGL_J1257.2+3646_daily_bin214.fits outfile=/scratch/kocevski/32020/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin214.fits ra=194.31 dec=36.7706 rad=12.0 tmin=294796801.0 tmax=295056001.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.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32020/ft1_filtered_4FGL_J1257.2+3646_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/32020/ft2_4FGL_J1257.2+3646_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/32020/ltcube_294796801_295056001_4FGL_J1257.2+3646_daily_bin214.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/32020/ft2_4FGL_J1257.2+3646_daily_bin214.fits
.....................!
real 12.51
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32020/ft1_filtered_4FGL_J1257.2+3646_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/32020/ft2_4FGL_J1257.2+3646_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/32020/ltcube_294796801_295056001_4FGL_J1257.2+3646_daily_bin214.fits outfile=/scratch/kocevski/32020/expmap_294796801_295056001_4FGL_J1257.2+3646_daily_bin214.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/32020/ltcube_294796801_295056001_4FGL_J1257.2+3646_daily_bin214.fits
.....................!
real 190.81
user 185.07
sys 5.29

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/32020/ft1_filtered_4FGL_J1257.2+3646_daily_bin214.fits scfile=/scratch/kocevski/32020/ft2_4FGL_J1257.2+3646_daily_bin214.fits outfile=/scratch/kocevski/32020/cmap_294796801_295056001_4FGL_J1257.2+3646_daily_bin214.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.756       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3224       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.275       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6088       1.0000         .10000E-03   10000.    
    11 'norm      '    .28946       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3215       1.0000         .10000E-03   10000.    
    16 'norm      '    10.745       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2882       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1820       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1497       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8260       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.303       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85090       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1623       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=   5810.371     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2916 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.755        32.334       -.74080E-06    .31271E-05
   2  norm          3.3224        2.3227        .24447E-06    .17075E-02
   3  Prefactor     .10000E-03    1.8380       -.31657E-07** at limit **
   4  Prefactor     2.9948        2.0661       -.56333E-07    .10911E-03
   5  Prefactor     7.8124        3.5428        .27113E-07   -.97317E-04
   6  Prefactor     15.384        11.959       -.89585E-07    .11463E-04
   7  Prefactor     23.275        28.853       -.25954E-06   -.74932E-07
   8  Prefactor     .10000E-03    26.409        .62406E-06** at limit **
   9  Prefactor     .10000E-03    129.10        .23263E-06** at limit **
  10  Prefactor     5.6090        4.9653        .15937E-05   -.10949E-03
  11  norm          .28901        2.5063       -.14878E-05    .75127E-03
  12  Prefactor     .10000E-03    20.242       -.28272E-05** at limit **
  13  Prefactor     3.4130        14.669       -.16243E-05    .29271E-04
  14  Prefactor     .10000E-03    6.7378        .38599E-07** at limit **
  15  norm          3.3204        4.4649       -.91913E-06   -.20030E-03
  16  norm          10.744        12.032       -.76919E-06   -.49450E-03
  17  norm          4.2886        2.9321        .18904E-06    .37982E-03
  18  norm          .10000E-03    2.3944        .23252E-08** at limit **
  19  Prefactor     1.1830        2.4053        .10819E-06   -.28291E-03
  20  Prefactor     1.1470        21.774       -.40337E-05   -.39545E-03
  21  Prefactor     .10000E-03    19.163        .22120E-05** at limit **
  22  Prefactor     9.8269        12.437       -.11923E-06    .77914E-05
  23  Prefactor     26.290        44.442       -.12994E-04    .11459E-03
  24  Normalizat    .85077        .16842        .12252E-05    .19016E-03
  25  Prefactor     1.1625        .20935        .82078E-07    .18568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7553
  norm       = 3.32239
  Prefactor  = 0.0001
  Prefactor  = 2.99478
  Prefactor  = 7.81237
  Prefactor  = 15.3843
  Prefactor  = 23.2749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.60899
  norm       = 0.289014
  Prefactor  = 0.0001
  Prefactor  = 3.41304
  Prefactor  = 0.0001
  norm       = 3.32037
  norm       = 10.7443
  norm       = 4.28857
  norm       = 0.0001
  Prefactor  = 1.18297
  Prefactor  = 1.14696
  Prefactor  = 0.0001
  Prefactor  = 9.82687
  Prefactor  = 26.2902
  Normalizat = 0.850771
  Prefactor  = 1.1625
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.371     FROM HESSE     STATUS=OK           433 CALLS     3349 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.755        32.369        .83968E-04   -1.4754    
   2  norm          3.3224        2.3574        .47010E-03   -1.5343    
   3  Prefactor     .10000E-03    1.8411        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9948        2.0684        .86574E-04   -1.5362    
   5  Prefactor     7.8124        3.5384        .88867E-04   -1.5149    
   6  Prefactor     15.384        11.956        .10211E-03   -1.4923    
   7  Prefactor     23.275        28.865        .83028E-04   -1.4743    
   8  Prefactor     .10000E-03    26.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    129.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6090        4.9342        .15336E-03   -1.5234    
  11  norm          .28901        9.5488        .21975E-02   -1.5600    
  12  Prefactor     .10000E-03    20.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4130        14.771        .21899E-03   -1.5338    
  14  Prefactor     .10000E-03    6.7504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3204        4.4524        .17797E-03   -1.5344    
  16  norm          10.744        12.198        .61114E-03   -1.5052    
  17  norm          4.2886        2.9249        .10275E-03   -1.5294    
  18  norm          .10000E-03    2.3990        .11505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1830        2.2972        .15414E-03   -1.5490    
  20  Prefactor     1.1470        23.868        .43176E-03   -1.5494    
  21  Prefactor     .10000E-03    19.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.8269        12.432        .12784E-03   -1.5081    
  23  Prefactor     26.290        43.058        .78110E-04   -1.4682    
  24  Normalizat    .85077        .19808        .24566E-03   -.98212    
  25  Prefactor     1.1625        .24692        .27329E-03   -.87493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11612e-09
Minuit parameter uncertainties:
  1  32.3943
  2  2.35744
  3  7.40987e-07
  4  2.06845
  5  3.5385
  6  11.9583
  7  28.8826
  8  0.000119451
  9  0.000205302
  10  4.93456
  11  3.3225
  12  7.24774e-05
  13  14.2063
  14  3.8534e-07
  15  4.4528
  16  12.2011
  17  2.92498
  18  8.23908e-07
  19  2.29735
  20  10.4687
  21  4.34464e-05
  22  12.4355
  23  43.1091
  24  0.198251
  25  0.247167
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.609e+00  4.935e+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.162e+00  2.472e-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:  8.508e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.02
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.21e-05

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) = 5809.86303042
delta logL = 0.50809243556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.86002859
delta logL = 0.511094267581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9288       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3866       1.0000          .0000       10.000    
     3 'Normalizat'    .86167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1597       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=   5809.860     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 65.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9285        4.7301       -.13164E-05    .19838E-02
   2  Index         1.3864        .38691        .65247E-05    .39613E-03
   3  Normalizat    .86158        .16219       -.26356E-06   -.16068E-03
   4  Prefactor     1.1598        .20844        .14043E-06   -.12055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9285
  Index      = 1.38637
  Normalizat = 0.861577
  Prefactor  = 1.15981
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.860     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9285        6.3604        .16492E-03   -1.5221    
   2  Index         1.3864        .63226        .10157E-01   -.80774    
   3  Normalizat    .86158        .19139        .24423E-03   -.97824    
   4  Prefactor     1.1598        .24607        .27360E-03   -.87577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13057e-08
Minuit parameter uncertainties:
  1  6.36111
  2  0.635843
  3  0.191539
  4  0.246308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32020': 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) = 5809.8600284
delta logL = 0.511094460226

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.929e+00  6.361e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.386e+00  6.358e-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.160e+00  2.463e-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:  8.616e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.04
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.39 +/- 0.64
Photon Flux (Free Index): 8.44e-09 +/- 1.19e-08
Energy Flux (Free Index): 3.90e-05 +/- 5.65e-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/32020/cmap_HighResolution_294796801_295056001_4FGL_J1257.2+3646_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='3.90e-05', photon_flux_error='1.87e-08', dlogl='5.11e-01', energy_flux='1.38e-05', photon_flux2='8.44e-09', job_status='DONE', time_completed='2021-09-06 11:40:02.562899', photon_index_error2='0.64', photon_index2='1.39', ts='7.02', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='5.65e-05', EG='0.85', time_epoch_completed='1630953602.56', return_code='0', job_id='32020', GAL2='1.16', EG2='0.86', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='1.19e-08', ts2='8.04', photon_index='2.03' WHERE bin_id='214' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 32020: <4FGL_J1257.2+3646_daily_bin214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin214 194.31 36.7706 294796801 295056001 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 :                                   623.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

