/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 217 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 = 7435
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin313
RA = 194.31, Dec = 36.7706
tmin = 320457601, tmax = 320716801
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='32888', job_status='RUN', time_executed='2021-09-06 11:34:11.645587', time_epoch_executed='1630953251.65' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32888/ft1_4FGL_J1257.2+3646_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32888/ft2_4FGL_J1257.2+3646_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32888/ft1_4FGL_J1257.2+3646_daily_bin313.fits outfile=/scratch/kocevski/32888/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin313.fits ra=194.31 dec=36.7706 rad=12.0 tmin=320457601.0 tmax=320716801.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.81
user 3.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32888/ft1_filtered_4FGL_J1257.2+3646_daily_bin313.fits" evtable="EVENTS" scfile=/scratch/kocevski/32888/ft2_4FGL_J1257.2+3646_daily_bin313.fits sctable="SC_DATA" outfile=/scratch/kocevski/32888/ltcube_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.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/32888/ft2_4FGL_J1257.2+3646_daily_bin313.fits
.....................!
real 12.00
user 11.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32888/ft1_filtered_4FGL_J1257.2+3646_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/32888/ft2_4FGL_J1257.2+3646_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/32888/ltcube_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.fits outfile=/scratch/kocevski/32888/expmap_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.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/32888/ltcube_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.fits
.....................!
real 189.94
user 185.13
sys 4.43

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/32888/ft1_filtered_4FGL_J1257.2+3646_daily_bin313.fits scfile=/scratch/kocevski/32888/ft2_4FGL_J1257.2+3646_daily_bin313.fits outfile=/scratch/kocevski/32888/cmap_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32888/ft1_filtered_4FGL_J1257.2+3646_daily_bin313.fits scfile=/scratch/kocevski/32888/ft2_4FGL_J1257.2+3646_daily_bin313.fits outfile=/scratch/kocevski/32888/cmap_HighResolution_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3113       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3828       1.0000         .10000E-03   10000.    
    11 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6583       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17120E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.848       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3314       1.0000         .10000E-03   10000.    
    16 'norm      '    16.566       1.0000         .10000E-03   10000.    
    17 'norm      '    .12588E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76503       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3768       1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.273       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1503       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79905       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=   6237.083     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2946 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.882       -.68059E-07** at limit **
   2  norm          9.9812        4.8030       -.12310E-07    .11533E-04
   3  Prefactor     23.160        11.091       -.27177E-07   -.44444E-04
   4  Prefactor     5.3100        3.3274       -.69178E-08    .21531E-05
   5  Prefactor     11.140        4.0125        .58845E-08   -.16471E-05
   6  Prefactor     .10000E-03    12.779       -.53934E-07** at limit **
   7  Prefactor     .10000E-03    53.440        .88643E-06** at limit **
   8  Prefactor     .10000E-03    7.3550       -.27567E-07** at limit **
   9  Prefactor     .10000E-03    48.399       -.67996E-06** at limit **
  10  Prefactor     7.3795        6.8876        .26948E-06    .14780E-03
  11  norm          .10000E-03    3.2093       -.65300E-08** at limit **
  12  Prefactor     2.6558        149.97        .17095E-05    .76111E-04
  13  Prefactor     .10040E-03    55.686        .91313E-05** at limit **
  14  Prefactor     12.860        18.258        .50278E-06    .18206E-04
  15  norm          3.3307        3.7496        .12023E-06   -.24129E-04
  16  norm          16.566        11.811        .15288E-07    .29628E-04
  17  norm          .10000E-03    1.6860        .76257E-06** at limit **
  18  norm          1.6640        3.5363       -.12084E-05   -.98955E-03
  19  Prefactor     .77263        2.9927       -.10336E-06   -.43762E-04
  20  Prefactor     .10000E-03    12.044        .83324E-06** at limit **
  21  Prefactor     .10000E-03    279.07        .21066E-05** at limit **
  22  Prefactor     8.3761        13.652       -.84627E-08   -.12253E-04
  23  Prefactor     57.375        82.742       -.34036E-05   -.14942E-03
  24  Normalizat    1.1500        .18780       -.23299E-05   -.44316E-03
  25  Prefactor     .79949        .22019        .36828E-05   -.16273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.98122
  Prefactor  = 23.1603
  Prefactor  = 5.30999
  Prefactor  = 11.1403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37952
  norm       = 0.0001
  Prefactor  = 2.65576
  Prefactor  = 0.000100402
  Prefactor  = 12.8598
  norm       = 3.33068
  norm       = 16.5658
  norm       = 0.0001
  norm       = 1.66398
  Prefactor  = 0.77263
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.37613
  Prefactor  = 57.3752
  Normalizat = 1.14996
  Prefactor  = 0.799494
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.083     FROM HESSE     STATUS=OK           435 CALLS     3381 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9812        4.8135        .10472E-03   -1.5076    
   3  Prefactor     23.160        11.090        .83227E-04   -1.4745    
   4  Prefactor     5.3100        3.3313        .10111E-03   -1.5247    
   5  Prefactor     11.140        4.0090        .88337E-04   -1.5040    
   6  Prefactor     .10000E-03    13.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3795        6.8731        .14761E-03   -1.5165    
  11  norm          .10000E-03    3.2699        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6558        153.53        .12500E-02   -1.5382    
  13  Prefactor     .10040E-03    91.203        .61726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.860        18.167        .11175E-03   -1.4991    
  15  norm          3.3307        3.7192        .15338E-03   -1.5343    
  16  norm          16.566        11.807        .98403E-04   -1.4894    
  17  norm          .10000E-03    2.6626        .18954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6640        3.5849        .21422E-03   -1.5450    
  19  Prefactor     .77263        2.9605        .24785E-03   -1.5532    
  20  Prefactor     .10000E-03    12.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    281.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3761        13.646        .13851E-03   -1.5129    
  23  Prefactor     57.375        83.221        .26505E-03   -1.4192    
  24  Normalizat    1.1500        .21292        .22979E-03   -.88164    
  25  Prefactor     .79949        .24617        .32548E-03   -.99747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23483e-09
