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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin208
RA = 194.31, Dec = 36.7706
tmin = 293241601, tmax = 293500801
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='32008', job_status='RUN', time_executed='2021-09-06 11:27:59.487142', time_epoch_executed='1630952879.49' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32008/ft1_4FGL_J1257.2+3646_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32008/ft2_4FGL_J1257.2+3646_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32008/ft1_4FGL_J1257.2+3646_daily_bin208.fits outfile=/scratch/kocevski/32008/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin208.fits ra=194.31 dec=36.7706 rad=12.0 tmin=293241601.0 tmax=293500801.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.59
user 3.34
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32008/ft1_filtered_4FGL_J1257.2+3646_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/32008/ft2_4FGL_J1257.2+3646_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/32008/ltcube_293241601_293500801_4FGL_J1257.2+3646_daily_bin208.fits outfile=/scratch/kocevski/32008/expmap_293241601_293500801_4FGL_J1257.2+3646_daily_bin208.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/32008/ltcube_293241601_293500801_4FGL_J1257.2+3646_daily_bin208.fits
.....................!
real 190.64
user 185.69
sys 4.58

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/32008/ft1_filtered_4FGL_J1257.2+3646_daily_bin208.fits scfile=/scratch/kocevski/32008/ft2_4FGL_J1257.2+3646_daily_bin208.fits outfile=/scratch/kocevski/32008/cmap_293241601_293500801_4FGL_J1257.2+3646_daily_bin208.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.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32008/ft1_filtered_4FGL_J1257.2+3646_daily_bin208.fits scfile=/scratch/kocevski/32008/ft2_4FGL_J1257.2+3646_daily_bin208.fits outfile=/scratch/kocevski/32008/cmap_HighResolution_293241601_293500801_4FGL_J1257.2+3646_daily_bin208.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.82
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.921       1.0000         .10000E-03   10000.    
     2 'norm      '    7.0768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2884       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7382       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7996       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7472       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2416       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7309       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28734E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14438E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68965       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5032       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=   6144.451     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2912 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.936        42.671        .80374E-05   -.14046E-03
   2  norm          7.0783        6.0170       -.40474E-06   -.13300E-03
   3  Prefactor     1.1957        5.6237       -.47080E-05   -.88718E-03
   4  Prefactor     3.9195        4.4533        .18891E-06   -.28657E-03
   5  Prefactor     .10000E-03    1.5395        .20107E-07** at limit **
   6  Prefactor     .10000E-03    5.6948       -.16070E-06** at limit **
   7  Prefactor     .10000E-03    16.725        .58825E-06** at limit **
   8  Prefactor     .10000E-03    9.7015        .45280E-07** at limit **
   9  Prefactor     30.199        77.022       -.29097E-04    .20145E-03
  10  Prefactor     9.2921        7.6674       -.64398E-06    .14089E-03
  11  norm          6.7386        4.7614        .87834E-06   -.40677E-04
  12  Prefactor     14.778        44.301        .10673E-04   -.10725E-03
  13  Prefactor     .10000E-03    16.149       -.52247E-06** at limit **
  14  Prefactor     5.7875        20.382       -.23252E-06   -.12336E-04
  15  norm          .10000E-03    1.9044        .89860E-08** at limit **
  16  norm          2.7488        11.931       -.17579E-05   -.13289E-03
  17  norm          4.2430        3.8694       -.86442E-07   -.33447E-03
  18  norm          .10000E-03    5.9134        .10547E-05** at limit **
  19  Prefactor     5.7303        3.5832        .22363E-07   -.44969E-04
  20  Prefactor     .10000E-03    5.9842       -.82435E-06** at limit **
  21  Prefactor     .10000E-03    25.762        .17677E-07** at limit **
  22  Prefactor     .10000E-03    13.973       -.14541E-06** at limit **
  23  Prefactor     .10000E-03    149.86        .28294E-05** at limit **
  24  Normalizat    .68948        .18037       -.50449E-07    .60047E-04
  25  Prefactor     1.5032        .22282        .84676E-06    .20466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9358
  norm       = 7.07829
  Prefactor  = 1.19565
  Prefactor  = 3.91953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1991
  Prefactor  = 9.29209
  norm       = 6.73864
  Prefactor  = 14.7778
  Prefactor  = 0.0001
  Prefactor  = 5.7875
  norm       = 0.0001
  norm       = 2.74883
  norm       = 4.24303
  norm       = 0.0001
  Prefactor  = 5.73027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.689475
  Prefactor  = 1.50315
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.451     FROM HESSE     STATUS=OK           425 CALLS     3337 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.936        42.718        .68804E-04   -1.4542    
   2  norm          7.0783        6.0728        .12300E-03   -1.5176    
   3  Prefactor     1.1957        6.4231        .38356E-03   -1.5489    
   4  Prefactor     3.9195        4.4892        .12348E-03   -1.5312    
   5  Prefactor     .10000E-03    1.5697        .94804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.199        75.085        .72882E-04   -1.4608    
  10  Prefactor     9.2921        7.6327        .13150E-03   -1.5098    
  11  norm          6.7386        4.7482        .13536E-03   -1.5189    
  12  Prefactor     14.778        43.991        .10424E-03   -1.4939    
  13  Prefactor     .10000E-03    16.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7875        20.258        .16677E-03   -1.5227    
  15  norm          .10000E-03    1.9069        .10559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7488        11.959        .24562E-03   -1.5376    
  17  norm          4.2430        3.8306        .13772E-03   -1.5296    
  18  norm          .10000E-03    5.9437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7303        3.5778        .11085E-03   -1.5229    
  20  Prefactor     .10000E-03    5.9938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    89.135        .56188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    150.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68948        .21375        .29468E-03   -1.0431    
  25  Prefactor     1.5032        .26650        .26371E-03   -.77451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14963e-09
