/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 228 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 = 7383
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin308
RA = 194.31, Dec = 36.7706
tmin = 319161601, tmax = 319420801
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='32881', job_status='RUN', time_executed='2021-09-06 11:34:23.317963', time_epoch_executed='1630953263.32' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32881/ft1_4FGL_J1257.2+3646_daily_bin308.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32881/ft2_4FGL_J1257.2+3646_daily_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32881/ft1_4FGL_J1257.2+3646_daily_bin308.fits outfile=/scratch/kocevski/32881/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin308.fits ra=194.31 dec=36.7706 rad=12.0 tmin=319161601.0 tmax=319420801.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.46
user 4.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32881/ft2_4FGL_J1257.2+3646_daily_bin308.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/32881/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/32881/ft1_filtered_4FGL_J1257.2+3646_daily_bin308.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/32881/ft1_filtered_4FGL_J1257.2+3646_daily_bin308.fits" evtable="EVENTS" scfile=/scratch/kocevski/32881/ft2_4FGL_J1257.2+3646_daily_bin308.fits sctable="SC_DATA" outfile=/scratch/kocevski/32881/ltcube_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.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/32881/ft2_4FGL_J1257.2+3646_daily_bin308.fits
.....................!
real 11.60
user 11.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32881/ft1_filtered_4FGL_J1257.2+3646_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/32881/ft2_4FGL_J1257.2+3646_daily_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/32881/ltcube_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.fits outfile=/scratch/kocevski/32881/expmap_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.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/32881/ltcube_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.fits
.....................!
real 190.42
user 185.34
sys 4.72

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/32881/ft1_filtered_4FGL_J1257.2+3646_daily_bin308.fits scfile=/scratch/kocevski/32881/ft2_4FGL_J1257.2+3646_daily_bin308.fits outfile=/scratch/kocevski/32881/cmap_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32881/ft1_filtered_4FGL_J1257.2+3646_daily_bin308.fits scfile=/scratch/kocevski/32881/ft2_4FGL_J1257.2+3646_daily_bin308.fits outfile=/scratch/kocevski/32881/cmap_HighResolution_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24035       1.0000         .10000E-03   10000.    
     2 'norm      '    10.477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27135E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    79.035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6777       1.0000         .10000E-03   10000.    
    16 'norm      '    .83179E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70332E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.335       1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.890       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87457       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2003       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=   5164.546     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     2956 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12787E-03    24.766       -.40290E-05** at limit **
   2  norm          10.485        3.9469        .34451E-07   -.81929E-04
   3  Prefactor     .10000E-03    1.9556        .25246E-07** at limit **
   4  Prefactor     .10000E-03    1.6016       -.72388E-07** at limit **
   5  Prefactor     .10000E-03    .75928        .13873E-07** at limit **
   6  Prefactor     9.0051        9.3627        .37023E-06    .17339E-03
   7  Prefactor     5.7810        37.555       -.43615E-05   -.33438E-03
   8  Prefactor     .10000E-03    17.293       -.10878E-06** at limit **
   9  Prefactor     .10000E-03    18.104        .70014E-07** at limit **
  10  Prefactor     .10000E-03    1.8548        .10675E-07** at limit **
  11  norm          .10000E-03    1.4298        .12673E-06** at limit **
  12  Prefactor     78.989        55.945        .83223E-07   -.11343E-03
  13  Prefactor     .10000E-03    15.016        .41250E-06** at limit **
  14  Prefactor     .10000E-03    7.9821       -.28698E-08** at limit **
  15  norm          4.6741        3.8517       -.17726E-06   -.47637E-03
  16  norm          .10000E-03    8.9289       -.56102E-06** at limit **
  17  norm          .10000E-03    2.0425        .70858E-06** at limit **
  18  norm          .10000E-03    4.5003        .24731E-06** at limit **
  19  Prefactor     .70254E-01    8.0548        .10032E-04   -.41890E-03
  20  Prefactor     .10000E-03    4.3017        .89668E-06** at limit **
  21  Prefactor     .10000E-03    18.209        .44907E-06** at limit **
  22  Prefactor     15.347        23.495        .16103E-05    .39878E-03
  23  Prefactor     71.927        73.070       -.65057E-06   -.13709E-03
  24  Normalizat    .87407        .18080        .97827E-06   -.64916E-03
  25  Prefactor     1.2008        .22499       -.28287E-05   -.71832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000127872
  norm       = 10.4852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00507
  Prefactor  = 5.78103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 78.9895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.67409
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0702538
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.3475
  Prefactor  = 71.9269
  Normalizat = 0.874067
  Prefactor  = 1.20078
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.546     FROM HESSE     STATUS=OK           421 CALLS     3377 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12787E-03    29.229        .10389       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.485        3.8744        .83166E-04   -1.5060    
   3  Prefactor     .10000E-03    1.9578        .98145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3552        .17376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .76362        .61123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0051        9.3648        .13359E-03   -1.5108    
   7  Prefactor     5.7810        39.462        .16747E-03   -1.5227    
   8  Prefactor     .10000E-03    17.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8583        .95578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4400        .83933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     78.989        55.626        .45173E-04   -1.3928    
  13  Prefactor     .10000E-03    15.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.0437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6741        3.8495        .12437E-03   -1.5276    
  16  norm          .10000E-03    39.323        .41368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1262        .20142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5636        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .70254E-01    8.1167        .15534E-02   -1.5655    
  20  Prefactor     .10000E-03    4.3414        .14615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.347        23.839        .10228E-03   -1.4924    
  23  Prefactor     71.927        73.504        .47348E-04   -1.4010    
  24  Normalizat    .87407        .21785        .23842E-03   -.97377    
  25  Prefactor     1.2008        .27111        .26724E-03   -.86307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20455e-09
