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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin779
RA = 194.31, Dec = 36.7706
tmin = 441244801, tmax = 441504001
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='36342', job_status='RUN', time_executed='2021-09-06 11:42:53.489234', time_epoch_executed='1630953773.49' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36342/ft1_4FGL_J1257.2+3646_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36342/ft2_4FGL_J1257.2+3646_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36342/ft1_4FGL_J1257.2+3646_daily_bin779.fits outfile=/scratch/kocevski/36342/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin779.fits ra=194.31 dec=36.7706 rad=12.0 tmin=441244801.0 tmax=441504001.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.44
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36342/ft2_4FGL_J1257.2+3646_daily_bin779.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/36342/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin779.fits evtable="EVENTS" outfile="/scratch/kocevski/36342/ft1_filtered_4FGL_J1257.2+3646_daily_bin779.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36342/ft1_filtered_4FGL_J1257.2+3646_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/36342/ft2_4FGL_J1257.2+3646_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/36342/ltcube_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.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/36342/ft2_4FGL_J1257.2+3646_daily_bin779.fits
.....................!
real 12.44
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36342/ft1_filtered_4FGL_J1257.2+3646_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/36342/ft2_4FGL_J1257.2+3646_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/36342/ltcube_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.fits outfile=/scratch/kocevski/36342/expmap_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.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/36342/ltcube_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.fits
.....................!
real 191.97
user 185.71
sys 5.44

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/36342/ft1_filtered_4FGL_J1257.2+3646_daily_bin779.fits scfile=/scratch/kocevski/36342/ft2_4FGL_J1257.2+3646_daily_bin779.fits outfile=/scratch/kocevski/36342/cmap_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.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.66
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36342/ft1_filtered_4FGL_J1257.2+3646_daily_bin779.fits scfile=/scratch/kocevski/36342/ft2_4FGL_J1257.2+3646_daily_bin779.fits outfile=/scratch/kocevski/36342/cmap_HighResolution_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.165       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8072       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8340       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.042       1.0000         .10000E-03   10000.    
    16 'norm      '    .15081       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.221       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94089       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6489.480     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2473 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.110        3.4080       -.61406E-06    .38337E-02
   2  norm          3.9300        2.7759       -.15329E-06   -.81567E-04
   3  Prefactor     8.6003        1.1529        .44376E-06   -.53289E-03
   4  Prefactor     1.4375        1.6173        .13300E-07   -.47139E-04
   5  Prefactor     5.8066        2.3464        .11584E-06    .73630E-04
   6  Prefactor     .10000E-03    3.0309        .13898E-06** at limit **
   7  Prefactor     4.8076        2.0901        .18445E-05   -.21012E-02
   8  Prefactor     9.6004        1.3123        .48582E-06   -.64877E-03
   9  Prefactor     19.362        1.1739        .72893E-07    .16605E-03
  10  Prefactor     .10000E-03    3.2625        .26214E-06** at limit **
  11  norm          8.1738        4.5679        .36624E-05    .65395E-03
  12  Prefactor     .10002E-03    32.458        .26376E-05** at limit **
  13  Prefactor     10.305        1.1702       -.12707E-06    .16576E-02
  14  Prefactor     .10000E-03    16.057        .18240E-05** at limit **
  15  norm          10.039        6.5915        .35445E-05    .75814E-03
  16  norm          .10016E-03    342.59        .22149E-04** at limit **
  17  norm          .10000E-03    2.2983       -.29028E-06** at limit **
  18  norm          5.1515        4.4793       -.29104E-05   -.24807E-03
  19  Prefactor     .10000E-03    4.4122       -.16662E-05** at limit **
  20  Prefactor     .10000E-03    3.4259        .39911E-06** at limit **
  21  Prefactor     56.200        1.5345       -.42667E-07    .22935E-02
  22  Prefactor     .10000E-03    6.1777       -.13764E-05** at limit **
  23  Prefactor     .10001E-03    26.472       -.86795E-05** at limit **
  24  Normalizat    .94087        .18365       -.39606E-06   -.18438E-03
  25  Prefactor     .93626        .22990       -.21020E-05   -.16608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.11
  norm       = 3.92997
  Prefactor  = 8.60025
  Prefactor  = 1.43747
  Prefactor  = 5.80663
  Prefactor  = 0.0001
  Prefactor  = 4.80765
  Prefactor  = 9.60039
  Prefactor  = 19.3617
  Prefactor  = 0.0001
  norm       = 8.17382
  Prefactor  = 0.00010002
  Prefactor  = 10.3045
  Prefactor  = 0.0001
  norm       = 10.0395
  norm       = 0.000100162
  norm       = 0.0001
  norm       = 5.15148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.1997
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.940865
  Prefactor  = 0.936262
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.480     FROM HESSE     STATUS=OK           493 CALLS     2966 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.110        39.683        .28713E-02   -1.5012    
   2  norm          3.9300        2.7909        .50870E-02   -1.5311    
   3  Prefactor     8.6003        6.4500        .34178E-02   -1.5121    
   4  Prefactor     1.4375        1.6244        .89982E-02   -1.5468    
   5  Prefactor     5.8066        2.3494        .41665E-02   -1.5226    
   6  Prefactor     .10000E-03    3.0264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8076        28.964        .45742E-02   -1.5269    
   8  Prefactor     9.6004        13.847        .32320E-02   -1.5088    
   9  Prefactor     19.362        30.336        .22749E-02   -1.4828    
  10  Prefactor     .10000E-03    6.3052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1738        4.8771        .35049E-02   -1.5136    
  12  Prefactor     .10002E-03    32.591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.305        26.714        .31209E-02   -1.5066    
  14  Prefactor     .10000E-03    15.892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.039        7.0681        .31612E-02   -1.5074    
  16  norm          .10016E-03    9.9541        .14112       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1515        4.5278        .44276E-02   -1.5254    
  19  Prefactor     .10000E-03    2.1927        .35542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     56.200        36.876        .13375E-02   -1.4207    
  22  Prefactor     .10000E-03    6.1706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    26.535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94087        .16011        .45422E-01   -.95039    
  25  Prefactor     .93626        .19652        .45459E-01   -.94885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74481e-07
