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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1556
RA = 194.31, Dec = 36.7706
tmin = 642643201, tmax = 642902401
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='40922', job_status='RUN', time_executed='2021-09-06 11:52:16.527533', time_epoch_executed='1630954336.53' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40922/ft1_4FGL_J1257.2+3646_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40922/ft2_4FGL_J1257.2+3646_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40922/ft1_4FGL_J1257.2+3646_daily_bin1556.fits outfile=/scratch/kocevski/40922/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1556.fits ra=194.31 dec=36.7706 rad=12.0 tmin=642643201.0 tmax=642902401.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 4.47
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/40922/ft2_4FGL_J1257.2+3646_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/40922/ltcube_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.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/40922/ft2_4FGL_J1257.2+3646_daily_bin1556.fits
.....................!
real 12.39
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/40922/ft2_4FGL_J1257.2+3646_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/40922/ltcube_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.fits outfile=/scratch/kocevski/40922/expmap_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.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/40922/ltcube_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.fits
.....................!
real 190.67
user 185.30
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/40922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1556.fits scfile=/scratch/kocevski/40922/ft2_4FGL_J1257.2+3646_daily_bin1556.fits outfile=/scratch/kocevski/40922/cmap_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.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.82
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40922/ft1_filtered_4FGL_J1257.2+3646_daily_bin1556.fits scfile=/scratch/kocevski/40922/ft2_4FGL_J1257.2+3646_daily_bin1556.fits outfile=/scratch/kocevski/40922/cmap_HighResolution_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6640       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    177.71       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8845       1.0000         .10000E-03   10000.    
    11 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.095       1.0000         .10000E-03   10000.    
    15 'norm      '    .90390       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9914       1.0000         .10000E-03   10000.    
    18 'norm      '    .64866E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81413E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3981       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.331       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.210       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24219E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98781       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85099       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=   5782.720     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2981 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.409        .20887E-06** at limit **
   2  norm          3.5732        3.3243       -.23880E-07   -.33762E-04
   3  Prefactor     .10000E-03    2.6982        .14497E-08** at limit **
   4  Prefactor     3.6641        3.0806        .95313E-07    .72383E-05
   5  Prefactor     5.1050        2.9637        .31042E-07   -.15618E-04
   6  Prefactor     .10000E-03    4.1470        .66927E-07** at limit **
   7  Prefactor     38.099        28.389        .19293E-06    .55871E-06
   8  Prefactor     .10000E-03    13.804       -.19278E-06** at limit **
   9  Prefactor     177.78        85.985        .51310E-05    .31789E-03
  10  Prefactor     3.8823        5.0526        .89299E-07   -.86612E-04
  11  norm          .10000E-03    6.3322        .59961E-06** at limit **
  12  Prefactor     .10000E-03    29.892       -.56927E-06** at limit **
  13  Prefactor     14.766        19.760       -.21734E-05   -.26598E-03
  14  Prefactor     10.114        13.963       -.10498E-06   -.48389E-04
  15  norm          .89502        3.0574       -.15781E-06    .67977E-04
  16  norm          .10000E-03    5.0253       -.23467E-07** at limit **
  17  norm          4.9744        4.4206       -.47155E-06   -.77247E-03
  18  norm          .99951E-01    7.6526        .17325E-05   -.74502E-03
  19  Prefactor     .79244E-01    1.5930       -.10718E-05    .68807E-03
  20  Prefactor     4.4134        11.239        .76183E-05    .11033E-05
  21  Prefactor     31.357        54.675        .11836E-05    .15566E-03
  22  Prefactor     32.211        19.855        .14610E-06    .14781E-03
  23  Prefactor     .10000E-03    204.97        .16902E-05** at limit **
  24  Normalizat    .98826        .16477       -.92929E-06    .13645E-03
  25  Prefactor     .85043        .19978        .16480E-06   -.19768E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.57318
  Prefactor  = 0.0001
  Prefactor  = 3.66407
  Prefactor  = 5.10504
  Prefactor  = 0.0001
  Prefactor  = 38.0988
  Prefactor  = 0.0001
  Prefactor  = 177.783
  Prefactor  = 3.8823
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.766
  Prefactor  = 10.1139
  norm       = 0.895024
  norm       = 0.0001
  norm       = 4.97445
  norm       = 0.0999507
  Prefactor  = 0.0792442
  Prefactor  = 4.41343
  Prefactor  = 31.3574
  Prefactor  = 32.211
  Prefactor  = 0.000100001
  Normalizat = 0.98826
  Prefactor  = 0.850427
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.720     FROM HESSE     STATUS=NOT POSDEF   433 CALLS     3414 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5732        3.2688        .11900E-03   -1.5330    
   3  Prefactor     .10000E-03    2.6441        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6641        3.0221        .10886E-03   -1.5325    
   5  Prefactor     5.1050        2.9204        .94040E-04   -1.5256    
   6  Prefactor     .10000E-03    4.0633        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.099        28.285        .64928E-04   -1.4473    
   8  Prefactor     .10000E-03    13.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     177.78        91.612        .15138E-03   -1.3033    
  10  Prefactor     3.8823        4.9729        .18471E-03   -1.5314    
  11  norm          .10000E-03    6.3891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.766        33.320        .10438E-03   -1.4939    
  14  Prefactor     10.114        13.371        .12612E-03   -1.5072    
  15  norm          .89502        2.8615        .22359E-03   -1.5519    
  16  norm          .10000E-03    4.9127        .16649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9744        101.62        .11016E-03   -1.5262    
  18  norm          .99951E-01    7970.2        .31392E-02   -1.5645    
  19  Prefactor     .79244E-01    15.462        .16937E-02   -1.5652    
  20  Prefactor     4.4134        14.864        .96020E-03   -1.5288    
  21  Prefactor     31.357        54.257        .71583E-04   -1.4587    
  22  Prefactor     32.211        20.791        .70603E-04   -1.4572    
  23  Prefactor     .10000E-03    202.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98826        .24718        .22036E-03   -.93425    
  25  Prefactor     .85043        .26423        .29493E-03   -.97895    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10738e-06
