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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin278
RA = 194.31, Dec = 36.7706
tmin = 311385601, tmax = 311644801
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='32839', job_status='RUN', time_executed='2021-09-06 11:32:59.346390', time_epoch_executed='1630953179.35' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32839/ft1_4FGL_J1257.2+3646_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32839/ft2_4FGL_J1257.2+3646_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32839/ft1_4FGL_J1257.2+3646_daily_bin278.fits outfile=/scratch/kocevski/32839/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin278.fits ra=194.31 dec=36.7706 rad=12.0 tmin=311385601.0 tmax=311644801.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.79
user 3.28
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32839/ft1_filtered_4FGL_J1257.2+3646_daily_bin278.fits" evtable="EVENTS" scfile=/scratch/kocevski/32839/ft2_4FGL_J1257.2+3646_daily_bin278.fits sctable="SC_DATA" outfile=/scratch/kocevski/32839/ltcube_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.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/32839/ft2_4FGL_J1257.2+3646_daily_bin278.fits
.....................!
real 14.30
user 12.55
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32839/ft1_filtered_4FGL_J1257.2+3646_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/32839/ft2_4FGL_J1257.2+3646_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/32839/ltcube_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.fits outfile=/scratch/kocevski/32839/expmap_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.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/32839/ltcube_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.fits
.....................!
real 193.09
user 185.69
sys 6.45

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/32839/ft1_filtered_4FGL_J1257.2+3646_daily_bin278.fits scfile=/scratch/kocevski/32839/ft2_4FGL_J1257.2+3646_daily_bin278.fits outfile=/scratch/kocevski/32839/cmap_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.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.61
user 0.37
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32839/ft1_filtered_4FGL_J1257.2+3646_daily_bin278.fits scfile=/scratch/kocevski/32839/ft2_4FGL_J1257.2+3646_daily_bin278.fits outfile=/scratch/kocevski/32839/cmap_HighResolution_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.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.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9583       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.937       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    81.884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4513       1.0000         .10000E-03   10000.    
    11 'norm      '    8.8598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5346       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .16282E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0927       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11425E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.613       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.617       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3173       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59583       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=   5905.632     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2868 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5520        .27925E-07** at limit **
   2  norm          4.9534        3.1232        .42868E-08    .19082E-04
   3  Prefactor     11.987        8.8924        .64506E-06    .21992E-04
   4  Prefactor     9.0499        3.3609        .25462E-08    .24006E-04
   5  Prefactor     1.4362        1.6166        .42083E-07    .81150E-05
   6  Prefactor     9.9583        7.2805       -.48810E-06    .84857E-05
   7  Prefactor     19.929        29.547       -.37102E-06    .23246E-05
   8  Prefactor     .10000E-03    8.1196        .93514E-07** at limit **
   9  Prefactor     81.881        67.414        .45925E-07    .12026E-04
  10  Prefactor     8.4485        6.1964       -.25145E-06    .44108E-04
  11  norm          8.8579        5.1021        .24382E-06    .95061E-04
  12  Prefactor     8.7762        83.778       -.14974E-05   -.98945E-05
  13  Prefactor     .10000E-03    40.776        .10807E-05** at limit **
  14  Prefactor     .10000E-03    49.803       -.48038E-06** at limit **
  15  norm          6.5319        5.1854       -.10183E-06    .70851E-04
  16  norm          .10000E-03    6.8764       -.50620E-06** at limit **
  17  norm          .10000E-03    2.9180       -.39262E-06** at limit **
  18  norm          6.0872        5.0442        .61386E-06    .27962E-03
  19  Prefactor     .10000E-03    1.6371       -.36647E-06** at limit **
  20  Prefactor     .10000E-03    6.3303       -.35008E-06** at limit **
  21  Prefactor     54.580        50.951       -.66111E-07   -.61588E-06
  22  Prefactor     12.596        22.288        .83174E-07    .13513E-04
  23  Prefactor     .10000E-03    25.449        .63975E-07** at limit **
  24  Normalizat    1.3175        .19970        .22036E-05   -.51041E-04
  25  Prefactor     .59555        .23623       -.38547E-05    .10151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.95344
  Prefactor  = 11.9875
  Prefactor  = 9.04985
  Prefactor  = 1.43617
  Prefactor  = 9.95828
  Prefactor  = 19.9289
  Prefactor  = 0.0001
  Prefactor  = 81.8805
  Prefactor  = 8.44854
  norm       = 8.85789
  Prefactor  = 8.77622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.53186
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 6.08724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.5801
  Prefactor  = 12.5957
  Prefactor  = 0.0001
  Normalizat = 1.31751
  Prefactor  = 0.595548
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.632     FROM HESSE     STATUS=OK           429 CALLS     3297 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9534        3.1304        .99846E-04   -1.5263    
   3  Prefactor     11.987        8.9006        .57849E-03   -1.5015    
   4  Prefactor     9.0499        3.3687        .79215E-04   -1.5106    
   5  Prefactor     1.4362        1.6058        .10020E-03   -1.5468    
   6  Prefactor     9.9583        7.2716        .63490E-03   -1.5077    
   7  Prefactor     19.929        29.557        .89701E-04   -1.4815    
   8  Prefactor     .10000E-03    8.1272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     81.881        67.413        .44387E-04   -1.3896    
  10  Prefactor     8.4485        6.1733        .13789E-03   -1.5127    
  11  norm          8.8579        5.1143        .12533E-03   -1.5113    
  12  Prefactor     8.7762        84.613        .13484E-03   -1.5115    
  13  Prefactor     .10000E-03    41.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5319        5.1656        .14959E-03   -1.5197    
  16  norm          .10000E-03    6.8770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.5085        .23986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0872        4.9332        .14909E-03   -1.5214    
  19  Prefactor     .10000E-03    1.6596        .95807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.580        50.931        .27139E-03   -1.4229    
  22  Prefactor     12.596        22.310        .11277E-03   -1.4998    
  23  Prefactor     .10000E-03    25.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3175        .21623        .21821E-03   -.83045    
  25  Prefactor     .59555        .25091        .36893E-03   -1.0777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76345e-10
