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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin452
RA = 194.31, Dec = 36.7706
tmin = 356486401, tmax = 356745601
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='34478', job_status='RUN', time_executed='2021-09-06 11:38:31.370845', time_epoch_executed='1630953511.37' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34478/ft1_4FGL_J1257.2+3646_daily_bin452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34478/ft2_4FGL_J1257.2+3646_daily_bin452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34478/ft1_4FGL_J1257.2+3646_daily_bin452.fits outfile=/scratch/kocevski/34478/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin452.fits ra=194.31 dec=36.7706 rad=12.0 tmin=356486401.0 tmax=356745601.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.49
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34478/ft1_filtered_4FGL_J1257.2+3646_daily_bin452.fits" evtable="EVENTS" scfile=/scratch/kocevski/34478/ft2_4FGL_J1257.2+3646_daily_bin452.fits sctable="SC_DATA" outfile=/scratch/kocevski/34478/ltcube_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.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/34478/ft2_4FGL_J1257.2+3646_daily_bin452.fits
.....................!
real 12.12
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34478/ft1_filtered_4FGL_J1257.2+3646_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/34478/ft2_4FGL_J1257.2+3646_daily_bin452.fits sctable="SC_DATA" expcube=/scratch/kocevski/34478/ltcube_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.fits outfile=/scratch/kocevski/34478/expmap_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.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/34478/ltcube_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.fits
.....................!
real 191.97
user 186.57
sys 4.78

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/34478/ft1_filtered_4FGL_J1257.2+3646_daily_bin452.fits scfile=/scratch/kocevski/34478/ft2_4FGL_J1257.2+3646_daily_bin452.fits outfile=/scratch/kocevski/34478/cmap_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34478/ft1_filtered_4FGL_J1257.2+3646_daily_bin452.fits scfile=/scratch/kocevski/34478/ft2_4FGL_J1257.2+3646_daily_bin452.fits outfile=/scratch/kocevski/34478/cmap_HighResolution_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.653       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4937       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3464       1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.518       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.481       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2209       1.0000         .10000E-03   10000.    
    16 'norm      '    11.272       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12626E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.887       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1861       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0322       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=   6404.195     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2901 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.656        25.595        .39122E-05   -.26510E-04
   2  norm          6.8933        3.3014        .44504E-06   -.69973E-04
   3  Prefactor     .10000E-03    3.2016        .13710E-06** at limit **
   4  Prefactor     .10000E-03    .93408        .98074E-08** at limit **
   5  Prefactor     9.8407        3.6406       -.54429E-07   -.12172E-03
   6  Prefactor     7.4939        8.4802        .28656E-06   -.35731E-04
   7  Prefactor     .10000E-03    15.994       -.34651E-05** at limit **
   8  Prefactor     .10000E-03    72.954        .52661E-05** at limit **
   9  Prefactor     72.469        75.773       -.15627E-06   -.26380E-04
  10  Prefactor     8.3470        6.8227        .78321E-06   -.22193E-03
  11  norm          .10000E-03    2.4360        .10790E-06** at limit **
  12  Prefactor     29.520        35.920        .31215E-05   -.20792E-04
  13  Prefactor     39.176        27.671        .12809E-05   -.11737E-03
  14  Prefactor     19.483        16.193        .41361E-07   -.10979E-03
  15  norm          2.2215        4.4800       -.19164E-06   -.65489E-03
  16  norm          11.271        10.989       -.65358E-07   -.75635E-05
  17  norm          .10000E-03    2.0910        .11358E-06** at limit **
  18  norm          .10000E-03    2.3125        .24195E-07** at limit **
  19  Prefactor     .10003E-03    2.0603        .35250E-06** at limit **
  20  Prefactor     22.810        20.163        .67879E-07   -.26558E-03
  21  Prefactor     .10000E-03    33.323       -.79331E-06** at limit **
  22  Prefactor     .10000E-03    8.9842        .13809E-06** at limit **
  23  Prefactor     15.973        73.099        .18343E-03   -.89389E-06
  24  Normalizat    1.1857        .18604       -.84111E-05    .21993E-03
  25  Prefactor     1.0326        .22260       -.14798E-06   -.40197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6562
  norm       = 6.89331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.84073
  Prefactor  = 7.49385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.4688
  Prefactor  = 8.34704
  norm       = 0.0001
  Prefactor  = 29.5204
  Prefactor  = 39.1757
  Prefactor  = 19.4829
  norm       = 2.22148
  norm       = 11.2712
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 22.8102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9728
  Normalizat = 1.1857
  Prefactor  = 1.03258
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.195     FROM HESSE     STATUS=OK           421 CALLS     3322 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.656        25.606        .98146E-04   -1.4891    
   2  norm          6.8933        3.2912        .96149E-04   -1.5183    
   3  Prefactor     .10000E-03    3.2143        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .93823        .75286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8407        3.6406        .87871E-04   -1.5080    
   6  Prefactor     7.4939        8.4757        .14650E-03   -1.5160    
   7  Prefactor     .10000E-03    16.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    75.671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     72.469        75.759        .47160E-04   -1.4003    
  10  Prefactor     8.3470        6.8050        .13876E-03   -1.5130    
  11  norm          .10000E-03    2.4448        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.520        35.929        .73743E-04   -1.4621    
  13  Prefactor     39.176        27.661        .64039E-04   -1.4455    
  14  Prefactor     19.483        16.158        .90745E-04   -1.4825    
  15  norm          2.2215        4.4266        .22421E-03   -1.5410    
  16  norm          11.271        10.990        .11933E-03   -1.5036    
  17  norm          .10000E-03    2.1113        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3159        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    15.799        .20063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.810        18.583        .83887E-04   -1.4752    
  21  Prefactor     .10000E-03    33.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.973        72.871        .10049E-03   -1.4908    
  24  Normalizat    1.1857        .22703        .24113E-03   -.87046    
  25  Prefactor     1.0326        .27089        .31747E-03   -.91651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8551e-09