Minuit parameter uncertainties:
  1  39.7699
  2  2.79103
  3  6.45051
  4  1.62445
  5  2.34941
  6  4.91592e-06
  7  23.6176
  8  13.8521
  9  30.3597
  10  3.69019e-05
  11  4.87735
  12  0.00163535
  13  26.7447
  14  1.19073e-05
  15  7.06868
  16  0.00254259
  17  3.36039e-06
  18  4.52813
  19  3.74992e-06
  20  7.54764e-06
  21  36.8909
  22  7.52438e-05
  23  0.000883677
  24  0.16019
  25  0.196669
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.690e-05  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.363e-01  1.967e-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.409e-01  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36342/likelihoodResults_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.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): 102
logL (Free Index) = 6489.48047416
delta logL = -0.00073647633053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6489.47973697
delta logL = 7.20356183592e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0760       1.0000          .0000       10.000    
     3 'Normalizat'    .94088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93624       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6489.471     FROM MIGRAD    STATUS=FAILED       189 CALLS      345 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16052        9.6952        .29259E-02   -.20960E-01
   2  Index         2.9579        .29199        .50000       -.21607E-04
   3  Normalizat    .93903        .77314E-02    .22456E-03    .11289    
   4  Prefactor     .93472        .97674E-02    .28295E-03   -.14108    
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6489.471     FROM SIMPLEX   STATUS=UNCHANGED     61 CALLS      406 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16052        9.6952        .24792E-03   -.20960E-01
   2  Index         2.9579        .29199        .68007E-03   -.21607E-04
   3  Normalizat    .93903        .77314E-02    .49754E-04    .11289    
   4  Prefactor     .93472        .97674E-02    .49691E-04   -.14108    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6489.471     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      466 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16283        3.8150        .37638E-05   -.64419E-04
   2  Index         2.9606        2.7048        .10777E-04    .70628E-06
   3  Normalizat    .93583        .18628        .17782E-05   -.51552E-04
   4  Prefactor     .93879        .23084       -.87939E-06   -.31231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.162832
  Index      = 2.96058
  Normalizat = 0.93583
  Prefactor  = 0.938787
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.471     FROM HESSE     STATUS=OK            25 CALLS      491 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16283        3.7925        .23407E-04   -1.5789    
   2  Index         2.9606        2.6991        .96881E-04   -.42013    
   3  Normalizat    .93583        .18622        .89825E-05   -.95212    
   4  Prefactor     .93879        .23085        .11318E-04   -.94799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57615e-12
Minuit parameter uncertainties:
  1  1.5713
  2  2.88784
  3  0.186348
  4  0.231093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36342': 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) = 6489.47117912
delta logL = 0.00855857093211

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.628e-01  1.571e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.961e+00  2.888e+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:  9.388e-01  2.311e-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.358e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/36342/cmap_HighResolution_441244801_441504001_4FGL_J1257.2+3646_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-06 11:55:41.667149', job_id='36342', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630954541.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.56e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='779' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 36342: <4FGL_J1257.2+3646_daily_bin779> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin779 194.31 36.7706 441244801 441504001 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 :                                   732.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

