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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin480
RA = 194.31, Dec = 36.7706
tmin = 363744001, tmax = 364003201
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='34520', job_status='RUN', time_executed='2021-09-06 11:38:14.026601', time_epoch_executed='1630953494.03' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34520/ft1_4FGL_J1257.2+3646_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34520/ft2_4FGL_J1257.2+3646_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34520/ft1_4FGL_J1257.2+3646_daily_bin480.fits outfile=/scratch/kocevski/34520/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin480.fits ra=194.31 dec=36.7706 rad=12.0 tmin=363744001.0 tmax=364003201.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.30
user 3.03
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34520/ft1_filtered_4FGL_J1257.2+3646_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/34520/ft2_4FGL_J1257.2+3646_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/34520/ltcube_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.fits outfile=/scratch/kocevski/34520/expmap_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.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/34520/ltcube_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.fits
.....................!
real 192.29
user 186.06
sys 5.49

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/34520/ft1_filtered_4FGL_J1257.2+3646_daily_bin480.fits scfile=/scratch/kocevski/34520/ft2_4FGL_J1257.2+3646_daily_bin480.fits outfile=/scratch/kocevski/34520/cmap_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34520/ft1_filtered_4FGL_J1257.2+3646_daily_bin480.fits scfile=/scratch/kocevski/34520/ft2_4FGL_J1257.2+3646_daily_bin480.fits outfile=/scratch/kocevski/34520/cmap_HighResolution_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.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/34520/ft1_filtered_4FGL_J1257.2+3646_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/34520/ft2_4FGL_J1257.2+3646_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34520/Model_4FGL_J1257.2+3646_daily_bin480.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/34520/ft1_filtered_4FGL_J1257.2+3646_daily_bin480.fits.....................!
real 46.25
user 44.72
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4617       1.0000         .10000E-03   10000.    
    11 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12128E-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      '    7.4757       1.0000         .10000E-03   10000.    
    18 'norm      '    .15522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5705       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84475       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94245       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=   5614.301     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2927 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    69.937        .54370E-04** at limit **
   2  norm          6.0969        3.0414       -.77833E-07   -.19708E-03
   3  Prefactor     8.1778        6.8219       -.81660E-07   -.31189E-03
   4  Prefactor     2.9211        2.2233       -.51968E-07   -.20505E-03
   5  Prefactor     .10000E-03    .82800       -.21871E-07** at limit **
   6  Prefactor     .10000E-03    2.7516        .34314E-07** at limit **
   7  Prefactor     9.5920        31.645       -.41078E-04   -.64220E-05
   8  Prefactor     .10000E-03    7.5409        .10422E-07** at limit **
   9  Prefactor     .10000E-03    26.953        .48990E-05** at limit **
  10  Prefactor     3.4645        3.8500       -.27995E-06    .56444E-04
  11  norm          .10000E-03    2.3577       -.32554E-07** at limit **
  12  Prefactor     5.4022        60.908        .15871E-04    .31634E-05
  13  Prefactor     34.020        21.343       -.11582E-05    .21057E-03
  14  Prefactor     .10000E-03    22.219       -.26122E-05** at limit **
  15  norm          .10000E-03    1.3134        .15186E-07** at limit **
  16  norm          .10000E-03    6.3127        .54675E-08** at limit **
  17  norm          7.4726        5.6184        .86773E-06    .23031E-02
  18  norm          .15352        14.098       -.28861E-05    .11302E-03
  19  Prefactor     1.7553        1.8453       -.44732E-07    .27485E-03
  20  Prefactor     .10000E-03    5.2773       -.28150E-08** at limit **
  21  Prefactor     3.5647        85.618       -.11904E-04   -.49172E-05
  22  Prefactor     14.662        17.308       -.10583E-05    .25764E-04
  23  Prefactor     .10000E-03    56.765       -.40296E-04** at limit **
  24  Normalizat    .84443        .15881        .34562E-05   -.10210E-03
  25  Prefactor     .94292        .19585       -.12317E-05    .20463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 6.0969
  Prefactor  = 8.17781
  Prefactor  = 2.92114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.59199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46445
  norm       = 0.0001
  Prefactor  = 5.40221
  Prefactor  = 34.0203
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.47265
  norm       = 0.15352
  Prefactor  = 1.75526
  Prefactor  = 0.0001
  Prefactor  = 3.56474
  Prefactor  = 14.6622
  Prefactor  = 0.0001
  Normalizat = 0.844431
  Prefactor  = 0.942918
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.301     FROM HESSE     STATUS=NOT POSDEF   427 CALLS     3354 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    66.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0969        2.9454        .82970E-04   -1.5214    
   3  Prefactor     8.1778        6.6311        .14020E-03   -1.5136    
   4  Prefactor     2.9211        2.1529        .87697E-04   -1.5366    
   5  Prefactor     .10000E-03    .80292        .13309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5979        .12138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5920        31.033        .12881E-03   -1.5088    
   8  Prefactor     .10000E-03    7.1167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4645        3.7234        .15007E-03   -1.5336    
  11  norm          .10000E-03    2.2517        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4022        57.403        .17304E-03   -1.5243    
  13  Prefactor     34.020        27.845        .68702E-04   -1.4541    
  14  Prefactor     .10000E-03    21.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2399        .83847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4726        83.454        .93662E-04   -1.5161    
  18  norm          .15352        8600.8        .34842E-02   -1.5630    
  19  Prefactor     1.7553        2.0970        .99937E-04   -1.5443    
  20  Prefactor     .10000E-03    4.9880        .16802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5647        80.571        .21388E-03   -1.5330    
  22  Prefactor     14.662        17.295        .10461E-03   -1.4942    
  23  Prefactor     .10000E-03    53.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84443        .19742        .22191E-03   -.98441    
  25  Prefactor     .94292        .21127        .26853E-03   -.94657    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.70711e-09
