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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin785
RA = 194.31, Dec = 36.7706
tmin = 442800001, tmax = 443059201
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='36351', job_status='RUN', time_executed='2021-09-06 11:43:29.860009', time_epoch_executed='1630953809.86' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36351

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36351/ft1_4FGL_J1257.2+3646_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36351/ft2_4FGL_J1257.2+3646_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36351/ft1_4FGL_J1257.2+3646_daily_bin785.fits outfile=/scratch/kocevski/36351/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin785.fits ra=194.31 dec=36.7706 rad=12.0 tmin=442800001.0 tmax=443059201.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.62
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36351/ft1_filtered_4FGL_J1257.2+3646_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/36351/ft2_4FGL_J1257.2+3646_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/36351/ltcube_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.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/36351/ft2_4FGL_J1257.2+3646_daily_bin785.fits
.....................!
real 11.67
user 11.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36351/ft1_filtered_4FGL_J1257.2+3646_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/36351/ft2_4FGL_J1257.2+3646_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/36351/ltcube_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.fits outfile=/scratch/kocevski/36351/expmap_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.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/36351/ltcube_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.fits
.....................!
real 190.67
user 186.31
sys 3.81

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/36351/ft1_filtered_4FGL_J1257.2+3646_daily_bin785.fits scfile=/scratch/kocevski/36351/ft2_4FGL_J1257.2+3646_daily_bin785.fits outfile=/scratch/kocevski/36351/cmap_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36351/ft1_filtered_4FGL_J1257.2+3646_daily_bin785.fits scfile=/scratch/kocevski/36351/ft2_4FGL_J1257.2+3646_daily_bin785.fits outfile=/scratch/kocevski/36351/cmap_HighResolution_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.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.69
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.154       1.0000         .10000E-03   10000.    
     2 'norm      '    17.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12658E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.688       1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.606       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6896       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.576       1.0000         .10000E-03   10000.    
    15 'norm      '    10.339       1.0000         .10000E-03   10000.    
    16 'norm      '    17.503       1.0000         .10000E-03   10000.    
    17 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.277       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.953       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.913       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.045       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99402       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79382       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=   5917.844     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2867 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.151        29.359       -.43787E-05    .26219E-04
   2  norm          17.504        4.9099       -.17322E-06    .11769E-03
   3  Prefactor     2.4021        5.3173       -.33078E-05   -.50104E-03
   4  Prefactor     3.3907        2.6688       -.11482E-06   -.44212E-04
   5  Prefactor     2.0343        1.9159       -.22631E-06   -.11018E-03
   6  Prefactor     3.6702        7.0567       -.12253E-05   -.24536E-03
   7  Prefactor     .10000E-03    73.983        .38126E-05** at limit **
   8  Prefactor     10.688        13.009       -.74763E-06    .92584E-05
   9  Prefactor     95.618        81.164        .11179E-04    .47846E-04
  10  Prefactor     4.6898        4.6922        .21374E-05    .49931E-04
  11  norm          2.3771        3.8992       -.20542E-05   -.60669E-03
  12  Prefactor     .10000E-03    11.545        .71323E-07** at limit **
  13  Prefactor     .10000E-03    16.849       -.12729E-06** at limit **
  14  Prefactor     19.579        15.593       -.17783E-05    .62413E-04
  15  norm          10.341        6.3847       -.28851E-06    .49276E-04
  16  norm          17.503        11.070        .10765E-06    .41759E-03
  17  norm          .10000E-03    2.0599       -.56561E-07** at limit **
  18  norm          12.278        6.0928       -.54841E-06    .10467E-03
  19  Prefactor     .10000E-03    1.5696       -.38899E-06** at limit **
  20  Prefactor     .10000E-03    4.0026       -.32061E-07** at limit **
  21  Prefactor     70.967        58.154        .13510E-04    .60063E-04
  22  Prefactor     22.916        16.124       -.27779E-05    .54595E-04
  23  Prefactor     17.962        59.267       -.16503E-03    .39668E-04
  24  Normalizat    .99375        .16721        .10356E-04   -.37772E-03
  25  Prefactor     .79407        .20312       -.24422E-05    .40539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1509
  norm       = 17.5043
  Prefactor  = 2.40215
  Prefactor  = 3.39069
  Prefactor  = 2.03428
  Prefactor  = 3.67025
  Prefactor  = 0.000100003
  Prefactor  = 10.6878
  Prefactor  = 95.6184
  Prefactor  = 4.68976
  norm       = 2.37713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5791
  norm       = 10.3405
  norm       = 17.5028
  norm       = 0.0001
  norm       = 12.2779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.9666
  Prefactor  = 22.9159
  Prefactor  = 17.9617
  Normalizat = 0.993748
  Prefactor  = 0.794071
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.844     FROM HESSE     STATUS=OK           427 CALLS     3294 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.151        29.353        .85099E-04   -1.4766    
   2  norm          17.504        4.9094        .81451E-04   -1.4871    
   3  Prefactor     2.4021        5.2992        .25482E-03   -1.5398    
   4  Prefactor     3.3907        2.6697        .10151E-03   -1.5340    
   5  Prefactor     2.0343        1.9106        .99009E-04   -1.5423    
   6  Prefactor     3.6702        7.0425        .21083E-03   -1.5325    
   7  Prefactor     .10000E-03    74.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.688        13.006        .12255E-03   -1.5054    
   9  Prefactor     95.618        80.987        .41106E-04   -1.3749    
  10  Prefactor     4.6898        4.6876        .15853E-03   -1.5275    
  11  norm          2.3771        3.8639        .18019E-03   -1.5400    
  12  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.579        15.591        .90525E-04   -1.4823    
  15  norm          10.341        6.3751        .12461E-03   -1.5065    
  16  norm          17.503        11.072        .47867E-03   -1.4871    
  17  norm          .10000E-03    2.0828        .10709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.278        6.0544        .11433E-03   -1.5007    
  19  Prefactor     .10000E-03    1.6061        .18784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0086        .15029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     70.967        58.191        .47657E-04   -1.4021    
  22  Prefactor     22.916        16.140        .83681E-04   -1.4750    
  23  Prefactor     17.962        59.341        .94284E-04   -1.4860    
  24  Normalizat    .99375        .19625        .22740E-03   -.93240    
  25  Prefactor     .79407        .23754        .31471E-03   -.99947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48818e-09
