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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin784
RA = 194.31, Dec = 36.7706
tmin = 442540801, tmax = 442800001
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='36350', job_status='RUN', time_executed='2021-09-06 11:44:10.510409', time_epoch_executed='1630953850.51' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='784'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36350/ft1_4FGL_J1257.2+3646_daily_bin784.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36350/ft2_4FGL_J1257.2+3646_daily_bin784.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36350/ft1_4FGL_J1257.2+3646_daily_bin784.fits outfile=/scratch/kocevski/36350/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin784.fits ra=194.31 dec=36.7706 rad=12.0 tmin=442540801.0 tmax=442800001.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.60
user 3.16
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36350/ft2_4FGL_J1257.2+3646_daily_bin784.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/36350/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin784.fits evtable="EVENTS" outfile="/scratch/kocevski/36350/ft1_filtered_4FGL_J1257.2+3646_daily_bin784.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.84
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36350/ft1_filtered_4FGL_J1257.2+3646_daily_bin784.fits" evtable="EVENTS" scfile=/scratch/kocevski/36350/ft2_4FGL_J1257.2+3646_daily_bin784.fits sctable="SC_DATA" outfile=/scratch/kocevski/36350/ltcube_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.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/36350/ft2_4FGL_J1257.2+3646_daily_bin784.fits
.....................!
real 12.92
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36350/ft1_filtered_4FGL_J1257.2+3646_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/36350/ft2_4FGL_J1257.2+3646_daily_bin784.fits sctable="SC_DATA" expcube=/scratch/kocevski/36350/ltcube_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.fits outfile=/scratch/kocevski/36350/expmap_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.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/36350/ltcube_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.fits
.....................!
real 195.07
user 185.87
sys 5.25

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/36350/ft1_filtered_4FGL_J1257.2+3646_daily_bin784.fits scfile=/scratch/kocevski/36350/ft2_4FGL_J1257.2+3646_daily_bin784.fits outfile=/scratch/kocevski/36350/cmap_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36350/ft1_filtered_4FGL_J1257.2+3646_daily_bin784.fits scfile=/scratch/kocevski/36350/ft2_4FGL_J1257.2+3646_daily_bin784.fits outfile=/scratch/kocevski/36350/cmap_HighResolution_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.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.78
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.526       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48251       1.0000         .10000E-03   10000.    
    11 'norm      '    9.7755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8715       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7804       1.0000         .10000E-03   10000.    
    16 'norm      '    9.5376       1.0000         .10000E-03   10000.    
    17 'norm      '    12.425       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5582       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98523       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97687       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=   5717.209     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2863 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.499       -.26933E-06** at limit **
   2  norm          11.204        4.3766       -.59168E-06    .28861E-04
   3  Prefactor     3.0483        6.2853        .22629E-06    .10958E-04
   4  Prefactor     1.4836        2.6472        .23471E-05   -.16877E-03
   5  Prefactor     4.4514        2.6800       -.83755E-07    .20235E-04
   6  Prefactor     .10000E-03    10.957        .22962E-07** at limit **
   7  Prefactor     14.527        27.811        .85604E-07    .51757E-06
   8  Prefactor     .10000E-03    7.6864       -.14363E-06** at limit **
   9  Prefactor     22.983        68.845        .87829E-06    .43134E-04
  10  Prefactor     .47053        4.5091        .23438E-06   -.98293E-04
  11  norm          9.7669        5.8370        .63960E-06    .11591E-02
  12  Prefactor     .10000E-03    22.495        .19133E-06** at limit **
  13  Prefactor     .10000E-03    72.720       -.52035E-05** at limit **
  14  Prefactor     7.8743        13.112        .83694E-06    .16878E-03
  15  norm          6.7799        5.5123        .26227E-06    .20887E-03
  16  norm          9.5377        9.7221        .16299E-07    .79742E-06
  17  norm          12.421        7.4345       -.19627E-06    .71676E-03
  18  norm          8.5482        10.953        .13040E-06    .13667E-03
  19  Prefactor     4.9213        4.2732       -.91722E-06   -.25920E-03
  20  Prefactor     2.5609        33.018        .10323E-04   -.45766E-04
  21  Prefactor     .10000E-03    85.904        .66691E-05** at limit **
  22  Prefactor     .10000E-03    8.6419        .24512E-06** at limit **
  23  Prefactor     10.273        61.392       -.25898E-06   -.43583E-05
  24  Normalizat    .98518        .17673       -.24905E-06    .18741E-03
  25  Prefactor     .97689        .21528       -.34376E-06    .10101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.2036
  Prefactor  = 3.04827
  Prefactor  = 1.48358
  Prefactor  = 4.45141
  Prefactor  = 0.0001
  Prefactor  = 14.527
  Prefactor  = 0.0001
  Prefactor  = 22.9834
  Prefactor  = 0.470526
  norm       = 9.76691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.8743
  norm       = 6.77992
  norm       = 9.53766
  norm       = 12.4206
  norm       = 8.54821
  Prefactor  = 4.92129
  Prefactor  = 2.56095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2735
  Normalizat = 0.985178
  Prefactor  = 0.976886
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.209     FROM HESSE     STATUS=OK           435 CALLS     3298 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.204        4.3682        .82892E-04   -1.5038    
   3  Prefactor     3.0483        6.2677        .23239E-03   -1.5359    
   4  Prefactor     1.4836        2.6267        .69470E-03   -1.5464    
   5  Prefactor     4.4514        2.6752        .91585E-04   -1.5286    
   6  Prefactor     .10000E-03    11.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.527        27.818        .10509E-03   -1.4945    
   8  Prefactor     .10000E-03    7.6901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.983        68.798        .83545E-04   -1.4749    
  10  Prefactor     .47053        24.803        .28429E-02   -1.5571    
  11  norm          9.7669        5.8871        .12817E-03   -1.5083    
  12  Prefactor     .10000E-03    22.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    73.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8743        13.581        .14292E-03   -1.5147    
  15  norm          6.7799        5.5097        .14989E-03   -1.5187    
  16  norm          9.5377        9.7240        .12976E-03   -1.5090    
  17  norm          12.421        7.5940        .10663E-03   -1.5003    
  18  norm          8.5482        11.190        .13713E-03   -1.5123    
  19  Prefactor     4.9213        4.2312        .12209E-03   -1.5264    
  20  Prefactor     2.5609        32.500        .12763E-02   -1.5388    
  21  Prefactor     .10000E-03    85.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.6596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.273        61.712        .12502E-03   -1.5067    
  24  Normalizat    .98518        .21049        .23725E-03   -.93529    
  25  Prefactor     .97689        .25602        .29922E-03   -.93504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71497e-08
