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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin698
RA = 194.31, Dec = 36.7706
tmin = 420249601, tmax = 420508801
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='36217', job_status='RUN', time_executed='2021-09-06 11:42:54.370637', time_epoch_executed='1630953774.37' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36217/ft1_4FGL_J1257.2+3646_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36217/ft2_4FGL_J1257.2+3646_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36217/ft1_4FGL_J1257.2+3646_daily_bin698.fits outfile=/scratch/kocevski/36217/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin698.fits ra=194.31 dec=36.7706 rad=12.0 tmin=420249601.0 tmax=420508801.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.36
user 3.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36217/ft2_4FGL_J1257.2+3646_daily_bin698.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/36217/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/36217/ft1_filtered_4FGL_J1257.2+3646_daily_bin698.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/36217/ft1_filtered_4FGL_J1257.2+3646_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/36217/ft2_4FGL_J1257.2+3646_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/36217/ltcube_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.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/36217/ft2_4FGL_J1257.2+3646_daily_bin698.fits
.....................!
real 12.32
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36217/ft1_filtered_4FGL_J1257.2+3646_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/36217/ft2_4FGL_J1257.2+3646_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/36217/ltcube_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.fits outfile=/scratch/kocevski/36217/expmap_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.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/36217/ltcube_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.fits
.....................!
real 191.38
user 185.91
sys 5.03

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/36217/ft1_filtered_4FGL_J1257.2+3646_daily_bin698.fits scfile=/scratch/kocevski/36217/ft2_4FGL_J1257.2+3646_daily_bin698.fits outfile=/scratch/kocevski/36217/cmap_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.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.81
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36217/ft1_filtered_4FGL_J1257.2+3646_daily_bin698.fits scfile=/scratch/kocevski/36217/ft2_4FGL_J1257.2+3646_daily_bin698.fits outfile=/scratch/kocevski/36217/cmap_HighResolution_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.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.77
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8093       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18437E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.861       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7061       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7153       1.0000         .10000E-03   10000.    
    17 'norm      '    35.622       1.0000         .10000E-03   10000.    
    18 'norm      '    .79202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8494       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74753       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2442       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=   6331.456     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2889 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.301        .50373E-05** at limit **
   2  norm          11.138        3.8164       -.30141E-07   -.28847E-07
   3  Prefactor     13.761        8.3187       -.18550E-06   -.36444E-04
   4  Prefactor     1.3058        1.4247        .14448E-07    .14137E-03
   5  Prefactor     2.8096        2.3666       -.11153E-06   -.29240E-03
   6  Prefactor     .10000E-03    7.3196       -.13215E-08** at limit **
   7  Prefactor     .10000E-03    11.472       -.19397E-05** at limit **
   8  Prefactor     .10000E-03    12.934       -.31686E-05** at limit **
   9  Prefactor     .10000E-03    32.977        .86300E-05** at limit **
  10  Prefactor     .10028E-03    4.8966       -.16177E-05** at limit **
  11  norm          .10000E-03    1.6390       -.28057E-07** at limit **
  12  Prefactor     24.042        37.836       -.17730E-04    .48469E-05
  13  Prefactor     11.870        25.657        .17369E-05    .16966E-03
  14  Prefactor     .10000E-03    5.9083        .52925E-07** at limit **
  15  norm          1.7042        4.2848       -.91256E-06   -.59973E-03
  16  norm          8.7149        9.5049        .11290E-05    .42493E-03
  17  norm          35.593        10.709        .22634E-06    .23122E-02
  18  norm          .79463        21.536       -.28243E-05   -.60304E-04
  19  Prefactor     .10000E-03    2.0510       -.51246E-09** at limit **
  20  Prefactor     8.8503        12.583        .43695E-07    .11632E-03
  21  Prefactor     .10000E-03    60.443        .57407E-05** at limit **
  22  Prefactor     .10000E-03    20.355       -.28896E-06** at limit **
  23  Prefactor     .10000E-03    107.98       -.43944E-07** at limit **
  24  Normalizat    .74753        .16698        .27071E-06    .31752E-03
  25  Prefactor     1.2443        .21226        .11933E-05    .24932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.1383
  Prefactor  = 13.7612
  Prefactor  = 1.30582
  Prefactor  = 2.80962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100275
  norm       = 0.0001
  Prefactor  = 24.0421
  Prefactor  = 11.8701
  Prefactor  = 0.0001
  norm       = 1.70422
  norm       = 8.71492
  norm       = 35.5931
  norm       = 0.794635
  Prefactor  = 0.0001
  Prefactor  = 8.85029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.747528
  Prefactor  = 1.24429
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.456     FROM HESSE     STATUS=OK           429 CALLS     3318 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.138        3.8063        .85332E-04   -1.5040    
   3  Prefactor     13.761        8.3216        .10798E-03   -1.4966    
   4  Prefactor     1.3058        1.4270        .94802E-04   -1.5479    
   5  Prefactor     2.8096        2.3571        .10684E-03   -1.5373    
   6  Prefactor     .10000E-03    7.3900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10028E-03    36.254        .33209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6450        .99386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.042        37.246        .81650E-04   -1.4727    
  13  Prefactor     11.870        25.557        .11632E-03   -1.5019    
  14  Prefactor     .10000E-03    5.9160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7042        4.2862        .25132E-03   -1.5447    
  16  norm          8.7149        9.5671        .67889E-03   -1.5117    
  17  norm          35.593        10.263        .67146E-04   -1.4514    
  18  norm          .79463        67.872        .43926E-02   -1.5530    
  19  Prefactor     .10000E-03    2.0908        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8503        12.557        .13474E-03   -1.5113    
  21  Prefactor     .10000E-03    60.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    108.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .74753        .19936        .26307E-03   -1.0205    
  25  Prefactor     1.2443        .25451        .27027E-03   -.84979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87185e-08
