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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin479
RA = 194.31, Dec = 36.7706
tmin = 363484801, tmax = 363744001
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='34519', job_status='RUN', time_executed='2021-09-06 11:38:28.935018', time_epoch_executed='1630953508.94' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34519

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34519/ft1_4FGL_J1257.2+3646_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34519/ft2_4FGL_J1257.2+3646_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34519/ft1_4FGL_J1257.2+3646_daily_bin479.fits outfile=/scratch/kocevski/34519/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin479.fits ra=194.31 dec=36.7706 rad=12.0 tmin=363484801.0 tmax=363744001.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.77
user 3.48
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34519/ft1_filtered_4FGL_J1257.2+3646_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/34519/ft2_4FGL_J1257.2+3646_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/34519/ltcube_363484801_363744001_4FGL_J1257.2+3646_daily_bin479.fits outfile=/scratch/kocevski/34519/expmap_363484801_363744001_4FGL_J1257.2+3646_daily_bin479.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/34519/ltcube_363484801_363744001_4FGL_J1257.2+3646_daily_bin479.fits
.....................!
real 192.30
user 186.72
sys 5.08

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/34519/ft1_filtered_4FGL_J1257.2+3646_daily_bin479.fits scfile=/scratch/kocevski/34519/ft2_4FGL_J1257.2+3646_daily_bin479.fits outfile=/scratch/kocevski/34519/cmap_363484801_363744001_4FGL_J1257.2+3646_daily_bin479.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34519/ft1_filtered_4FGL_J1257.2+3646_daily_bin479.fits scfile=/scratch/kocevski/34519/ft2_4FGL_J1257.2+3646_daily_bin479.fits outfile=/scratch/kocevski/34519/cmap_HighResolution_363484801_363744001_4FGL_J1257.2+3646_daily_bin479.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .82162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6127       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7690       1.0000         .10000E-03   10000.    
    11 'norm      '    10.434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30421E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0208       1.0000         .10000E-03   10000.    
    18 'norm      '    .10206E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    139.84       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95379       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1134       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=   6138.924     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2984 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.082        .56262E-06** at limit **
   2  norm          1.0568        2.5611       -.43731E-06    .20315E-02
   3  Prefactor     .10000E-03    2.6505        .22904E-06** at limit **
   4  Prefactor     .82137        2.4297        .38448E-07   -.69685E-04
   5  Prefactor     1.6129        1.5197        .56999E-07    .34577E-04
   6  Prefactor     16.344        10.793        .13542E-06    .15663E-05
   7  Prefactor     .10000E-03    12.795       -.33858E-06** at limit **
   8  Prefactor     .10000E-03    9.3486        .21318E-06** at limit **
   9  Prefactor     26.769        67.194        .37549E-07   -.20307E-04
  10  Prefactor     6.7685        5.3034       -.75667E-07   -.88287E-04
  11  norm          10.429        5.7613       -.47677E-06   -.30180E-03
  12  Prefactor     50.585        53.338       -.75547E-07   -.32023E-04
  13  Prefactor     .10000E-03    70.033       -.16515E-05** at limit **
  14  Prefactor     .10000E-03    4.5040        .67389E-07** at limit **
  15  norm          .10000E-03    1.6723        .38220E-07** at limit **
  16  norm          .10000E-03    7.6420       -.25846E-05** at limit **
  17  norm          5.0152        4.0751        .63934E-07    .34553E-03
  18  norm          .10026E-03    117.70       -.28480E-05** at limit **
  19  Prefactor     .92046        2.5125        .71771E-06    .36150E-03
  20  Prefactor     .10000E-03    26.979        .76979E-06** at limit **
  21  Prefactor     .10000E-03    27.199        .33715E-06** at limit **
  22  Prefactor     1.6838        12.862        .65932E-06    .58216E-03
  23  Prefactor     139.84        78.625        .17354E-06   -.20976E-04
  24  Normalizat    .95401        .17640       -.17969E-05   -.17349E-03
  25  Prefactor     1.1131        .21663        .77803E-06   -.18927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.05678
  Prefactor  = 0.0001
  Prefactor  = 0.821371
  Prefactor  = 1.61292
  Prefactor  = 16.3445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.769
  Prefactor  = 6.76846
  norm       = 10.4289
  Prefactor  = 50.5848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 5.01517
  norm       = 0.00010026
  Prefactor  = 0.920465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6838
  Prefactor  = 139.84
  Normalizat = 0.95401
  Prefactor  = 1.11306
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.924     FROM HESSE     STATUS=OK           435 CALLS     3419 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0568        3.7114        .90151E-03   -1.5502    
   3  Prefactor     .10000E-03    2.6656        .12466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82137        2.7234        .16092E-02   -1.5527    
   5  Prefactor     1.6129        1.5320        .90400E-04   -1.5454    
   6  Prefactor     16.344        10.757        .99069E-04   -1.4899    
   7  Prefactor     .10000E-03    12.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.769        67.191        .77444E-04   -1.4673    
  10  Prefactor     6.7685        5.3065        .15422E-03   -1.5188    
  11  norm          10.429        5.7546        .12404E-03   -1.5062    
  12  Prefactor     50.585        53.376        .56398E-04   -1.4284    
  13  Prefactor     .10000E-03    70.903        .42768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5087        .16240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6785        .98924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.6608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0152        5.2198        .13311E-03   -1.5260    
  18  norm          .10026E-03    10.674        .54838E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .92046        2.4629        .19480E-03   -1.5516    
  20  Prefactor     .10000E-03    27.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6838        16.859        .16239E-02   -1.5448    
  23  Prefactor     139.84        78.904        .34064E-04   -1.3337    
  24  Normalizat    .95401        .20624        .23891E-03   -.94587    
  25  Prefactor     1.1131        .25648        .28458E-03   -.89050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07462e-08