Minuit parameter uncertainties:
  1  42.7566
  2  6.07331
  3  5.54318
  4  4.48961
  5  1.66495e-06
  6  1.6822e-05
  7  4.68204e-05
  8  7.41566e-06
  9  75.3218
  10  7.63355
  11  4.74846
  12  44.088
  13  6.73916e-05
  14  20.2824
  15  1.51732e-06
  16  11.4707
  17  3.83077
  18  2.96908e-05
  19  3.57789
  20  2.8394e-05
  21  3.0157e-06
  22  0.000337908
  23  0.000581238
  24  0.214008
  25  0.266746
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.292e+00  7.634e+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.503e+00  2.667e-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:  6.895e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.87e-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) = 6144.3970003
delta logL = 0.0536963089289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.39540626
delta logL = 0.0552903483531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7935       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2450       1.0000          .0000       10.000    
     3 'Normalizat'    .67638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5121       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6144.395     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      300 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7924        8.6687        .14364E-03    .94417E-03
   2  Index         2.2448        .72601        .69251E-02    .17184E-03
   3  Normalizat    .67640        .21361        .29728E-03   -.27848E-03
   4  Prefactor     1.5122        .26684        .26303E-03   -.48290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.79236
  Index      = 2.24475
  Normalizat = 0.676404
  Prefactor  = 1.51216
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.395     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7924        7.9748        .57455E-05   -1.5150    
   2  Index         2.2448        .66710        .27700E-03   -.58362    
   3  Normalizat    .67640        .21279        .11891E-04   -1.0483    
   4  Prefactor     1.5122        .26644        .52607E-04   -.77200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62937e-10
Minuit parameter uncertainties:
  1  7.97589
  2  0.669978
  3  0.213046
  4  0.266691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32008': 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) = 6144.39540595
delta logL = 0.0552906610474

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.792e+00  7.976e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.245e+00  6.700e-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.512e+00  2.667e-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:  6.764e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.24 +/- 0.67
Photon Flux (Free Index): 4.63e-08 +/- 4.82e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.64e-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/32008/cmap_HighResolution_293241601_293500801_4FGL_J1257.2+3646_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='1.92e-05', photon_flux_error='2.90e-08', dlogl='5.53e-02', energy_flux='2.28e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-09-06 11:38:50.949507', photon_index_error2='0.67', photon_index2='2.24', ts='4.52', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.69', time_epoch_completed='1630953530.95', return_code='0', job_id='32008', GAL2='1.51', EG2='0.68', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='4.82e-08', ts2='4.63', photon_index='2.03' WHERE bin_id='208' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:38:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 32008: <4FGL_J1257.2+3646_daily_bin208> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin208> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:52 2021
Job was executed on host(s) <bullet0220>, 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:38:51 2021
Results reported at Mon Sep  6 11:38:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin208 194.31 36.7706 293241601 293500801 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 :                                   637.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            779 sec.

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