Minuit parameter uncertainties:
  1  29.3724
  2  4.9095
  3  5.30024
  4  2.66978
  5  1.91067
  6  7.04411
  7  0.000998934
  8  13.0098
  9  81.0812
  10  4.68795
  11  3.86434
  12  1.8e-05
  13  8.6537e-05
  14  15.5941
  15  6.37549
  16  11.0728
  17  1.04255e-05
  18  6.05467
  19  2.36781e-05
  20  2.25459e-05
  21  58.2378
  22  16.1434
  23  59.537
  24  0.196394
  25  0.237845
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.690e+00  4.688e+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:  7.941e-01  2.378e-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.937e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/36351/likelihoodResults_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.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) = 5917.76602276
delta logL = 0.0775446078687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5917.74718012
delta logL = 0.0963872449638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7659       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7394       1.0000          .0000       10.000    
     3 'Normalizat'    .99881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79075       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=   5917.747     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7660        5.9542        .16727E-03   -.15775E-03
   2  Index         1.7393        .63623        .10313E-01    .13274E-03
   3  Normalizat    .99881        .18778        .22691E-03   -.49500E-04
   4  Prefactor     .79075        .23540        .31533E-03   -.36162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76596
  Index      = 1.7393
  Normalizat = 0.998808
  Prefactor  = 0.790751
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.747     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7660        5.9041        .66906E-05   -1.5228    
   2  Index         1.7393        .63108        .20626E-02   -.71040    
   3  Normalizat    .99881        .18793        .90765E-05   -.93070    
   4  Prefactor     .79075        .23560        .12613E-04   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5984e-11
Minuit parameter uncertainties:
  1  5.90473
  2  0.634031
  3  0.188054
  4  0.235904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36351': 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) = 5917.74718011
delta logL = 0.0963872510983

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.766e+00  5.905e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.739e+00  6.340e-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:  7.908e-01  2.359e-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.988e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.74 +/- 0.63
Photon Flux (Free Index): 1.30e-08 +/- 1.67e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.87e-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/36351/cmap_HighResolution_442800001_443059201_4FGL_J1257.2+3646_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='1.87e-05', photon_flux_error='1.78e-08', dlogl='9.64e-02', energy_flux='1.15e-05', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-06 11:55:25.201597', photon_index_error2='0.63', photon_index2='1.74', ts='3.07', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='2.87e-05', EG='0.99', time_epoch_completed='1630954525.2', return_code='0', job_id='36351', GAL2='0.79', EG2='1.00', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='1.67e-08', ts2='3.26', photon_index='2.03' WHERE bin_id='785' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 36351: <4FGL_J1257.2+3646_daily_bin785> in cluster <slac> Done

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

Your job looked like:

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

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