Minuit parameter uncertainties:
  1  4.77311e-06
  2  3.80636
  3  8.32229
  4  1.42705
  5  2.35715
  6  7.06203e-06
  7  7.04674e-06
  8  2.04946e-05
  9  2.27737e-05
  10  0.00632254
  11  3.84829e-06
  12  37.2822
  13  25.5802
  14  9.02641e-06
  15  4.28697
  16  9.56875
  17  10.2633
  18  14.7042
  19  6.07492e-08
  20  12.5605
  21  3.96976e-05
  22  3.55923e-05
  23  0.000101847
  24  0.199552
  25  0.254767
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.003e-04  6.323e-03  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.244e+00  2.548e-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:  7.475e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36217/likelihoodResults_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.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): 102
logL (Free Index) = 6331.4562958
delta logL = -0.000128596066133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6331.45608345
delta logL = 8.37469806356e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30427E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1963       1.0000          .0000       10.000    
     3 'Normalizat'    .74740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2444       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=   6331.142     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      257 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13562        2.2943        .85337E-02    .30170E-02
   2  Index         3.7160        1.8301        .14347        .10860E-03
   3  Normalizat    .70861        .24906E-01    .42920E-01    .68021E-04
   4  Prefactor     1.2726        .32352E-01    .60518E-01    .97492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.135621
  Index      = 3.71604
  Normalizat = 0.70861
  Prefactor  = 1.27264
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.142     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13562        11.960        .38912E-03   -1.5634    
   2  Index         3.7160        6.8244        .49891E-02   -.25970    
   3  Normalizat    .70861        .12952        .26960E-03   -1.0355    
   4  Prefactor     1.2726        .16731        .26763E-03   -.84124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73138e-08
Minuit parameter uncertainties:
  1  2.54681
  2  7.1291
  3  0.129574
  4  0.167381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36217': 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): 102
logL (Free Index) = 6331.14230777
delta logL = 0.313859431058

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.356e-01  2.547e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.716e+00  7.129e+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:  1.273e+00  1.674e-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:  7.086e-01  1.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/36217/cmap_HighResolution_420249601_420508801_4FGL_J1257.2+3646_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-06 11:55:51.559156', job_id='36217', GAL2='1.27', fit_tolerance='1e-08', EG2='0.71', EG='0.75', time_epoch_completed='1630954551.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.14e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='698' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 36217: <4FGL_J1257.2+3646_daily_bin698> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin698> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:43 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:44 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:40:44 2021
Terminated at Mon Sep  6 11:55:52 2021
Results reported at Mon Sep  6 11:55:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin698 194.31 36.7706 420249601 420508801 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 :                                   759.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             293.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