Minuit parameter uncertainties:
  1  25.623
  2  3.29124
  3  2.09169e-05
  4  1.67136e-07
  5  3.64072
  6  8.47708
  7  7.13691e-05
  8  0.000300617
  9  75.8604
  10  6.80562
  11  1.71188e-05
  12  35.9557
  13  27.6699
  14  16.162
  15  4.42727
  16  10.9924
  17  1.72014e-05
  18  6.80307e-06
  19  0.00134956
  20  18.5878
  21  7.78864e-05
  22  4.3687e-05
  23  68.3715
  24  0.227219
  25  0.271246
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.347e+00  6.806e+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.033e+00  2.712e-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.186e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/34478/likelihoodResults_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6404.18314353
delta logL = 0.0121492912795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6404.17494758
delta logL = 0.0203452395263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1584       1.0000          .0000       10.000    
     3 'Normalizat'    1.1797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0374       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=   6404.175     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3277        166.61        .37049E-02    .36017E-03
   2  Index         2.1581        6.0367        .12387        .18305E-03
   3  Normalizat    1.1797        .97931E-01    .54645E-01   -.29735E-06
   4  Prefactor     1.0374        .90573E-01    .71607E-01    .30203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32769
  Index      = 2.15809
  Normalizat = 1.17974
  Prefactor  = 1.03735
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.175     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3277        8.7018        .14820E-03   -1.5167    
   2  Index         2.1581        .71669        .72748E-02   -.60454    
   3  Normalizat    1.1797        .21941        .24163E-03   -.87231    
   4  Prefactor     1.0374        .27056        .31683E-03   -.91495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23449e-10
Minuit parameter uncertainties:
  1  8.70327
  2  0.720366
  3  0.219585
  4  0.270916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34478': 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) = 6404.17494747
delta logL = 0.0203453523291

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.328e+00  8.703e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.158e+00  7.204e-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.037e+00  2.709e-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.180e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.16 +/- 0.72
Photon Flux (Free Index): 3.63e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.76e-05 +/- 2.00e-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/34478/cmap_HighResolution_356486401_356745601_4FGL_J1257.2+3646_daily_bin452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='1.76e-05', photon_flux_error='2.58e-08', dlogl='2.03e-02', energy_flux='2.05e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-06 11:51:01.211214', photon_index_error2='0.72', photon_index2='2.16', ts='3.03', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.24e-08', energy_flux_error2='2.00e-05', EG='1.19', time_epoch_completed='1630954261.21', return_code='0', job_id='34478', GAL2='1.04', EG2='1.18', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.61e-08', ts2='3.08', photon_index='2.03' WHERE bin_id='452' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 34478: <4FGL_J1257.2+3646_daily_bin452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin452 194.31 36.7706 356486401 356745601 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 :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

