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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin510
RA = 194.31, Dec = 36.7706
tmin = 371520001, tmax = 371779201
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='34564', job_status='RUN', time_executed='2021-09-06 11:39:11.509881', time_epoch_executed='1630953551.51' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34564

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34564/ft1_4FGL_J1257.2+3646_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34564/ft2_4FGL_J1257.2+3646_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34564/ft1_4FGL_J1257.2+3646_daily_bin510.fits outfile=/scratch/kocevski/34564/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin510.fits ra=194.31 dec=36.7706 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.46
user 4.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34564/ft1_filtered_4FGL_J1257.2+3646_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/34564/ft2_4FGL_J1257.2+3646_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/34564/ltcube_371520001_371779201_4FGL_J1257.2+3646_daily_bin510.fits outfile=/scratch/kocevski/34564/expmap_371520001_371779201_4FGL_J1257.2+3646_daily_bin510.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/34564/ltcube_371520001_371779201_4FGL_J1257.2+3646_daily_bin510.fits
.....................!
real 189.97
user 185.36
sys 4.24

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/34564/ft1_filtered_4FGL_J1257.2+3646_daily_bin510.fits scfile=/scratch/kocevski/34564/ft2_4FGL_J1257.2+3646_daily_bin510.fits outfile=/scratch/kocevski/34564/cmap_371520001_371779201_4FGL_J1257.2+3646_daily_bin510.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.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17359E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2459       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3041       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8276       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12515E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19610E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.276       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7290       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18393E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.0466       1.0000         .10000E-03   10000.    
    16 'norm      '    20.277       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6382       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87477       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=   5552.068     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2547 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.80        .17024E-04** at limit **
   2  norm          4.2480        4.1779       -.79631E-07   -.30989E-03
   3  Prefactor     14.758        9.1930       -.27143E-06   -.71052E-04
   4  Prefactor     2.8621        3.1994       -.43496E-07   -.28295E-03
   5  Prefactor     3.3066        2.7414       -.14176E-07   -.53386E-04
   6  Prefactor     9.8296        9.0346        .24015E-06   -.22896E-05
   7  Prefactor     .10000E-03    84.239       -.52340E-04** at limit **
   8  Prefactor     .10000E-03    9.9680        .11436E-06** at limit **
   9  Prefactor     .10217E-03    60.375       -.18341E-05** at limit **
  10  Prefactor     11.275        7.7184       -.90248E-06    .28984E-04
  11  norm          2.7321        3.0852        .59850E-07    .12583E-03
  12  Prefactor     .10000E-03    26.619       -.90151E-06** at limit **
  13  Prefactor     .10000E-03    15.432        .19179E-06** at limit **
  14  Prefactor     .10000E-03    20.283       -.25476E-05** at limit **
  15  norm          7.0406        5.7008        .22103E-06    .38362E-05
  16  norm          20.271        19.602        .19174E-06    .10055E-04
  17  norm          4.6351        4.3982       -.97343E-07   -.26462E-03
  18  norm          .10000E-03    6.5840        .12199E-06** at limit **
  19  Prefactor     .10000E-03    2.0811       -.10967E-07** at limit **
  20  Prefactor     .10000E-03    6.0814        .47507E-08** at limit **
  21  Prefactor     .10000E-03    21.348        .32912E-05** at limit **
  22  Prefactor     .10000E-03    5.8467       -.28554E-07** at limit **
  23  Prefactor     .10000E-03    78.696        .39314E-04** at limit **
  24  Normalizat    1.0547        .17902        .34083E-06    .12045E-03
  25  Prefactor     .87477        .21767        .43128E-07    .87610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.24802
  Prefactor  = 14.7583
  Prefactor  = 2.86207
  Prefactor  = 3.30658
  Prefactor  = 9.82957
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000102165
  Prefactor  = 11.2748
  norm       = 2.73211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.04061
  norm       = 20.2714
  norm       = 4.63508
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05467
  Prefactor  = 0.874769
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.068     FROM HESSE     STATUS=OK           439 CALLS     2986 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    118.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2480        4.2123        .11976E-03   -1.5296    
   3  Prefactor     14.758        9.1965        .10425E-03   -1.4939    
   4  Prefactor     2.8621        3.2208        .11267E-03   -1.5370    
   5  Prefactor     3.3066        2.7356        .10525E-03   -1.5344    
   6  Prefactor     9.8296        9.0262        .12783E-03   -1.5081    
   7  Prefactor     .10000E-03    84.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10217E-03    56.083        .17536       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.275        7.7148        .11930E-03   -1.5036    
  11  norm          2.7321        3.0803        .13373E-03   -1.5377    
  12  Prefactor     .10000E-03    26.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.0406        5.6673        .15112E-03   -1.5177    
  16  norm          20.271        19.623        .88947E-04   -1.4807    
  17  norm          4.6351        3.6774        .12150E-03   -1.5277    
  18  norm          .10000E-03    11.857        .31070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5071        .20594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0914        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8527        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    78.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0547        .20959        .23210E-03   -.91221    
  25  Prefactor     .87477        .25486        .30614E-03   -.97028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97004e-10
