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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin213
RA = 194.31, Dec = 36.7706
tmin = 294537601, tmax = 294796801
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='32019', job_status='RUN', time_executed='2021-09-06 11:29:09.823072', time_epoch_executed='1630952949.82' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32019/ft1_4FGL_J1257.2+3646_daily_bin213.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32019/ft2_4FGL_J1257.2+3646_daily_bin213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32019/ft1_4FGL_J1257.2+3646_daily_bin213.fits outfile=/scratch/kocevski/32019/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin213.fits ra=194.31 dec=36.7706 rad=12.0 tmin=294537601.0 tmax=294796801.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.36
user 2.16
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32019/ft1_filtered_4FGL_J1257.2+3646_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/32019/ft2_4FGL_J1257.2+3646_daily_bin213.fits sctable="SC_DATA" expcube=/scratch/kocevski/32019/ltcube_294537601_294796801_4FGL_J1257.2+3646_daily_bin213.fits outfile=/scratch/kocevski/32019/expmap_294537601_294796801_4FGL_J1257.2+3646_daily_bin213.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/32019/ltcube_294537601_294796801_4FGL_J1257.2+3646_daily_bin213.fits
.....................!
real 192.20
user 186.83
sys 4.27

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/32019/ft1_filtered_4FGL_J1257.2+3646_daily_bin213.fits scfile=/scratch/kocevski/32019/ft2_4FGL_J1257.2+3646_daily_bin213.fits outfile=/scratch/kocevski/32019/cmap_294537601_294796801_4FGL_J1257.2+3646_daily_bin213.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.74
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33849E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18941E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11662E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3151       1.0000         .10000E-03   10000.    
    11 'norm      '    .78788       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25501E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25486E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.4482       1.0000         .10000E-03   10000.    
    16 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.3571       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8704       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9481       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2073       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17467E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70716       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=   5805.291     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2935 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.443        .21216E-06** at limit **
   2  norm          2.6140        1.9820       -.60805E-08   -.11931E-05
   3  Prefactor     .10000E-03    4.2702       -.83242E-08** at limit **
   4  Prefactor     1.2123        1.0968       -.12025E-07    .78619E-05
   5  Prefactor     5.8315        2.5785       -.84422E-08    .27614E-05
   6  Prefactor     7.8417        7.2311        .57083E-07   -.41902E-05
   7  Prefactor     33.392        26.246        .23766E-05   -.63428E-04
   8  Prefactor     .10000E-03    18.792       -.10300E-06** at limit **
   9  Prefactor     .10000E-03    30.513        .10879E-06** at limit **
  10  Prefactor     6.3275        5.9862       -.84929E-07    .51445E-05
  11  norm          .78844        2.8496        .20316E-06   -.30183E-04
  12  Prefactor     42.704        44.082        .71789E-07   -.36525E-05
  13  Prefactor     .10000E-03    31.038        .39095E-06** at limit **
  14  Prefactor     .10000E-03    6.7945        .99243E-07** at limit **
  15  norm          9.4322        5.7367        .12772E-06   -.23214E-04
  16  norm          .10000E-03    4.4503       -.33278E-07** at limit **
  17  norm          9.3482        6.3152       -.14256E-05   -.12672E-05
  18  norm          3.8664        9.4056        .43179E-05    .33107E-04
  19  Prefactor     1.9514        3.1757        .59100E-06    .15345E-03
  20  Prefactor     .10000E-03    5.9489        .86927E-07** at limit **
  21  Prefactor     6.3035        116.25       -.11025E-04    .44084E-05
  22  Prefactor     .10000E-03    9.3866       -.58035E-07** at limit **
  23  Prefactor     .10000E-03    14.345        .11560E-06** at limit **
  24  Normalizat    1.0641        .16009        .77685E-06   -.19873E-04
  25  Prefactor     .70721        .19365       -.85918E-06    .12927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.61395
  Prefactor  = 0.0001
  Prefactor  = 1.21226
  Prefactor  = 5.83146
  Prefactor  = 7.84172
  Prefactor  = 33.3917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.3275
  norm       = 0.788445
  Prefactor  = 42.7036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.43219
  norm       = 0.0001
  norm       = 9.34816
  norm       = 3.86641
  Prefactor  = 1.95139
  Prefactor  = 0.0001
  Prefactor  = 6.30352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06405
  Prefactor  = 0.707209
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.291     FROM HESSE     STATUS=OK           431 CALLS     3366 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.480        .21338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6140        1.9804        .89921E-04   -1.5385    
   3  Prefactor     .10000E-03    4.3606        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2123        1.2086        .73343E-03   -1.5488    
   5  Prefactor     5.8315        2.5755        .77777E-04   -1.5225    
   6  Prefactor     7.8417        7.2298        .14303E-03   -1.5148    
   7  Prefactor     33.392        26.230        .69370E-04   -1.4552    
   8  Prefactor     .10000E-03    18.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3275        5.9787        .15973E-03   -1.5205    
  11  norm          .78844        2.7696        .23335E-03   -1.5530    
  12  Prefactor     42.704        44.088        .61257E-04   -1.4400    
  13  Prefactor     .10000E-03    31.342        .21457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8099        .19387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.4322        5.7182        .13038E-03   -1.5094    
  16  norm          .10000E-03    4.4531        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.3482        6.3204        .10139E-03   -1.5096    
  18  norm          3.8664        9.4193        .10256E-02   -1.5315    
  19  Prefactor     1.9514        3.1321        .15473E-03   -1.5429    
  20  Prefactor     .10000E-03    5.9667        .18136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3035        115.53        .16113E-03   -1.5206    
  22  Prefactor     .10000E-03    9.4354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0641        .18601        .20852E-03   -.90914    
  25  Prefactor     .70721        .22391        .30889E-03   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61591e-10