Minuit parameter uncertainties:
  1  2.07671e-05
  2  4.8137
  3  11.0913
  4  3.33146
  5  4.00913
  6  3.07925e-05
  7  0.000150684
  8  1.49594e-05
  9  0.000251901
  10  6.87382
  11  1.9846e-05
  12  40.4933
  13  0.0121214
  14  18.1748
  15  3.71943
  16  11.8084
  17  2.64327e-05
  18  3.5854
  19  2.96108
  20  0.000121598
  21  0.00225733
  22  13.6508
  23  83.3899
  24  0.213079
  25  0.246508
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.380e+00  6.874e+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:  7.995e-01  2.465e-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.150e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.69e-05

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

Saving results to:
/scratch/kocevski/32888/likelihoodResults_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.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) = 6237.03362044
delta logL = 0.0489960345822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6237.03176143
delta logL = 0.0508550449431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0912       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3022       1.0000          .0000       10.000    
     3 'Normalizat'    1.1338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81071       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=   6237.032     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      307 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0917        8.3679        .15375E-03    .78158E-04
   2  Index         2.3010        1.0323        .80224E-02    .43673E-03
   3  Normalizat    1.1339        .21472        .23109E-03    .27305E-03
   4  Prefactor     .81060        .24929        .32342E-03    .28560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.09168
  Index      = 2.30098
  Normalizat = 1.13388
  Prefactor  = 0.810603
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.032     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0917        7.4555        .61500E-05   -1.5214    
   2  Index         2.3010        .91868        .16045E-02   -.57020    
   3  Normalizat    1.1339        .21211        .46217E-04   -.88671    
   4  Prefactor     .81060        .24789        .12937E-04   -.99339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77236e-10
Minuit parameter uncertainties:
  1  7.45662
  2  0.926138
  3  0.21227
  4  0.248235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32888': 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) = 6237.03175963
delta logL = 0.0508568471505

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.092e+00  7.457e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.301e+00  9.261e-01  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.106e-01  2.482e-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.134e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.30 +/- 0.93
Photon Flux (Free Index): 4.09e-08 +/- 5.65e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.38e-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/32888/cmap_HighResolution_320457601_320716801_4FGL_J1257.2+3646_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='1.54e-05', photon_flux_error='2.61e-08', dlogl='5.09e-02', energy_flux='1.81e-05', photon_flux2='4.09e-08', job_status='DONE', time_completed='2021-09-06 11:46:16.819182', photon_index_error2='0.93', photon_index2='2.30', ts='2.47', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.79e-08', energy_flux_error2='1.38e-05', EG='1.15', time_epoch_completed='1630953976.82', return_code='0', job_id='32888', GAL2='0.81', EG2='1.13', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='5.65e-08', ts2='2.57', photon_index='2.03' WHERE bin_id='313' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 32888: <4FGL_J1257.2+3646_daily_bin313> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin313> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:24 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:26 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:30:26 2021
Terminated at Mon Sep  6 11:46:17 2021
Results reported at Mon Sep  6 11:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin313 194.31 36.7706 320457601 320716801 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 :                                   723.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