Minuit parameter uncertainties:
  1  2.0249e-06
  2  4.36835
  3  6.26901
  4  2.62692
  5  2.67527
  6  1.37652e-05
  7  27.8425
  8  4.04264e-06
  9  69.0367
  10  6.83467
  11  5.88743
  12  1.22424e-07
  13  0.000220219
  14  13.586
  15  5.51007
  16  9.72559
  17  7.59455
  18  11.1923
  19  4.23145
  20  18.258
  21  0.000287397
  22  5.25023e-06
  23  50.4364
  24  0.21067
  25  0.256335
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.705e-01  6.835e+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:  9.769e-01  2.563e-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:  9.852e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36350/likelihoodResults_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.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) = 5715.20798173
delta logL = 2.00074014348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5714.76466094
delta logL = 2.44406093447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7954       1.0000          .0000       10.000    
     3 'Normalizat'    .87127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0748       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5714.765     FROM MIGRAD    STATUS=CONVERGED    252 CALLS      516 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .66884E-02    .17217E-03** at limit **
   2  Index         6.7951        2.0861        .71538E-01    .18040E-03
   3  Normalizat    .87144        .63032E-01    .23714E-02    .19210E-04
   4  Prefactor     1.0747        .77851E-01    .29918E-02    .36812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.79509
  Normalizat = 0.871441
  Prefactor  = 1.07467
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.765     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      557 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12842E-01    .14793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7951        2.6978        .29519E-02    .36722    
   3  Normalizat    .87144        .11457        .94856E-04   -.97471    
   4  Prefactor     1.0747        .14332        .59835E-03   -.90280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27951e-07
Minuit parameter uncertainties:
  1  2.25003e-08
  2  2.87658
  3  0.114606
  4  0.143373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36350': 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) = 5714.76464725
delta logL = 2.44407463096

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.250e-08  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  6.795e+00  2.877e+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.075e+00  1.434e-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.714e-01  1.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 194.310 36.771
Photon Index (Free Index): 6.80 +/- 2.88
Photon Flux (Free Index): 8.46e-08 +/- 6.65e-07
Energy Flux (Free Index): 1.02e-05 +/- 7.93e-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/36350/cmap_HighResolution_442540801_442800001_4FGL_J1257.2+3646_daily_bin784.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='2.44e+00', photon_flux2='8.46e-08', job_status='DONE', time_completed='2021-09-06 11:56:25.135152', photon_index_error2='2.88', photon_index2='6.80', ts='0.01', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.49e-08', energy_flux_error2='7.93e-05', EG='0.99', time_epoch_completed='1630954585.14', return_code='0', job_id='36350', GAL2='1.07', EG2='0.87', return_code2='102', photon_flux_error2='6.65e-07', ts2='5.14', photon_index='2.03' WHERE bin_id='784' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 36350: <4FGL_J1257.2+3646_daily_bin784> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin784 194.31 36.7706 442540801 442800001 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 :                                   719.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