Minuit parameter uncertainties:
  1  0.0012611
  2  2.94545
  3  6.63169
  4  2.15297
  5  2.44131e-06
  6  3.27678e-06
  7  31.085
  8  3.39435e-06
  9  2.19074e-05
  10  3.72366
  11  3.82976e-06
  12  35.2626
  13  27.8555
  14  2.25724e-05
  15  2.16388e-07
  16  1.49774e-05
  17  50.033
  18  79.6928
  19  2.09706
  20  4.44194e-06
  21  33.9461
  22  17.3008
  23  1.0478e-05
  24  0.197591
  25  0.211452
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.464e+00  3.724e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.429e-01  2.115e-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.444e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 8.50e-06 +/- 9.14e-06

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

Saving results to:
/scratch/kocevski/34520/likelihoodResults_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.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) = 5614.2909192
delta logL = 0.0105708738656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5614.28705408
delta logL = 0.0144359903061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8609       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8995       1.0000          .0000       10.000    
     3 'Normalizat'    .84617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94183       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=   5614.287     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8634        4.8888        .16043E-03    .32476E-03
   2  Index         1.9002        .75696        .10119E-01    .56909E-04
   3  Normalizat    .84620        .17804        .22170E-03   -.78971E-04
   4  Prefactor     .94184        .22745        .26867E-03   -.10625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86337
  Index      = 1.90017
  Normalizat = 0.846203
  Prefactor  = 0.941844
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.287     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8634        4.7561        .64173E-05   -1.5315    
   2  Index         1.9002        .73693        .40475E-03   -.66870    
   3  Normalizat    .84620        .17820        .88679E-05   -.98377    
   4  Prefactor     .94184        .22770        .10747E-04   -.94694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08597e-10
Minuit parameter uncertainties:
  1  4.75661
  2  0.741335
  3  0.178325
  4  0.227928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34520': 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) = 5614.28705288
delta logL = 0.0144371909073

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.863e+00  4.757e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.900e+00  7.413e-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:  9.418e-01  2.279e-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.462e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.90 +/- 0.74
Photon Flux (Free Index): 1.15e-08 +/- 1.62e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.68e-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/34520/cmap_HighResolution_363744001_364003201_4FGL_J1257.2+3646_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='1.03e-05', photon_flux_error='1.41e-08', dlogl='1.44e-02', energy_flux='8.50e-06', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-06 11:49:44.711296', photon_index_error2='0.74', photon_index2='1.90', ts='1.91', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='5.52e-08', energy_flux_error2='1.68e-05', EG='0.84', time_epoch_completed='1630954184.71', return_code='102', job_id='34520', GAL2='0.94', EG2='0.85', return_code2='0', energy_flux_error='9.14e-06', photon_flux_error2='1.62e-08', ts2='1.94', photon_index='2.03' WHERE bin_id='480' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 34520: <4FGL_J1257.2+3646_daily_bin480> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin480 194.31 36.7706 363744001 364003201 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 :                                   688.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

