/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 174 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_bin560
RA = 194.31, Dec = 36.7706
tmin = 384480001, tmax = 384739201
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='34643', job_status='RUN', time_executed='2021-09-06 11:38:56.437901', time_epoch_executed='1630953536.44' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34643/ft1_4FGL_J1257.2+3646_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34643/ft2_4FGL_J1257.2+3646_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34643/ft1_4FGL_J1257.2+3646_daily_bin560.fits outfile=/scratch/kocevski/34643/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin560.fits ra=194.31 dec=36.7706 rad=12.0 tmin=384480001.0 tmax=384739201.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.00
user 3.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34643/ft1_filtered_4FGL_J1257.2+3646_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/34643/ft2_4FGL_J1257.2+3646_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/34643/ltcube_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.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/34643/ft2_4FGL_J1257.2+3646_daily_bin560.fits
.....................!
real 12.49
user 12.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34643/ft1_filtered_4FGL_J1257.2+3646_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/34643/ft2_4FGL_J1257.2+3646_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/34643/ltcube_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.fits outfile=/scratch/kocevski/34643/expmap_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.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/34643/ltcube_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.fits
.....................!
real 190.33
user 185.06
sys 4.91

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/34643/ft1_filtered_4FGL_J1257.2+3646_daily_bin560.fits scfile=/scratch/kocevski/34643/ft2_4FGL_J1257.2+3646_daily_bin560.fits outfile=/scratch/kocevski/34643/cmap_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34643/ft1_filtered_4FGL_J1257.2+3646_daily_bin560.fits scfile=/scratch/kocevski/34643/ft2_4FGL_J1257.2+3646_daily_bin560.fits outfile=/scratch/kocevski/34643/cmap_HighResolution_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.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.99
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6035       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7124       1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   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      '    9.0086       1.0000         .10000E-03   10000.    
    17 'norm      '    6.5040       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    123.23       1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.369       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.557       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63982       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=   5773.057     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2850 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5901        .98969E-07** at limit **
   2  norm          3.6035        2.6433        .33994E-07    .17744E-04
   3  Prefactor     .10000E-03    3.4928        .30715E-06** at limit **
   4  Prefactor     1.8236        1.7101       -.15033E-07   -.55880E-05
   5  Prefactor     1.6273        1.7165       -.49193E-08   -.11102E-04
   6  Prefactor     21.535        12.537       -.64405E-07    .12109E-04
   7  Prefactor     .10000E-03    13.285       -.69580E-08** at limit **
   8  Prefactor     .10000E-03    10.976        .17605E-06** at limit **
   9  Prefactor     44.097        70.830       -.16217E-05   -.83920E-05
  10  Prefactor     8.7120        6.0638       -.29863E-07    .97214E-04
  11  norm          .10000E-03    1.8609       -.19560E-06** at limit **
  12  Prefactor     20.285        44.684       -.11585E-05   -.54282E-04
  13  Prefactor     .10000E-03    13.257       -.10154E-06** at limit **
  14  Prefactor     .10000E-03    8.0074        .92148E-07** at limit **
  15  norm          .10000E-03    1.5179       -.20692E-08** at limit **
  16  norm          9.0082        8.9006       -.16883E-06   -.29044E-04
  17  norm          6.5025        4.0865        .10480E-06    .59060E-03
  18  norm          .10000E-03    3.7337        .90992E-07** at limit **
  19  Prefactor     .10000E-03    1.6675       -.15558E-05** at limit **
  20  Prefactor     .10000E-03    9.3269       -.69589E-06** at limit **
  21  Prefactor     123.19        71.043        .11251E-05    .21708E-03
  22  Prefactor     57.360        27.067       -.31238E-06    .92584E-04
  23  Prefactor     35.538        67.621       -.13372E-05    .95393E-05
  24  Normalizat    1.2314        .20931        .49286E-05    .20790E-03
  25  Prefactor     .63956        .24509       -.71379E-05    .16830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.60349
  Prefactor  = 0.0001
  Prefactor  = 1.82355
  Prefactor  = 1.62726
  Prefactor  = 21.5349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.0967
  Prefactor  = 8.71199
  norm       = 0.0001
  Prefactor  = 20.2848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.00819
  norm       = 6.50249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.191
  Prefactor  = 57.3596
  Prefactor  = 35.5382
  Normalizat = 1.23141
  Prefactor  = 0.639558
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.057     FROM HESSE     STATUS=OK           421 CALLS     3271 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6035        2.6420        .99628E-04   -1.5328    
   3  Prefactor     .10000E-03    3.5129        .13875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8236        1.7237        .90899E-04   -1.5438    
   5  Prefactor     1.6273        1.7142        .98442E-04   -1.5453    
   6  Prefactor     21.535        12.520        .86309E-04   -1.4780    
   7  Prefactor     .10000E-03    13.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.097        70.928        .60345E-04   -1.4379    
  10  Prefactor     8.7120        6.0611        .13580E-03   -1.5118    
  11  norm          .10000E-03    1.8781        .10126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.285        44.862        .88820E-04   -1.4807    
  13  Prefactor     .10000E-03    13.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.0267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5212        .91410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.0082        8.9040        .13354E-03   -1.5108    
  17  norm          6.5025        4.0760        .11611E-03   -1.5198    
  18  norm          .10000E-03    3.7387        .14290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3000        .17653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     123.19        71.780        .18129E-03   -1.3484    
  22  Prefactor     57.360        27.060        .52965E-04   -1.4192    
  23  Prefactor     35.538        67.679        .67207E-04   -1.4515    
  24  Normalizat    1.2314        .21916        .21944E-03   -.85638    
  25  Prefactor     .63956        .25376        .35355E-03   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76551e-10
