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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1111
RA = 194.31, Dec = 36.7706
tmin = 527299201, tmax = 527558401
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='38590', job_status='RUN', time_executed='2021-09-06 11:46:05.224495', time_epoch_executed='1630953965.22' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38590/ft1_4FGL_J1257.2+3646_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38590/ft2_4FGL_J1257.2+3646_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38590/ft1_4FGL_J1257.2+3646_daily_bin1111.fits outfile=/scratch/kocevski/38590/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1111.fits ra=194.31 dec=36.7706 rad=12.0 tmin=527299201.0 tmax=527558401.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.95
user 4.63
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38590/ft1_filtered_4FGL_J1257.2+3646_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/38590/ft2_4FGL_J1257.2+3646_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/38590/ltcube_527299201_527558401_4FGL_J1257.2+3646_daily_bin1111.fits outfile=/scratch/kocevski/38590/expmap_527299201_527558401_4FGL_J1257.2+3646_daily_bin1111.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/38590/ltcube_527299201_527558401_4FGL_J1257.2+3646_daily_bin1111.fits
.....................!
real 190.66
user 185.15
sys 5.07

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/38590/ft1_filtered_4FGL_J1257.2+3646_daily_bin1111.fits scfile=/scratch/kocevski/38590/ft2_4FGL_J1257.2+3646_daily_bin1111.fits outfile=/scratch/kocevski/38590/cmap_527299201_527558401_4FGL_J1257.2+3646_daily_bin1111.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38590/ft1_filtered_4FGL_J1257.2+3646_daily_bin1111.fits scfile=/scratch/kocevski/38590/ft2_4FGL_J1257.2+3646_daily_bin1111.fits outfile=/scratch/kocevski/38590/cmap_HighResolution_527299201_527558401_4FGL_J1257.2+3646_daily_bin1111.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.71
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11887E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    26.397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8765       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.846       1.0000         .10000E-03   10000.    
    11 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.540       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9551       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .43959E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1179       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9868       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13926E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12077E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.181       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5052       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .53533       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=   5095.665     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2937 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.456       -.26448E-06** at limit **
   2  norm          26.398        7.2022        .78000E-07    .12815E-03
   3  Prefactor     9.4780        9.5706       -.20213E-06   -.13415E-04
   4  Prefactor     1.8780        3.7694       -.41629E-06   -.54054E-03
   5  Prefactor     1.0745        2.5636       -.44763E-06   -.92617E-03
   6  Prefactor     .10000E-03    5.5792        .39583E-07** at limit **
   7  Prefactor     45.048        36.566       -.16827E-05   -.40251E-06
   8  Prefactor     .10000E-03    9.7463       -.13943E-06** at limit **
   9  Prefactor     13.372        104.87       -.75304E-04   -.25233E-06
  10  Prefactor     15.842        10.467        .56977E-06   -.11443E-04
  11  norm          .10000E-03    2.3158        .31085E-06** at limit **
  12  Prefactor     .10000E-03    14.331        .66204E-06** at limit **
  13  Prefactor     .10000E-03    23.542       -.21231E-06** at limit **
  14  Prefactor     40.548        26.886       -.21507E-05   -.48144E-05
  15  norm          5.9545        6.4463       -.32939E-08   -.13560E-03
  16  norm          .10000E-03    7.7283        .17397E-06** at limit **
  17  norm          .10000E-03    2.9954        .20331E-06** at limit **
  18  norm          4.1116        5.4764       -.26556E-07   -.12198E-03
  19  Prefactor     1.9848        3.1632       -.26825E-06   -.40041E-03
  20  Prefactor     .10016E-03    16.738        .38160E-06** at limit **
  21  Prefactor     .10000E-03    51.437       -.11673E-05** at limit **
  22  Prefactor     15.939        24.438       -.22247E-06   -.22169E-04
  23  Prefactor     26.171        76.697       -.15754E-04    .79256E-06
  24  Normalizat    1.5054        .21863        .17205E-05   -.86319E-04
  25  Prefactor     .53511        .25009        .35973E-05    .32303E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 26.3982
  Prefactor  = 9.47799
  Prefactor  = 1.87798
  Prefactor  = 1.07449
  Prefactor  = 0.0001
  Prefactor  = 45.0484
  Prefactor  = 0.0001
  Prefactor  = 13.3716
  Prefactor  = 15.8425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5482
  norm       = 5.95447
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 4.1116
  Prefactor  = 1.98479
  Prefactor  = 0.000100155
  Prefactor  = 0.0001
  Prefactor  = 15.9394
  Prefactor  = 26.171
  Normalizat = 1.50536
  Prefactor  = 0.535113
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.665     FROM HESSE     STATUS=OK           441 CALLS     3378 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.398        7.0875        .77971E-04   -1.4680    
   3  Prefactor     9.4780        9.5796        .13017E-03   -1.5092    
   4  Prefactor     1.8780        3.6957        .16361E-03   -1.5434    
   5  Prefactor     1.0745        2.1287        .16570E-02   -1.5501    
   6  Prefactor     .10000E-03    5.5883        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.048        36.607        .59732E-04   -1.4365    
   8  Prefactor     .10000E-03    9.7494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.372        104.19        .10938E-03   -1.4976    
  10  Prefactor     15.842        10.462        .10062E-03   -1.4912    
  11  norm          .10000E-03    2.3333        .10614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.548        26.913        .62956E-04   -1.4434    
  15  norm          5.9545        6.4274        .16455E-03   -1.5220    
  16  norm          .10000E-03    7.7377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.4707        .21555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1116        5.0440        .17109E-03   -1.5302    
  19  Prefactor     1.9848        3.1299        .14748E-03   -1.5426    
  20  Prefactor     .10016E-03    18.729        .82676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.939        24.432        .10032E-03   -1.4909    
  23  Prefactor     26.171        76.962        .78291E-04   -1.4684    
  24  Normalizat    1.5054        .24908        .22563E-03   -.77628    
  25  Prefactor     .53511        .28042        .41668E-03   -1.1039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91975e-10
