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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin605
RA = 194.31, Dec = 36.7706
tmin = 396144001, tmax = 396403201
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='34715', job_status='RUN', time_executed='2021-09-06 11:38:49.938035', time_epoch_executed='1630953529.94' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34715/ft1_4FGL_J1257.2+3646_daily_bin605.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34715/ft2_4FGL_J1257.2+3646_daily_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34715/ft1_4FGL_J1257.2+3646_daily_bin605.fits outfile=/scratch/kocevski/34715/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin605.fits ra=194.31 dec=36.7706 rad=12.0 tmin=396144001.0 tmax=396403201.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.28
user 3.06
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34715/ft1_filtered_4FGL_J1257.2+3646_daily_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/34715/ft2_4FGL_J1257.2+3646_daily_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/34715/ltcube_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.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/34715/ft2_4FGL_J1257.2+3646_daily_bin605.fits
.....................!
real 11.96
user 11.45
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34715/ft1_filtered_4FGL_J1257.2+3646_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/34715/ft2_4FGL_J1257.2+3646_daily_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/34715/ltcube_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.fits outfile=/scratch/kocevski/34715/expmap_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.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/34715/ltcube_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.fits
.....................!
real 195.16
user 186.34
sys 8.38

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/34715/ft1_filtered_4FGL_J1257.2+3646_daily_bin605.fits scfile=/scratch/kocevski/34715/ft2_4FGL_J1257.2+3646_daily_bin605.fits outfile=/scratch/kocevski/34715/cmap_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.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.55
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34715/ft1_filtered_4FGL_J1257.2+3646_daily_bin605.fits scfile=/scratch/kocevski/34715/ft2_4FGL_J1257.2+3646_daily_bin605.fits outfile=/scratch/kocevski/34715/cmap_HighResolution_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20948E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    187.78       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5415       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7676       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.830       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    51.681       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5680       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3423       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1311       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86510       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=   6150.958     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2887 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.101       -.56981E-06** at limit **
   2  norm          5.3131        3.4706       -.29127E-06   -.48315E-04
   3  Prefactor     5.0506        7.9520       -.19920E-06   -.24662E-03
   4  Prefactor     1.1319        1.9373        .11319E-05    .22314E-03
   5  Prefactor     6.6212        2.9822       -.17700E-06   -.28459E-03
   6  Prefactor     .10001E-03    22.171       -.24150E-05** at limit **
   7  Prefactor     39.308        33.997       -.12860E-06   -.69653E-05
   8  Prefactor     .10000E-03    5.2892       -.97877E-08** at limit **
   9  Prefactor     187.77        101.79        .28304E-06   -.11542E-04
  10  Prefactor     2.5417        2.7111        .41545E-08    .50485E-06
  11  norm          6.7679        4.3429       -.13668E-07   -.45899E-04
  12  Prefactor     .10000E-03    13.361       -.10415E-06** at limit **
  13  Prefactor     3.3081        12.209       -.50860E-07   -.15491E-03
  14  Prefactor     10.831        9.7105        .20919E-07   -.18885E-04
  15  norm          .10000E-03    1.1064        .15591E-07** at limit **
  16  norm          51.683        21.709        .19281E-08   -.63975E-05
  17  norm          4.5686        4.9047       -.35440E-07   -.14132E-03
  18  norm          6.2227        7.2276        .41247E-07   -.85677E-04
  19  Prefactor     .10000E-03    .81823        .19677E-06** at limit **
  20  Prefactor     1.5171        5.5766        .11666E-05   -.63082E-03
  21  Prefactor     4.3287        127.21        .15323E-05   -.12253E-05
  22  Prefactor     .10000E-03    3.5092        .66990E-08** at limit **
  23  Prefactor     .10000E-03    43.883        .32359E-06** at limit **
  24  Normalizat    1.1310        .17632       -.35530E-06   -.88703E-04
  25  Prefactor     .86518        .21426        .14013E-06   -.86855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.31308
  Prefactor  = 5.05058
  Prefactor  = 1.13191
  Prefactor  = 6.62119
  Prefactor  = 0.000100007
  Prefactor  = 39.3079
  Prefactor  = 0.0001
  Prefactor  = 187.771
  Prefactor  = 2.54168
  norm       = 6.76793
  Prefactor  = 0.0001
  Prefactor  = 3.30808
  Prefactor  = 10.8307
  norm       = 0.0001
  norm       = 51.6826
  norm       = 4.56859
  norm       = 6.22267
  Prefactor  = 0.0001
  Prefactor  = 1.51707
  Prefactor  = 4.32874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13099
  Prefactor  = 0.865178
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.958     FROM HESSE     STATUS=OK           437 CALLS     3324 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3131        3.4678        .10555E-03   -1.5247    
   3  Prefactor     5.0506        8.1691        .89461E-03   -1.5258    
   4  Prefactor     1.1319        1.9408        .15270E-02   -1.5495    
   5  Prefactor     6.6212        2.9616        .85593E-04   -1.5193    
   6  Prefactor     .10001E-03    24.204        .34689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.308        34.061        .63935E-04   -1.4453    
   8  Prefactor     .10000E-03    5.2911        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     187.77        101.79        .14734E-03   -1.2959    
  10  Prefactor     2.5417        2.7164        .12976E-03   -1.5389    
  11  norm          6.7679        4.3392        .12239E-03   -1.5188    
  12  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3081        12.434        .11133E-02   -1.5344    
  14  Prefactor     10.831        9.7110        .12175E-03   -1.5050    
  15  norm          .10000E-03    1.1076        .80559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          51.683        21.711        .55788E-04   -1.4269    
  17  norm          4.5686        5.0274        .13588E-03   -1.5280    
  18  norm          6.2227        7.3779        .16091E-03   -1.5209    
  19  Prefactor     .10000E-03    .81462        .68964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5171        16.936        .17351E-02   -1.5462    
  21  Prefactor     4.3287        130.96        .19330E-03   -1.5292    
  22  Prefactor     .10000E-03    3.5105        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    43.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1310        .20724        .22560E-03   -.88763    
  25  Prefactor     .86518        .24960        .31771E-03   -.97369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11455e-09