Minuit parameter uncertainties:
  1  5.96994e-06
  2  3.13055
  3  8.9016
  4  3.36881
  5  1.60583
  6  7.27222
  7  29.5783
  8  6.57479e-06
  9  67.4765
  10  6.17375
  11  5.11451
  12  54.6016
  13  2.75245e-05
  14  3.83673e-05
  15  5.166
  16  3.46791e-06
  17  0.000134366
  18  4.93348
  19  2.60982e-07
  20  5.30816e-06
  21  50.9721
  22  22.3249
  23  1.35707e-05
  24  0.216383
  25  0.251381
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.449e+00  6.174e+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:  5.955e-01  2.514e-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.318e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.52e-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) = 5905.49692536
delta logL = 0.135305539979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.49279211
delta logL = 0.139438784906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1833       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6909       1.0000          .0000       10.000    
     3 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58838       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=   5905.493     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1833        17.709        .33063E-02    .13056E-02
   2  Index         1.6906        1.3202        .17006       -.23271E-05
   3  Normalizat    1.3312        .19149        .49147E-01    .41651E-06
   4  Prefactor     .58836        .21716        .83776E-01    .31694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.1833
  Index      = 1.69061
  Normalizat = 1.33117
  Prefactor  = 0.588364
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.493     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1833        7.0619        .13225E-03   -1.5102    
   2  Index         1.6906        .61861        .10456E-01   -.72332    
   3  Normalizat    1.3312        .21197        .21727E-03   -.82641    
   4  Prefactor     .58836        .24982        .37110E-03   -1.0808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65105e-10
Minuit parameter uncertainties:
  1  7.06252
  2  0.621455
  3  0.212111
  4  0.250288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32839': 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) = 5905.492792
delta logL = 0.13943889512

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.183e+00  7.063e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.691e+00  6.215e-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:  5.884e-01  2.503e-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.331e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.69 +/- 0.62
Photon Flux (Free Index): 1.91e-08 +/- 2.42e-08
Energy Flux (Free Index): 3.21e-05 +/- 4.02e-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/32839/cmap_HighResolution_311385601_311644801_4FGL_J1257.2+3646_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='3.21e-05', photon_flux_error='2.34e-08', dlogl='1.39e-01', energy_flux='2.07e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-09-06 11:43:44.834166', photon_index_error2='0.62', photon_index2='1.69', ts='5.76', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='1.32', time_epoch_completed='1630953824.83', return_code='0', job_id='32839', GAL2='0.59', EG2='1.33', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.42e-08', ts2='6.01', photon_index='2.03' WHERE bin_id='278' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:43:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 32839: <4FGL_J1257.2+3646_daily_bin278> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin278> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:20 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:22 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:30:22 2021
Terminated at Mon Sep  6 11:43:45 2021
Results reported at Mon Sep  6 11:43:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin278 194.31 36.7706 311385601 311644801 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 :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

