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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin600
RA = 194.31, Dec = 36.7706
tmin = 394848001, tmax = 395107201
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='34706', job_status='RUN', time_executed='2021-09-06 11:39:22.972946', time_epoch_executed='1630953562.97' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34706

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34706/ft1_4FGL_J1257.2+3646_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34706/ft2_4FGL_J1257.2+3646_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34706/ft1_4FGL_J1257.2+3646_daily_bin600.fits outfile=/scratch/kocevski/34706/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin600.fits ra=194.31 dec=36.7706 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.32
user 5.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34706/ft1_filtered_4FGL_J1257.2+3646_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/34706/ft2_4FGL_J1257.2+3646_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/34706/ltcube_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.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/34706/ft2_4FGL_J1257.2+3646_daily_bin600.fits
.....................!
real 11.44
user 11.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34706/ft1_filtered_4FGL_J1257.2+3646_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/34706/ft2_4FGL_J1257.2+3646_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/34706/ltcube_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.fits outfile=/scratch/kocevski/34706/expmap_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.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/34706/ltcube_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.fits
.....................!
real 190.39
user 185.07
sys 4.93

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/34706/ft1_filtered_4FGL_J1257.2+3646_daily_bin600.fits scfile=/scratch/kocevski/34706/ft2_4FGL_J1257.2+3646_daily_bin600.fits outfile=/scratch/kocevski/34706/cmap_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34706/ft1_filtered_4FGL_J1257.2+3646_daily_bin600.fits scfile=/scratch/kocevski/34706/ft2_4FGL_J1257.2+3646_daily_bin600.fits outfile=/scratch/kocevski/34706/cmap_HighResolution_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.853       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.041       1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0483       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.126       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.888       1.0000         .10000E-03   10000.    
    17 'norm      '    14.685       1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.747       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0397       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .55801       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=   5287.093     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2833 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.820        48.630       -.57769E-04    .91561E-05
   2  norm          5.4569        3.2347        .63667E-06    .84068E-04
   3  Prefactor     6.0302        7.0841        .16275E-05    .97074E-04
   4  Prefactor     1.2698        1.2983        .10268E-06    .40385E-03
   5  Prefactor     1.6154        1.5491        .41723E-07    .30813E-03
   6  Prefactor     .10000E-03    5.7623       -.20155E-06** at limit **
   7  Prefactor     .10000E-03    43.223        .27999E-04** at limit **
   8  Prefactor     33.041        25.232       -.64876E-06    .12535E-04
   9  Prefactor     71.442        61.686       -.10525E-05    .54952E-05
  10  Prefactor     7.0480        6.6236       -.67209E-07   -.16688E-05
  11  norm          .10000E-03    1.4872       -.12158E-07** at limit **
  12  Prefactor     .10000E-03    48.936       -.31415E-04** at limit **
  13  Prefactor     .10000E-03    19.145        .88439E-05** at limit **
  14  Prefactor     31.124        20.015       -.11308E-05    .27161E-04
  15  norm          .10000E-03    2.5004        .33680E-07** at limit **
  16  norm          26.888        15.571       -.31989E-06    .92402E-04
  17  norm          14.684        5.8789       -.27727E-07   -.72019E-04
  18  norm          .10000E-03    7.8320       -.45222E-06** at limit **
  19  Prefactor     .10000E-03    2.1886        .33157E-07** at limit **
  20  Prefactor     19.745        15.873       -.53856E-06    .24387E-04
  21  Prefactor     .10000E-03    16.707       -.13229E-04** at limit **
  22  Prefactor     .10000E-03    12.713        .38565E-05** at limit **
  23  Prefactor     6.0105        241.98       -.11033E-03    .59158E-05
  24  Normalizat    1.2070        .19109        .78178E-05   -.25789E-03
  25  Prefactor     .55802        .21454       -.21053E-05    .21382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8205
  norm       = 5.45687
  Prefactor  = 6.0302
  Prefactor  = 1.26978
  Prefactor  = 1.61535
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 33.0406
  Prefactor  = 71.4417
  Prefactor  = 7.04797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.124
  norm       = 0.0001
  norm       = 26.8879
  norm       = 14.6835
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01054
  Normalizat = 1.20705
  Prefactor  = 0.558021
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.093     FROM HESSE     STATUS=OK           425 CALLS     3258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.820        48.685        .87712E-04   -1.4795    
   2  norm          5.4569        3.2254        .95882E-04   -1.5241    
   3  Prefactor     6.0302        7.0774        .16353E-03   -1.5217    
   4  Prefactor     1.2698        1.3175        .80817E-04   -1.5483    
   5  Prefactor     1.6154        1.5679        .86058E-04   -1.5454    
   6  Prefactor     .10000E-03    5.7943        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.041        25.219        .69711E-04   -1.4558    
   9  Prefactor     71.442        61.688        .47495E-04   -1.4015    
  10  Prefactor     7.0480        6.6164        .15110E-03   -1.5177    
  11  norm          .10000E-03    1.4892        .86569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.124        20.036        .71818E-04   -1.4592    
  15  norm          .10000E-03    2.5099        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.888        15.570        .77257E-04   -1.4670    
  17  norm          14.684        5.8509        .10237E-03   -1.4941    
  18  norm          .10000E-03    7.8599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2170        .10476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.745        15.854        .90132E-04   -1.4819    
  21  Prefactor     .10000E-03    16.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0105        244.37        .16338E-03   -1.5218    
  24  Normalizat    1.2070        .21404        .21400E-03   -.86385    
  25  Prefactor     .55802        .23853        .35715E-03   -1.0938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58778e-09