Minuit parameter uncertainties:
  1  0.0571132
  2  3.87447
  3  3.27951e-06
  4  9.75236e-06
  5  1.08025e-06
  6  9.36631
  7  30.2363
  8  4.4675e-05
  9  2.28551e-05
  10  7.46229e-07
  11  1.17457e-05
  12  55.6626
  13  0.000118936
  14  4.9535e-06
  15  3.84971
  16  3.44691e-05
  17  7.69282e-05
  18  3.30886e-05
  19  1.5094
  20  0.000143084
  21  0.000155243
  22  23.854
  23  73.5974
  24  0.218067
  25  0.271428
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.462e-07  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.201e+00  2.714e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.741e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32881/likelihoodResults_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.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): 102
logL (Free Index) = 5164.54832988
delta logL = -0.00245827530762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5164.54587215
delta logL = -5.44860085938e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9997       1.0000          .0000       10.000    
     3 'Normalizat'    .87404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2008       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5164.546     FROM MIGRAD    STATUS=FAILED        88 CALLS      237 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    26.358        .98773E-03** at limit **
   2  Index         1.9351        6.6976        .50000        .10189E-03
   3  Normalizat    .87407        .15437E-01    .23842E-03   -.69142E-05
   4  Prefactor     1.2008        .20025E-01    .26724E-03   -.32502E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5164.546     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      362 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    26.358        .23014E-03** at limit **
   2  Index         1.9351        6.6976        .23162E-03    .10189E-03
   3  Normalizat    .87407        .15437E-01    .32667E-05   -.69142E-05
   4  Prefactor     1.2008        .20025E-01    .22537E-05   -.32502E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5164.546     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      411 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.450        .19755E-02** at limit **
   2  Index         1.5117        5.2715        .50000        .80763E-07
   3  Normalizat    .87407        .15487E-01    .95366E-05    .50903E-03
   4  Prefactor     1.2008        .20089E-01    .10690E-04    .46859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.51175
  Normalizat = 0.874066
  Prefactor  = 1.20079
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.546     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.14        .39509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5117        7.4846        .50000       -.77211    
   3  Normalizat    .87407        .35013E-01    .19073E-05   -.97377    
   4  Prefactor     1.2008        .45402E-01    .21379E-05   -.86307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99545e-10
Minuit parameter uncertainties:
  1  2.3301e-06
  2  482.224
  3  0.0350144
  4  0.0454038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32881': 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) = 5164.54586392
delta logL = 7.68345216784e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.330e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.512e+00  4.822e+02  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.201e+00  4.540e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.741e-01  3.501e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/32881/cmap_HighResolution_319161601_319420801_4FGL_J1257.2+3646_daily_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-06 11:45:35.960965', job_id='32881', GAL2='1.20', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630953935.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='7.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='308' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 32881: <4FGL_J1257.2+3646_daily_bin308> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin308> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:24 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:26 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:30:26 2021
Terminated at Mon Sep  6 11:45:36 2021
Results reported at Mon Sep  6 11:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin308 194.31 36.7706 319161601 319420801 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 :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

