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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin455
RA = 194.31, Dec = 36.7706
tmin = 357264001, tmax = 357523201
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='34483', job_status='RUN', time_executed='2021-09-06 11:38:35.981593', time_epoch_executed='1630953515.98' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34483

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34483/ft1_4FGL_J1257.2+3646_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34483/ft2_4FGL_J1257.2+3646_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34483/ft1_4FGL_J1257.2+3646_daily_bin455.fits outfile=/scratch/kocevski/34483/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin455.fits ra=194.31 dec=36.7706 rad=12.0 tmin=357264001.0 tmax=357523201.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.69
user 3.40
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34483/ft1_filtered_4FGL_J1257.2+3646_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/34483/ft2_4FGL_J1257.2+3646_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/34483/ltcube_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.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/34483/ft2_4FGL_J1257.2+3646_daily_bin455.fits
.....................!
real 12.36
user 11.84
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34483/ft1_filtered_4FGL_J1257.2+3646_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/34483/ft2_4FGL_J1257.2+3646_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/34483/ltcube_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.fits outfile=/scratch/kocevski/34483/expmap_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.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/34483/ltcube_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.fits
.....................!
real 191.89
user 186.53
sys 4.92

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/34483/ft1_filtered_4FGL_J1257.2+3646_daily_bin455.fits scfile=/scratch/kocevski/34483/ft2_4FGL_J1257.2+3646_daily_bin455.fits outfile=/scratch/kocevski/34483/cmap_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34483/ft1_filtered_4FGL_J1257.2+3646_daily_bin455.fits scfile=/scratch/kocevski/34483/ft2_4FGL_J1257.2+3646_daily_bin455.fits outfile=/scratch/kocevski/34483/cmap_HighResolution_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.785       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2074       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68202       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.081       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2536       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3644       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10522E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11117E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3193       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.230       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84465       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1290       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=   5577.246     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2955 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.789        46.432        .30994E-06    .13621E-05
   2  norm          3.5853        5.6370       -.23874E-07   -.20164E-03
   3  Prefactor     2.9097        3.9379        .12046E-06    .43821E-05
   4  Prefactor     5.2075        4.5382       -.90991E-07   -.14567E-03
   5  Prefactor     .68198        2.9770        .98190E-06   -.30659E-03
   6  Prefactor     41.083        16.843       -.10267E-06   -.38801E-04
   7  Prefactor     .10000E-03    27.416       -.26286E-05** at limit **
   8  Prefactor     9.6017        19.155        .76560E-07   -.13178E-04
   9  Prefactor     8.2518        76.187       -.91701E-06   -.92970E-05
  10  Prefactor     4.3634        6.7666       -.68411E-07   -.13840E-03
  11  norm          1.0535        3.1018        .37127E-06   -.25152E-03
  12  Prefactor     .10000E-03    25.954        .25952E-05** at limit **
  13  Prefactor     .10000E-03    18.655       -.16560E-06** at limit **
  14  Prefactor     .10000E-03    8.5184       -.30050E-07** at limit **
  15  norm          .10000E-03    3.0768       -.22849E-07** at limit **
  16  norm          .10000E-03    4.9693        .61498E-08** at limit **
  17  norm          .10000E-03    2.9890        .52242E-06** at limit **
  18  norm          .10000E-03    3.0246        .43810E-07** at limit **
  19  Prefactor     .10000E-03    2.6359        .89386E-06** at limit **
  20  Prefactor     12.412        17.936       -.15198E-05   -.23710E-03
  21  Prefactor     .10000E-03    171.17       -.92297E-06** at limit **
  22  Prefactor     4.3229        23.508       -.80210E-06   -.45191E-04
  23  Prefactor     55.218        77.690       -.17509E-05   -.26454E-04
  24  Normalizat    .84461        .18187       -.43183E-06   -.18202E-03
  25  Prefactor     1.1290        .21786       -.20617E-06   -.14981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.7894
  norm       = 3.58528
  Prefactor  = 2.90973
  Prefactor  = 5.20752
  Prefactor  = 0.681983
  Prefactor  = 41.0828
  Prefactor  = 0.0001
  Prefactor  = 9.60167
  Prefactor  = 8.25179
  Prefactor  = 4.36344
  norm       = 1.05353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.4116
  Prefactor  = 0.0001
  Prefactor  = 4.32288
  Prefactor  = 55.2179
  Normalizat = 0.844607
  Prefactor  = 1.12896
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.246     FROM HESSE     STATUS=OK           429 CALLS     3384 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.789        46.437        .45825E-04   -1.3953    
   2  norm          3.5853        5.5594        .15485E-03   -1.5329    
   3  Prefactor     2.9097        3.9284        .16780E-03   -1.5367    
   4  Prefactor     5.2075        4.5224        .10571E-03   -1.5252    
   5  Prefactor     .68198        2.7777        .22727E-03   -1.5543    
   6  Prefactor     41.083        16.668        .62541E-04   -1.4425    
   7  Prefactor     .10000E-03    27.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6017        19.086        .12934E-03   -1.5088    
   9  Prefactor     8.2518        75.927        .13955E-03   -1.5133    
  10  Prefactor     4.3634        6.7453        .19280E-03   -1.5290    
  11  norm          1.0535        2.9930        .21456E-03   -1.5503    
  12  Prefactor     .10000E-03    26.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1006        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9728        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3371        .23847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0328        .12674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7432        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.412        17.528        .11341E-03   -1.5003    
  21  Prefactor     .10000E-03    171.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3229        23.743        .19383E-03   -1.5292    
  23  Prefactor     55.218        78.204        .53975E-04   -1.4220    
  24  Normalizat    .84461        .21878        .25274E-03   -.98435    
  25  Prefactor     1.1290        .26204        .27418E-03   -.88546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11011e-10
