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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin697
RA = 194.31, Dec = 36.7706
tmin = 419990401, tmax = 420249601
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='36216', job_status='RUN', time_executed='2021-09-06 11:43:06.869904', time_epoch_executed='1630953786.87' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36216/ft1_4FGL_J1257.2+3646_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36216/ft2_4FGL_J1257.2+3646_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36216/ft1_4FGL_J1257.2+3646_daily_bin697.fits outfile=/scratch/kocevski/36216/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin697.fits ra=194.31 dec=36.7706 rad=12.0 tmin=419990401.0 tmax=420249601.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.39
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36216/ft1_filtered_4FGL_J1257.2+3646_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/36216/ft2_4FGL_J1257.2+3646_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/36216/ltcube_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.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/36216/ft2_4FGL_J1257.2+3646_daily_bin697.fits
.....................!
real 14.99
user 14.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36216/ft1_filtered_4FGL_J1257.2+3646_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/36216/ft2_4FGL_J1257.2+3646_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/36216/ltcube_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.fits outfile=/scratch/kocevski/36216/expmap_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.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/36216/ltcube_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.fits
.....................!
real 191.53
user 186.95
sys 4.09

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/36216/ft1_filtered_4FGL_J1257.2+3646_daily_bin697.fits scfile=/scratch/kocevski/36216/ft2_4FGL_J1257.2+3646_daily_bin697.fits outfile=/scratch/kocevski/36216/cmap_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.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.70
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.1520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18124E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39063E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60429       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8888       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9670       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5519       1.0000         .10000E-03   10000.    
    16 'norm      '    15.870       1.0000         .10000E-03   10000.    
    17 'norm      '    65.468       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1228       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12460E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80048       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1902       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=   6530.818     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2977 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.101       -.10926E-06** at limit **
   2  norm          8.1546        3.9928       -.18996E-07   -.67312E-03
   3  Prefactor     .10000E-03    8.6575       -.11818E-06** at limit **
   4  Prefactor     .32994E-01    1.6119        .34630E-06   -.75566E-03
   5  Prefactor     .60277        2.1693        .52164E-06   -.37320E-03
   6  Prefactor     .10000E-03    4.9757       -.11037E-06** at limit **
   7  Prefactor     23.869        37.175        .44477E-05    .11981E-03
   8  Prefactor     .10000E-03    5.7495        .32188E-09** at limit **
   9  Prefactor     7.3923        95.124       -.43852E-05   -.18189E-04
  10  Prefactor     2.8892        5.1817        .85743E-06    .46861E-04
  11  norm          2.9674        3.8289        .23034E-06    .14952E-06
  12  Prefactor     .41059        53.292       -.24619E-05    .11583E-03
  13  Prefactor     4.4580        23.429       -.10528E-05   -.28869E-04
  14  Prefactor     .10000E-03    12.279        .18197E-06** at limit **
  15  norm          4.5524        3.8256        .25719E-08   -.13441E-04
  16  norm          15.878        11.207        .15048E-06    .93184E-04
  17  norm          65.446        11.607       -.64311E-06   -.23836E-03
  18  norm          2.6396        31.002        .51702E-05   -.19271E-06
  19  Prefactor     .10000E-03    .86658        .10836E-06** at limit **
  20  Prefactor     .10000E-03    7.4882        .22978E-06** at limit **
  21  Prefactor     .10000E-03    38.958        .39575E-06** at limit **
  22  Prefactor     6.1187        15.539        .82108E-06    .86559E-06
  23  Prefactor     .10000E-03    52.887       -.11783E-05** at limit **
  24  Normalizat    .80059        .17504       -.22966E-05    .47577E-04
  25  Prefactor     1.1904        .21246        .14064E-05   -.10977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.15456
  Prefactor  = 0.0001
  Prefactor  = 0.0329937
  Prefactor  = 0.602766
  Prefactor  = 0.0001
  Prefactor  = 23.8694
  Prefactor  = 0.0001
  Prefactor  = 7.3923
  Prefactor  = 2.88923
  norm       = 2.9674
  Prefactor  = 0.410589
  Prefactor  = 4.458
  Prefactor  = 0.0001
  norm       = 4.5524
  norm       = 15.8784
  norm       = 65.4456
  norm       = 2.63961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.11871
  Prefactor  = 0.0001
  Normalizat = 0.800591
  Prefactor  = 1.19037
 **********
 **   18 **HESSE 
 **********

 FCN=   6530.818     FROM HESSE     STATUS=OK           449 CALLS     3426 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.1546        4.2211        .96145E-04   -1.5137    
   3  Prefactor     .10000E-03    9.0243        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32994E-01    4.5246        .30895E-01   -1.5672    
   5  Prefactor     .60277        2.9062        .19638E-02   -1.5553    
   6  Prefactor     .10000E-03    4.9966        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.869        37.535        .82016E-04   -1.4730    
   8  Prefactor     .10000E-03    5.7507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3923        95.354        .14726E-03   -1.5164    
  10  Prefactor     2.8892        5.1588        .23637E-03   -1.5368    
  11  norm          2.9674        3.8029        .16772E-03   -1.5363    
  12  Prefactor     .41059        57.699        .15860       -1.5580    
  13  Prefactor     4.4580        23.259        .19077E-03   -1.5286    
  14  Prefactor     .10000E-03    12.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5524        3.8207        .14015E-03   -1.5281    
  16  norm          15.878        11.215        .10054E-03   -1.4911    
  17  norm          65.446        11.683        .49600E-04   -1.4088    
  18  norm          2.6396        31.632        .25203E-03   -1.5383    
  19  Prefactor     .10000E-03    .87168        .73508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1187        15.532        .16225E-03   -1.5213    
  23  Prefactor     .10000E-03    52.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80059        .19931        .26380E-03   -1.0005    
  25  Prefactor     1.1904        .24703        .28258E-03   -.86628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13301e-09