Minuit parameter uncertainties:
  1  48.7781
  2  3.22547
  3  7.07836
  4  1.31753
  5  1.56793
  6  2.22853e-05
  7  0.000476881
  8  25.2275
  9  61.7435
  10  6.61706
  11  5.29215e-06
  12  0.000143639
  13  7.041e-05
  14  20.04
  15  5.65192e-06
  16  15.5725
  17  5.8511
  18  3.16672e-05
  19  7.7188e-06
  20  15.8569
  21  7.26455e-06
  22  8.44118e-05
  23  76.9889
  24  0.2142
  25  0.238961
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.048e+00  6.617e+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.580e-01  2.390e-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.207e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.62e-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) = 5286.67870795
delta logL = 0.414347712741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5286.66655218
delta logL = 0.426503480786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5505       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7800       1.0000          .0000       10.000    
     3 'Normalizat'    1.1638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58699       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=   5286.667     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      242 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5505        49.944        .53626E-02    .11647E-02
   2  Index         2.7800        3.0809        .92824E-01    .15186E-03
   3  Normalizat    1.1637        .79167E-01    .35848E-01    .32804E-05
   4  Prefactor     .58702        .75679E-01    .78685E-01    .25767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55051
  Index      = 2.78001
  Normalizat = 1.16374
  Prefactor  = 0.587017
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.667     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5505        6.4780        .87583E-04   -1.5331    
   2  Index         2.7800        1.0022        .46694E-02   -.46006    
   3  Normalizat    1.1637        .21145        .21695E-03   -.87731    
   4  Prefactor     .58702        .24138        .34847E-03   -1.0814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16708e-08
Minuit parameter uncertainties:
  1  6.47932
  2  1.01075
  3  0.211607
  4  0.241805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34706': 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) = 5286.66655215
delta logL = 0.426503509976

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.551e+00  6.479e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.780e+00  1.011e+00  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.870e-01  2.418e-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.164e+00  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.78 +/- 1.01
Photon Flux (Free Index): 7.13e-08 +/- 6.96e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.09e-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/34706/cmap_HighResolution_394848001_395107201_4FGL_J1257.2+3646_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='1.62e-05', photon_flux_error='2.51e-08', dlogl='4.27e-01', energy_flux='1.73e-05', photon_flux2='7.13e-08', job_status='DONE', time_completed='2021-09-06 11:49:22.707444', photon_index_error2='1.01', photon_index2='2.78', ts='4.32', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.21', time_epoch_completed='1630954162.71', return_code='0', job_id='34706', GAL2='0.59', EG2='1.16', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.96e-08', ts2='5.20', photon_index='2.03' WHERE bin_id='600' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 34706: <4FGL_J1257.2+3646_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin600 194.31 36.7706 394848001 395107201 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 :                                   597.00 sec.
    Max Memory :                                 1019 MB
    Average Memory :                             249.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

