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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin499
RA = 194.31, Dec = 36.7706
tmin = 368668801, tmax = 368928001
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='34548', job_status='RUN', time_executed='2021-09-06 11:37:54.205539', time_epoch_executed='1630953474.21' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34548/ft1_4FGL_J1257.2+3646_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34548/ft2_4FGL_J1257.2+3646_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34548/ft1_4FGL_J1257.2+3646_daily_bin499.fits outfile=/scratch/kocevski/34548/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin499.fits ra=194.31 dec=36.7706 rad=12.0 tmin=368668801.0 tmax=368928001.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.37
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34548/ft1_filtered_4FGL_J1257.2+3646_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/34548/ft2_4FGL_J1257.2+3646_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/34548/ltcube_368668801_368928001_4FGL_J1257.2+3646_daily_bin499.fits outfile=/scratch/kocevski/34548/expmap_368668801_368928001_4FGL_J1257.2+3646_daily_bin499.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/34548/ltcube_368668801_368928001_4FGL_J1257.2+3646_daily_bin499.fits
.....................!
real 191.71
user 186.18
sys 4.34

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/34548/ft1_filtered_4FGL_J1257.2+3646_daily_bin499.fits scfile=/scratch/kocevski/34548/ft2_4FGL_J1257.2+3646_daily_bin499.fits outfile=/scratch/kocevski/34548/cmap_368668801_368928001_4FGL_J1257.2+3646_daily_bin499.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.57
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34548/ft1_filtered_4FGL_J1257.2+3646_daily_bin499.fits scfile=/scratch/kocevski/34548/ft2_4FGL_J1257.2+3646_daily_bin499.fits outfile=/scratch/kocevski/34548/cmap_HighResolution_368668801_368928001_4FGL_J1257.2+3646_daily_bin499.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.920       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3512       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44610       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.067       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .95759       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17563       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    118.54       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0848       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0287       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=   6379.546     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2979 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.926        32.385        .16432E-06    .12916E-04
   2  norm          4.3505        3.6670        .15144E-05   -.17306E-03
   3  Prefactor     15.628        7.8241        .43263E-07   -.62466E-05
   4  Prefactor     .44563        3.9659       -.56777E-06   -.40875E-03
   5  Prefactor     1.2666        2.1211       -.14061E-06   -.72282E-04
   6  Prefactor     19.713        10.706       -.13898E-07    .10650E-04
   7  Prefactor     .10000E-03    38.890       -.23752E-06** at limit **
   8  Prefactor     14.151        15.127        .43404E-07    .52782E-06
   9  Prefactor     .10000E-03    22.019       -.15984E-06** at limit **
  10  Prefactor     10.067        6.9970        .14637E-06    .60823E-05
  11  norm          .10000E-03    1.2935       -.71571E-08** at limit **
  12  Prefactor     .10000E-03    17.109        .21883E-06** at limit **
  13  Prefactor     11.674        21.787       -.30613E-06   -.25690E-04
  14  Prefactor     .10000E-03    10.759        .89391E-07** at limit **
  15  norm          .10000E-03    1.4539        .13886E-07** at limit **
  16  norm          .10000E-03    15.815       -.46498E-06** at limit **
  17  norm          .95998        3.0357        .10881E-05    .86537E-04
  18  norm          .10000E-03    2.4978       -.17065E-06** at limit **
  19  Prefactor     .10000E-03    1.1881        .89009E-07** at limit **
  20  Prefactor     .14847        6.4896       -.35469E-06    .60225E-04
  21  Prefactor     42.720        40.819        .28344E-06    .72555E-04
  22  Prefactor     .10000E-03    5.6574       -.61921E-07** at limit **
  23  Prefactor     118.60        88.635        .21293E-05    .18154E-03
  24  Normalizat    1.0847        .17988       -.23314E-05    .11062E-03
  25  Prefactor     1.0290        .21516        .18642E-05   -.77817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9264
  norm       = 4.35048
  Prefactor  = 15.6276
  Prefactor  = 0.445634
  Prefactor  = 1.26663
  Prefactor  = 19.713
  Prefactor  = 0.0001
  Prefactor  = 14.1507
  Prefactor  = 0.0001
  Prefactor  = 10.0673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6742
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.959981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.148468
  Prefactor  = 42.7201
  Prefactor  = 0.0001
  Prefactor  = 118.605
  Normalizat = 1.08466
  Prefactor  = 1.02895
 **********
 **   18 **HESSE 
 **********

 FCN=   6379.546     FROM HESSE     STATUS=OK           435 CALLS     3414 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.926        32.414        .73248E-04   -1.4613    
   2  norm          4.3505        3.6160        .56473E-03   -1.5291    
   3  Prefactor     15.628        7.8253        .10132E-03   -1.4917    
   4  Prefactor     .44563        3.5532        .24022E-03   -1.5574    
   5  Prefactor     1.2666        2.0512        .13883E-03   -1.5483    
   6  Prefactor     19.713        10.666        .90208E-04   -1.4820    
   7  Prefactor     .10000E-03    39.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.151        15.123        .10647E-03   -1.4955    
   9  Prefactor     .10000E-03    22.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.067        6.9876        .12629E-03   -1.5073    
  11  norm          .10000E-03    1.2950        .88609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.674        21.486        .11725E-03   -1.5024    
  14  Prefactor     .10000E-03    10.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4582        .94039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .95998        2.9283        .22000E-03   -1.5512    
  18  norm          .10000E-03    2.5086        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1974        .84833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .14847        9.9248        .67991E-01   -1.5631    
  21  Prefactor     42.720        40.861        .61342E-04   -1.4400    
  22  Prefactor     .10000E-03    5.6669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     118.60        89.912        .18480E-03   -1.3526    
  24  Normalizat    1.0847        .20357        .23538E-03   -.90246    
  25  Prefactor     1.0290        .24572        .30535E-03   -.91771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02247e-09