Minuit parameter uncertainties:
  1  2.94069e-05
  2  3.46789
  3  8.17094
  4  1.94088
  5  2.96164
  6  0.000840629
  7  34.0775
  8  1.18999e-06
  9  101.888
  10  2.71656
  11  4.33939
  12  1.26327e-05
  13  12.4435
  14  9.71243
  15  1.13768e-06
  16  21.7141
  17  5.02782
  18  7.37902
  19  1.06991e-05
  20  10.141
  21  47.7326
  22  4.78006e-08
  23  2.64701e-05
  24  0.207393
  25  0.249926
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.542e+00  2.717e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.652e-01  2.499e-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.131e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 9.64e-09 +/- 1.03e-08
Energy Flux (Fixed Index): 6.24e-06 +/- 6.67e-06

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

Saving results to:
/scratch/kocevski/34715/likelihoodResults_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.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) = 6147.59216888
delta logL = 3.36602798546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6147.18857853
delta logL = 3.76961833865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29154       1.0000         .10000E-03   10000.    
     2 'Index     '    .25087E-02   1.0000          .0000       10.000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86186       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=   6147.189     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      270 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29066        .33293        .93469E-02    .16755E-04
   2  Index         .82225E-09    .54169        .50000    ** at limit **
   3  Normalizat    1.1369        .16987        .36656E-01   -.17147E-04
   4  Prefactor     .86194        .21324        .71907E-01   -.47046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.290658
  Index      = 8.22245e-10
  Normalizat = 1.13694
  Prefactor  = 0.861936
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.189     FROM HESSE     STATUS=OK            39 CALLS      309 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29066        .35131        .34986E-03   -1.5600    
   2  Index         .82225E-09    .43340        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1369        .19770        .22497E-03   -.88575    
   4  Prefactor     .86194        .24775        .31818E-03   -.97484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63794e-11
Minuit parameter uncertainties:
  1  0.351316
  2  3.80333e-05
  3  0.197831
  4  0.248076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34715': 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) = 6147.18853138
delta logL = 3.76966548562

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.907e-01  3.513e-01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  8.222e-10  3.803e-05  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.619e-01  2.481e-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.137e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.86
Ra Dec: 194.310 36.771
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.90e-09 +/- 3.51e-09
Energy Flux (Free Index): 1.46e-04 +/- 1.76e-04

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/34715/cmap_HighResolution_396144001_396403201_4FGL_J1257.2+3646_daily_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', comment='SUCCESS', photon_flux='9.64e-09', energy_flux2='1.46e-04', photon_flux_error='1.03e-08', dlogl='3.77e+00', energy_flux='6.24e-06', photon_flux2='2.90e-09', job_status='DONE', time_completed='2021-09-06 11:51:17.093838', photon_index_error2='0.00', photon_index2='0.00', ts='3.32', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='4.55e-08', energy_flux_error2='1.76e-04', EG='1.13', time_epoch_completed='1630954277.09', return_code='0', job_id='34715', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='6.67e-06', photon_flux_error2='3.51e-09', ts2='10.86', photon_index='2.03' WHERE bin_id='605' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 34715: <4FGL_J1257.2+3646_daily_bin605> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin605 194.31 36.7706 396144001 396403201 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