Minuit parameter uncertainties:
  1  8.3525e-05
  2  3.7122
  3  9.82401e-06
  4  2.72376
  5  1.53208
  6  10.7588
  7  1.87057e-05
  8  2.06564e-05
  9  67.3821
  10  5.30684
  11  5.75486
  12  53.4261
  13  0.000112008
  14  5.67281e-06
  15  1.41766e-06
  16  0.000131153
  17  5.22025
  18  0.00333405
  19  2.46319
  20  4.98928e-05
  21  3.72124e-05
  22  10.6597
  23  78.9637
  24  0.206407
  25  0.256767
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.768e+00  5.307e+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.113e+00  2.568e-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.540e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.02
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.30e-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) = 6138.6157667
delta logL = 0.308562339695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6138.58391863
delta logL = 0.340410409874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7457       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2468       1.0000          .0000       10.000    
     3 'Normalizat'    .97398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1062       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=   6138.584     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7457        4.6875        .46175E-02    .15929E-02
   2  Index         1.2469        .52446        .30721       -.52539E-04
   3  Normalizat    .97397        .16546        .45840E-01    .11370E-04
   4  Prefactor     1.1062        .21127        .64536E-01    .10181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74565
  Index      = 1.24686
  Normalizat = 0.973974
  Prefactor  = 1.10617
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.584     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7457        7.1875        .16355E-03   -1.5272    
   2  Index         1.2469        .89407        .12001E-01   -.84901    
   3  Normalizat    .97397        .19744        .23674E-03   -.93908    
   4  Prefactor     1.1062        .25278        .28546E-03   -.89270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74198e-09
Minuit parameter uncertainties:
  1  7.18879
  2  0.905365
  3  0.197583
  4  0.25305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34519': 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) = 6138.58391863
delta logL = 0.340410412899

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.746e+00  7.189e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.247e+00  9.054e-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.106e+00  2.530e-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.740e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.64
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.25 +/- 0.91
Photon Flux (Free Index): 6.17e-09 +/- 1.13e-08
Energy Flux (Free Index): 4.47e-05 +/- 7.17e-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/34519/cmap_HighResolution_363484801_363744001_4FGL_J1257.2+3646_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='4.47e-05', photon_flux_error='2.01e-08', dlogl='3.40e-01', energy_flux='1.66e-05', photon_flux2='6.17e-09', job_status='DONE', time_completed='2021-09-06 11:49:31.253210', photon_index_error2='0.91', photon_index2='1.25', ts='11.02', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='7.17e-05', EG='0.95', time_epoch_completed='1630954171.25', return_code='0', job_id='34519', GAL2='1.11', EG2='0.97', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.13e-08', ts2='11.64', photon_index='2.03' WHERE bin_id='479' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 34519: <4FGL_J1257.2+3646_daily_bin479> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin479> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:31 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:32 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:35:32 2021
Terminated at Mon Sep  6 11:49:31 2021
Results reported at Mon Sep  6 11:49:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin479 194.31 36.7706 363484801 363744001 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 :                                   660.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