Minuit parameter uncertainties:
  1  4.69185e-05
  2  3.26896
  3  1.60383e-06
  4  3.02223
  5  2.92045
  6  1.06286e-06
  7  28.2953
  8  3.36981e-06
  9  91.6852
  10  4.97344
  11  3.02057e-05
  12  6.77382e-05
  13  33.3616
  14  13.3752
  15  2.86194
  16  1.92554e-06
  17  45.0531
  18  55.8141
  19  2.21301
  20  14.8769
  21  54.3423
  22  20.7957
  23  0.00084364
  24  0.247467
  25  0.264625
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5782.72046462

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.882e+00  4.973e+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.504e-01  2.646e-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.883e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/40922/likelihoodResults_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.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) = 5781.97932064
delta logL = 0.741143988034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5781.97626681
delta logL = 0.744197809366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4316       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1660       1.0000          .0000       10.000    
     3 'Normalizat'    .99268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85130       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=   5781.976     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4316        5.1075        .47823E-02    .23824E-02
   2  Index         1.1659        .49597        .27632       -.47765E-04
   3  Normalizat    .99268        .15807        .46075E-01    .74741E-05
   4  Prefactor     .85129        .19877        .66640E-01    .16811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43158
  Index      = 1.16593
  Normalizat = 0.992684
  Prefactor  = 0.851292
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.976     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4316        6.9295        .17316E-03   -1.5287    
   2  Index         1.1659        .73900        .11065E-01   -.87386    
   3  Normalizat    .99268        .18775        .21983E-03   -.93276    
   4  Prefactor     .85129        .23611        .29479E-03   -.97864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22406e-09
Minuit parameter uncertainties:
  1  6.93071
  2  0.745686
  3  0.187872
  4  0.236396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40922': 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) = 5781.97626681
delta logL = 0.744197812085

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.432e+00  6.931e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.166e+00  7.457e-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.513e-01  2.364e-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.927e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.17 +/- 0.75
Photon Flux (Free Index): 5.63e-09 +/- 9.21e-09
Energy Flux (Free Index): 5.20e-05 +/- 7.69e-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/40922/cmap_HighResolution_642643201_642902401_4FGL_J1257.2+3646_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', energy_flux2='5.20e-05', dlogl='7.44e-01', photon_flux2='5.63e-09', job_status='DONE', time_completed='2021-09-06 12:04:05.845054', photon_index_error2='0.75', photon_index2='1.17', ts='0.93', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='7.69e-05', EG='0.99', time_epoch_completed='1630955045.85', return_code='102', job_id='40922', GAL2='0.85', EG2='0.99', return_code2='0', photon_flux_error2='9.21e-09', ts2='2.41', photon_index='2.03' WHERE bin_id='1556' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:04:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 40922: <4FGL_J1257.2+3646_daily_bin1556> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1556> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 11:51:35 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:51:36 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:51:36 2021
Terminated at Mon Sep  6 12:04:06 2021
Results reported at Mon Sep  6 12:04:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1556 194.31 36.7706 642643201 642902401 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