Minuit parameter uncertainties:
  1  46.4594
  2  5.56023
  3  3.92872
  4  4.52274
  5  2.75275
  6  16.6702
  7  0.000116592
  8  19.0982
  9  50.1455
  10  6.74649
  11  2.99344
  12  0.000123378
  13  1.36569e-05
  14  5.38706e-06
  15  5.46901e-07
  16  4.84792e-07
  17  7.15672e-05
  18  2.69304e-06
  19  0.000185248
  20  17.535
  21  0.000108061
  22  20.2743
  23  78.3495
  24  0.219014
  25  0.262341
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.363e+00  6.746e+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.129e+00  2.623e-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.446e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34483/likelihoodResults_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.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) = 5577.18490716
delta logL = 0.0610938162499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5577.18230534
delta logL = 0.0636956363605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6590       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4686       1.0000          .0000       10.000    
     3 'Normalizat'    .83207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1382       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=   5577.182     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      258 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6575        104.67        .62492E-02    .47247E-03
   2  Index         2.4700        6.2255        .13814        .10976E-03
   3  Normalizat    .83195        .57619E-01    .44027E-01    .13890E-04
   4  Prefactor     1.1386        .62174E-01    .61767E-01    .56015E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65749
  Index      = 2.47005
  Normalizat = 0.831951
  Prefactor  = 1.13856
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.182     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6575        9.3875        .14946E-03   -1.5382    
   2  Index         2.4700        1.8437        .81995E-02   -.53053    
   3  Normalizat    .83195        .21741        .25452E-03   -.98894    
   4  Prefactor     1.1386        .26487        .27318E-03   -.88244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78481e-08
Minuit parameter uncertainties:
  1  9.39269
  2  1.90504
  3  0.217633
  4  0.265179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34483': 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) = 5577.18230208
delta logL = 0.0636988939477

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.657e+00  9.393e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.470e+00  1.905e+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.139e+00  2.652e-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.320e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/34483/cmap_HighResolution_357264001_357523201_4FGL_J1257.2+3646_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-06 11:49:56.745535', job_id='34483', GAL2='1.14', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1630954196.75', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.37e-02', ts2='0.80', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='455' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 34483: <4FGL_J1257.2+3646_daily_bin455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin455 194.31 36.7706 357264001 357523201 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 :                                   677.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

