aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 18 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7520
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1718
RA = 194.31, Dec = 36.7706
tmin = 684633601, tmax = 684892801
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='123458', job_status='RUN', time_executed='2022-09-16 17:03:13.747057', time_epoch_executed='1663372993.75' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123458

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123458/ft1_4FGL_J1257.2+3646_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123458/ft2_4FGL_J1257.2+3646_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123458/ft1_4FGL_J1257.2+3646_daily_bin1718.fits outfile=/scratch/kocevski/123458/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1718.fits ra=194.31 dec=36.7706 rad=12.0 tmin=684633601.0 tmax=684892801.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.25
user 3.00
sys 0.21

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

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

Number of photons that the gtmktime cut: 80

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123458/ft1_filtered_4FGL_J1257.2+3646_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/123458/ft2_4FGL_J1257.2+3646_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/123458/ltcube_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.fits outfile=/scratch/kocevski/123458/expmap_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.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/123458/ltcube_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.fits
.....................!
real 191.97
user 186.29
sys 5.16

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/123458/ft1_filtered_4FGL_J1257.2+3646_daily_bin1718.fits scfile=/scratch/kocevski/123458/ft2_4FGL_J1257.2+3646_daily_bin1718.fits outfile=/scratch/kocevski/123458/cmap_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.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.55
user 0.39
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123458/ft1_filtered_4FGL_J1257.2+3646_daily_bin1718.fits', '/scratch/kocevski/123458/ft2_4FGL_J1257.2+3646_daily_bin1718.fits', expMap='/scratch/kocevski/123458/expmap_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.fits', expCube='/scratch/kocevski/123458/ltcube_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123458/Model_4FGL_J1257.2+3646_daily_bin1718.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  0.000e+00  1.000e+06 ( 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/123458/ft1_filtered_4FGL_J1257.2+3646_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/123458/ft2_4FGL_J1257.2+3646_daily_bin1718.fits
Exposure map: /scratch/kocevski/123458/expmap_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.fits
Exposure cube: /scratch/kocevski/123458/ltcube_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123458/Model_4FGL_J1257.2+3646_daily_bin1718.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) = 838.562332081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83736       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18386E+06   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4121       1.0000          .0000       .10000E+07
     4 'Prefactor '    .77731E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .39008       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34782       1.0000          .0000       .10000E+07
     7 'Prefactor '    .41600E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38969E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .17742E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .72791E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .68662E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .62049E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .19199E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .27542E-02   1.0000          .0000       .10000E+07
    15 'norm      '    48.402       1.0000          .0000       .10000E+07
    16 'Prefactor '    .17764E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    .48228E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.6240       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.1450       1.0000          .0000       .10000E+07
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   838.4511     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2811 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19609E-02    520.02        .49947E-05** at limit **
   2  Prefactor     .18386E+06    1.3669       -.33101E-09   -.22915    
   3  Prefactor     .10405E-03    856.61       -.40743E-05** at limit **
   4  Prefactor     .41044E-03    215.92       -.58116E-05** at limit **
   5  Prefactor     .16037E-06    142.40        .16908E-05** at limit **
   6  Prefactor     .11213E-07    127.80       -.79720E-06** at limit **
   7  Prefactor     .55511E-10    50.301       -.35346E-06** at limit **
   8  Prefactor      .0000        8.0317       -.69310E-08** at limit **
   9  norm           .0000        6.4481       -.11606E-07** at limit **
  10  Prefactor     .13488E-03    93.027       -.13058E-05** at limit **
  11  Prefactor      .0000        11.983        .73881E-07** at limit **
  12  norm           .0000        4.4069       -.89700E-07** at limit **
  13  norm          .55511E-10    13.243       -.16533E-06** at limit **
  14  norm          .55511E-10    19.841        .62726E-06** at limit **
  15  norm          48.122        27.000        .20038E-06   -.99656E-02
  16  Prefactor      .0000        2.9699        .12375E-07** at limit **
  17  Prefactor     .11102E-09    17.109        .15153E-06** at limit **
  18  Prefactor     14.875        106.78        .10782E-05    .36411E-01
  19  Prefactor     9.1177        1.4330        .48612E-07   -.15493E-01
  20  Normalizat    .10000E-01    .10422       -.56307E-06** at limit **
  21  Prefactor     .68046        .22529        .78145E-05   -.44986E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00196087
  Prefactor  = 183859
  Prefactor  = 0.000104048
  Prefactor  = 0.000410445
  Prefactor  = 1.60372e-07
  Prefactor  = 1.12133e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.00013488
  Prefactor  = 0
  norm       = 0
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 48.1221
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 14.8746
  Prefactor  = 9.11772
  Normalizat = 0.01
  Prefactor  = 0.680463
 **********
 **   18 **HESSE 
 **********

 FCN=   838.4511     FROM HESSE     STATUS=OK           345 CALLS     3156 TOTAL
                     EDM=   .35E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19609E-02    912.47        .50190E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18386E+06    31444.        .32639E-05   -.68450    
   3  Prefactor     .10405E-03    885.56        .91116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41044E-03    297.00        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16037E-06    142.37        .90645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11213E-07    127.76        .95799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    50.289        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        8.0229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        6.4520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13488E-03    440.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        11.981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.4072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    13.237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    19.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          48.122        27.238        .14375E-03   -1.5569    
  16  Prefactor      .0000        2.9611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    17.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.875        201.29        .34110E-03   -1.5631    
  19  Prefactor     9.1177        21.096        .33118E-03   -1.5648    
  20  Normalizat    .10000E-01    .10113        .13073       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .68046        .24716        .42196E-01   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000353242