Minuit parameter uncertainties:
  1  8.78007e-06
  2  1.98044
  3  2.20128e-06
  4  1.20863
  5  2.57556
  6  7.23057
  7  26.2392
  8  1.42423e-05
  9  2.6732e-06
  10  5.9793
  11  2.77003
  12  44.1217
  13  1.14005e-06
  14  2.342e-06
  15  5.71857
  16  1.2737e-06
  17  6.32087
  18  9.42288
  19  3.13238
  20  8.00736e-06
  21  54.0943
  22  4.42685e-06
  23  1.73092e-06
  24  0.186121
  25  0.224195
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.327e+00  5.979e+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:  7.072e-01  2.242e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.064e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/32019/likelihoodResults_294537601_294796801_4FGL_J1257.2+3646_daily_bin213.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) = 5804.21858174
delta logL = 1.07277893973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5804.18753822
delta logL = 1.10382245892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95459       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3468       1.0000          .0000       10.000    
     3 'Normalizat'    .98821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76819       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=   5804.188     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94644        7.8263        .92162E-02    .59285E-03
   2  Index         3.3508        1.9987        .84176E-01    .18900E-03
   3  Normalizat    .98789        .45947E-01    .46019E-01    .69745E-05
   4  Prefactor     .76863        .55287E-01    .67212E-01    .18172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.946437
  Index      = 3.35082
  Normalizat = 0.987887
  Prefactor  = 0.768628
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.188     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94644        15.378        .41499E-04   -1.5513    
   2  Index         3.3508        3.1512        .32389E-02   -.33613    
   3  Normalizat    .98789        .19900        .21517E-03   -.93437    
   4  Prefactor     .76863        .23528        .29736E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07261e-07
Minuit parameter uncertainties:
  1  7.6319
  2  3.45037
  3  0.199153
  4  0.235589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32019': 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) = 5804.18752973
delta logL = 1.10383094721

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.464e-01  7.632e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.351e+00  3.450e+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:  7.686e-01  2.356e-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.879e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 194.310 36.771
Photon Index (Free Index): 3.35 +/- 3.45
Photon Flux (Free Index): 7.73e-08 +/- 6.67e-08
Energy Flux (Free Index): 1.34e-05 +/- 9.77e-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/32019/cmap_HighResolution_294537601_294796801_4FGL_J1257.2+3646_daily_bin213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='1.34e-05', photon_flux_error='2.27e-08', dlogl='1.10e+00', energy_flux='1.55e-05', photon_flux2='7.73e-08', job_status='DONE', time_completed='2021-09-06 11:40:58.644424', photon_index_error2='3.45', photon_index2='3.35', ts='2.27', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='7.89e-08', energy_flux_error2='9.77e-06', EG='1.06', time_epoch_completed='1630953658.64', return_code='0', job_id='32019', GAL2='0.77', EG2='0.99', return_code2='102', energy_flux_error='1.47e-05', photon_flux_error2='6.67e-08', ts2='4.58', photon_index='2.03' WHERE bin_id='213' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 32019: <4FGL_J1257.2+3646_daily_bin213> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin213> 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) <bullet0148>, 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:59 2021
Results reported at Mon Sep  6 11:40:59 2021

Your job looked like:

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

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