Minuit parameter uncertainties:
  1  9.20803e-05
  2  7.08776
  3  9.58118
  4  3.69615
  5  2.12886
  6  3.78173e-06
  7  36.6249
  8  3.36767e-06
  9  74.8298
  10  10.4627
  11  5.68178e-05
  12  5.82248e-06
  13  8.71014e-05
  14  26.9212
  15  6.42812
  16  1.08169e-05
  17  0.000177624
  18  5.04449
  19  3.13015
  20  0.00341034
  21  3.22907e-05
  22  24.4477
  23  77.2563
  24  0.249279
  25  0.28115
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.584e+01  1.046e+01  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:  5.351e-01  2.812e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.505e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.11
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 3.89e-05 +/- 2.57e-05

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) = 5095.50472918
delta logL = 0.160163953877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5095.49341681
delta logL = 0.171476318023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.798       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7640       1.0000          .0000       10.000    
     3 'Normalizat'    1.5201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52889       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=   5095.493     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      285 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.795        12.224        .94936E-04    .60833E-04
   2  Index         1.7635        .46066        .63964E-02    .12323E-03
   3  Normalizat    1.5201        .24053        .22486E-03    .75838E-05
   4  Prefactor     .52892        .27822        .41932E-03    .12200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7953
  Index      = 1.76347
  Normalizat = 1.52009
  Prefactor  = 0.52892
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.493     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.795        12.215        .37974E-05   -1.4864    
   2  Index         1.7635        .46021        .12793E-02   -.70404    
   3  Normalizat    1.5201        .24059        .89944E-05   -.77215    
   4  Prefactor     .52892        .27833        .16773E-04   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36394e-12
Minuit parameter uncertainties:
  1  12.2163
  2  0.46134
  3  0.240776
  4  0.279055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38590': 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) = 5095.49341622
delta logL = 0.171476915103

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.780e+01  1.222e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.763e+00  4.613e-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:  5.289e-01  2.791e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.520e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.48
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.76 +/- 0.46
Photon Flux (Free Index): 4.16e-08 +/- 4.26e-08
Energy Flux (Free Index): 5.57e-05 +/- 5.31e-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/38590/cmap_HighResolution_527299201_527558401_4FGL_J1257.2+3646_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='5.57e-05', photon_flux_error='3.97e-08', dlogl='1.71e-01', energy_flux='3.89e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-06 11:56:17.398329', photon_index_error2='0.46', photon_index2='1.76', ts='14.11', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='5.31e-05', EG='1.51', time_epoch_completed='1630954577.4', return_code='0', job_id='38590', GAL2='0.53', EG2='1.52', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='4.26e-08', ts2='14.48', photon_index='2.03' WHERE bin_id='1111' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 38590: <4FGL_J1257.2+3646_daily_bin1111> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1111 194.31 36.7706 527299201 527558401 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 :                                   593.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            631 sec.

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