Minuit parameter uncertainties:
  1  2.67565
  2  31478.2
  3  0.607183
  4  0.69832
  5  0.00955728
  6  0.00239282
  7  8.61688e-05
  8  2.16489e-06
  9  3.09634e-06
  10  0.487375
  11  1.47782e-05
  12  6.41632e-06
  13  4.92925e-05
  14  7.72008e-05
  15  27.2378
  16  1.01593e-06
  17  8.56467e-05
  18  109.443
  19  21.0965
  20  2.39156e-08
  21  0.247561
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  2.165e-06  0.000e+00  1.000e+06 ( 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.805e-01  2.476e-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.000e-02  2.392e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123458/likelihoodResults_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.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) = 838.456272591
delta logL = -0.00517863210962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 838.451094117
delta logL = -1.57873500939e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   838.4511     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      242 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    13.308       -.25386E-05** at limit **
   2  Index         1.5819        3.0456        .98519E-04    .10671E-10
   3  Normalizat    .10000E-01    .10581        .10821E-04** at limit **
   4  Prefactor     .68046        .21906       -.10767E-04    .12720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 1.58186
  Normalizat = 0.01
  Prefactor  = 0.680464
 **********
 **   18 **HESSE 
 **********

 FCN=   838.4511     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      277 TOTAL
                     EDM=   .83E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    .10266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5819        5.7290        .41680       -.75272    
   3  Normalizat    .10000E-01    .14503E-05    .13073       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68046        .85750E-03    .42140E-01   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.3157e-14
Minuit parameter uncertainties:
  1  6.69398e-06
  2  12981.2
  3  2.97747e-09
  4  0.000857503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123458': 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) = 838.451093959
delta logL = 2.84217094304e-12

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.110e-10  6.694e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.582e+00  1.298e+04  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.805e-01  8.575e-04  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.000e-02  2.977e-09  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/123458/cmap_HighResolution_684633601_684892801_4FGL_J1257.2+3646_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2022-09-16 17:09:32.462173', job_id='123458', GAL2='0.68', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1663373372.46', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.84e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1718' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:09:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 123458: <4FGL_J1257.2+3646_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:28 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:02:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:02:47 2022
Terminated at Fri Sep 16 17:09:33 2022
Results reported at Fri Sep 16 17:09:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1718 194.31 36.7706 684633601 684892801 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 :                                   380.58 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   405 sec.
    Turnaround time :                            545 sec.

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