Minuit parameter uncertainties:
  1  0.000270612
  2  4.21257
  3  9.19741
  4  3.22098
  5  2.73567
  6  9.0275
  7  0.000551052
  8  9.75804e-06
  9  0.0220591
  10  7.71548
  11  3.08046
  12  1.8372e-06
  13  6.32869e-06
  14  3.5605e-05
  15  5.66778
  16  19.629
  17  3.67754
  18  3.25866e-05
  19  1.2521e-05
  20  9.15648e-07
  21  3.09006e-06
  22  8.87646e-07
  23  0.000113543
  24  0.209757
  25  0.255203
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.127e+01  7.715e+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:  8.748e-01  2.552e-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.055e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.83
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.89e-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) = 5552.05915184
delta logL = 0.00876245155177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.0578051
delta logL = 0.0101091925053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.688       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9461       1.0000          .0000       10.000    
     3 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87213       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=   5552.058     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      252 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.688        8.5783        .11718E-03   -.63354E-04
   2  Index         1.9461        .58187        .66081E-02   -.41493E-04
   3  Normalizat    1.0597        .21051        .23163E-03    .50701E-04
   4  Prefactor     .87216        .25272        .30659E-03    .47241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6878
  Index      = 1.94607
  Normalizat = 1.05969
  Prefactor  = 0.872156
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.058     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.688        8.4749        .46872E-05   -1.5024    
   2  Index         1.9461        .57414        .26432E-03   -.65705    
   3  Normalizat    1.0597        .21054        .92652E-05   -.91057    
   4  Prefactor     .87216        .25292        .12264E-04   -.97121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72956e-11
Minuit parameter uncertainties:
  1  8.47581
  2  0.576175
  3  0.210711
  4  0.253256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34564': 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) = 5552.0578051
delta logL = 0.0101091978004

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.169e+01  8.476e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.946e+00  5.762e-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:  8.722e-01  2.533e-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.060e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.84
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.95 +/- 0.58
Photon Flux (Free Index): 3.79e-08 +/- 4.31e-08
Energy Flux (Free Index): 3.00e-05 +/- 2.79e-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/34564/cmap_HighResolution_371520001_371779201_4FGL_J1257.2+3646_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='3.00e-05', photon_flux_error='2.93e-08', dlogl='1.01e-02', energy_flux='2.77e-05', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-06 11:49:01.095844', photon_index_error2='0.58', photon_index2='1.95', ts='10.83', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='1.05', time_epoch_completed='1630954141.1', return_code='0', job_id='34564', GAL2='0.87', EG2='1.06', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='4.31e-08', ts2='10.84', photon_index='2.03' WHERE bin_id='510' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 34564: <4FGL_J1257.2+3646_daily_bin510> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin510 194.31 36.7706 371520001 371779201 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