Minuit parameter uncertainties:
  1  32.4332
  2  3.61615
  3  7.82582
  4  2.51659
  5  2.05131
  6  10.6673
  7  7.63885e-05
  8  15.1274
  9  4.6083e-05
  10  6.9882
  11  1.15819e-07
  12  0.000117544
  13  21.5
  14  4.74329e-06
  15  6.66141e-08
  16  6.61281e-05
  17  2.92869
  18  1.43354e-05
  19  8.05156e-07
  20  2.42738
  21  40.8874
  22  2.51372e-06
  23  90.0152
  24  0.203716
  25  0.245987
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.007e+01  6.988e+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:  1.029e+00  2.460e-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.085e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.72e-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) = 6377.95192187
delta logL = 1.59431408171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6377.91097005
delta logL = 1.63526590076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4527       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2594       1.0000          .0000       10.000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6377.911     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      258 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4507        9.8377        .89337E-02    .66793E-03
   2  Index         3.2600        1.9464        .75726E-01    .24001E-03
   3  Normalizat    1.0032        .59567E-01    .46207E-01    .37109E-04
   4  Prefactor     1.0952        .70906E-01    .67135E-01    .29869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45069
  Index      = 3.26002
  Normalizat = 1.00315
  Prefactor  = 1.09515
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.911     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4507        16.519        .44614E-04   -1.5467    
   2  Index         3.2600        2.7579        .30377E-02   -.35543    
   3  Normalizat    1.0032        .22590        .24334E-03   -.92925    
   4  Prefactor     1.0952        .26935        .29699E-03   -.89622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.16569e-10
Minuit parameter uncertainties:
  1  9.79369
  2  2.94859
  3  0.226118
  4  0.269687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34548': 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): 102
logL (Free Index) = 6377.91096975
delta logL = 1.63526620078

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.451e+00  9.794e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.260e+00  2.949e+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:  1.095e+00  2.697e-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.003e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.81
Ra Dec: 194.310 36.771
Photon Index (Free Index): 3.26 +/- 2.95
Photon Flux (Free Index): 9.44e-08 +/- 7.56e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.06e-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/34548/cmap_HighResolution_368668801_368928001_4FGL_J1257.2+3646_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.69e-05', photon_flux_error='2.65e-08', dlogl='1.64e+00', energy_flux='2.47e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-09-06 11:49:14.858983', photon_index_error2='2.95', photon_index2='3.26', ts='4.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='1.08', time_epoch_completed='1630954154.86', return_code='0', job_id='34548', GAL2='1.10', EG2='1.00', return_code2='102', energy_flux_error='1.72e-05', photon_flux_error2='7.56e-08', ts2='7.81', photon_index='2.03' WHERE bin_id='499' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin499 194.31 36.7706 368668801 368928001 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 :                                   677.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