Minuit parameter uncertainties:
  1  8.52829e-06
  2  2.64206
  3  1.42886e-05
  4  1.72375
  5  1.71425
  6  12.5213
  7  7.02397e-06
  8  1.18352e-05
  9  71.0646
  10  6.0615
  11  7.06421e-06
  12  44.937
  13  1.02822e-05
  14  2.19471e-06
  15  1.76946e-07
  16  8.90534
  17  4.07616
  18  4.1066e-06
  19  2.12774e-05
  20  5.62202e-05
  21  71.8307
  22  27.0656
  23  67.8259
  24  0.219319
  25  0.254214
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.712e+00  6.062e+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:  6.396e-01  2.542e-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.231e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.07
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.49e-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) = 5772.86291505
delta logL = 0.19445952362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5772.84315383
delta logL = 0.214220743086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7124       1.0000          .0000       10.000    
     3 'Normalizat'    1.2412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63483       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=   5772.843     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      281 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.535        7.7047        .12345E-03    .57372E-04
   2  Index         1.7122        .47496        .71649E-02    .10718E-03
   3  Normalizat    1.2412        .20991        .21867E-03   -.17781E-04
   4  Prefactor     .63477        .25191        .35483E-03    .57031E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5353
  Index      = 1.71223
  Normalizat = 1.24124
  Prefactor  = 0.63477
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.843     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.535        7.6793        .49381E-05   -1.5059    
   2  Index         1.7122        .47339        .14330E-02   -.71757    
   3  Normalizat    1.2412        .21006        .87468E-05   -.85338    
   4  Prefactor     .63477        .25211        .14193E-04   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65578e-12
Minuit parameter uncertainties:
  1  7.67999
  2  0.47464
  3  0.210205
  4  0.252561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34643': 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) = 5772.84315364
delta logL = 0.214220938699

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.054e+01  7.680e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.712e+00  4.746e-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:  6.348e-01  2.526e-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.241e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.71 +/- 0.47
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 3.56e-05 +/- 3.96e-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/34643/cmap_HighResolution_384480001_384739201_4FGL_J1257.2+3646_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='3.56e-05', photon_flux_error='2.30e-08', dlogl='2.14e-01', energy_flux='2.14e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-06 11:49:17.154674', photon_index_error2='0.47', photon_index2='1.71', ts='6.07', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='3.96e-05', EG='1.23', time_epoch_completed='1630954157.15', return_code='0', job_id='34643', GAL2='0.63', EG2='1.24', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='2.22e-08', ts2='6.48', photon_index='2.03' WHERE bin_id='560' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 34643: <4FGL_J1257.2+3646_daily_bin560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin560 194.31 36.7706 384480001 384739201 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