Minuit parameter uncertainties:
  1  7.25518e-06
  2  4.22128
  3  1.45853e-05
  4  0.771635
  5  2.64708
  6  1.98492e-06
  7  37.5718
  8  6.75055e-07
  9  53.2037
  10  5.15959
  11  3.80326
  12  9.743
  13  20.378
  14  8.79431e-06
  15  3.82089
  16  11.2169
  17  11.6835
  18  18.2869
  19  2.4017e-06
  20  1.38342e-05
  21  4.97319e-05
  22  15.5425
  23  3.20703e-05
  24  0.199495
  25  0.247271
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.889e+00  5.160e+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.190e+00  2.473e-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:  8.006e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36216/likelihoodResults_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.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) = 6530.61507282
delta logL = 0.2032386039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6530.60847389
delta logL = 0.209837538853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3905       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7538       1.0000          .0000       10.000    
     3 'Normalizat'    .78253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2026       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=   6530.608     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      264 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3897        42.892        .92134E-02    .83072E-03
   2  Index         2.7541        3.3287        .12544        .14418E-03
   3  Normalizat    .78254        .42024E-01    .43382E-01    .18561E-04
   4  Prefactor     1.2025        .51951E-01    .63593E-01    .60210E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38969
  Index      = 2.75411
  Normalizat = 0.782537
  Prefactor  = 1.20255
 **********
 **   18 **HESSE 
 **********

 FCN=   6530.608     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3897        13.118        .11505E-03   -1.5472    
   2  Index         2.7541        2.6915        .73719E-02   -.46585    
   3  Normalizat    .78254        .20081        .26646E-03   -1.0072    
   4  Prefactor     1.2025        .25300        .28126E-03   -.86253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84877e-10
Minuit parameter uncertainties:
  1  8.54145
  2  2.88862
  3  0.200999
  4  0.253257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36216': 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) = 6530.60847383
delta logL = 0.209837592963

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.390e+00  8.541e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.754e+00  2.889e+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.203e+00  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:  7.825e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/36216/cmap_HighResolution_419990401_420249601_4FGL_J1257.2+3646_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-06 11:56:20.399563', job_id='36216', GAL2='1.20', fit_tolerance='1e-08', EG2='0.78', EG='0.80', time_epoch_completed='1630954580.4', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.10e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='697' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 36216: <4FGL_J1257.2+3646_daily_bin697> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin697> 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) <bullet0303>, 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:56:21 2021
Results reported at Mon Sep  6 11:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin697 194.31 36.7706 419990401 420249601 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 :                                   779.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

