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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1751
RA = 194.473, Dec = 32.4721
tmin = 693187201, tmax = 693446401
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='77736', job_status='RUN', time_executed='2022-12-23 00:41:14.175273', time_epoch_executed='1671784874.18' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77736

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77736/ft1_4FGL_J1257.8+3228_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77736/ft1_4FGL_J1257.8+3228_daily_bin1751.fits outfile=/scratch/kocevski/77736/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1751.fits ra=194.473 dec=32.4721 rad=12.0 tmin=693187201.0 tmax=693446401.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.61
user 3.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.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/77736/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.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.14

Number of photons that the gtmktime cut: 666

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/77736/ltcube_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.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/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77736/ltcube_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.fits outfile=/scratch/kocevski/77736/expmap_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.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/77736/ltcube_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.fits
.....................!
real 191.01
user 186.26
sys 4.45

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits scfile=/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits outfile=/scratch/kocevski/77736/cmap_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.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.473 yref=32.4721 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits scfile=/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits outfile=/scratch/kocevski/77736/cmap_HighResolution_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.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.473 yref=32.4721 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77736/Model_4FGL_J1257.8+3228_daily_bin1751.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/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits.....................!
real 58.28
user 56.90
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits', '/scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits', expMap='/scratch/kocevski/77736/expmap_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.fits', expCube='/scratch/kocevski/77736/ltcube_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77736/Model_4FGL_J1257.8+3228_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.8+3228'

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.994e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77736/ft1_filtered_4FGL_J1257.8+3228_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/77736/ft2_4FGL_J1257.8+3228_daily_bin1751.fits
Exposure map: /scratch/kocevski/77736/expmap_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.fits
Exposure cube: /scratch/kocevski/77736/ltcube_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77736/Model_4FGL_J1257.8+3228_daily_bin1751.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) = 7067.01573098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9619       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.3759       1.0000          .0000       .10000E+07
     3 'Prefactor '    .79158       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4222       1.0000          .0000       .10000E+07
     5 'Prefactor '    .60678E-05   1.0000          .0000       .10000E+07
     6 'norm      '    12.407       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.0426       1.0000          .0000       .10000E+07
     8 'Prefactor '    .67489E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .93394E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14749E-03   1.0000          .0000       .10000E+07
    11 'norm      '    3.7523       1.0000          .0000       .10000E+07
    12 'Prefactor '    39.634       1.0000          .0000       .10000E+07
    13 'norm      '    1.1117       1.0000          .0000       .10000E+07
    14 'Prefactor '    .19504       1.0000          .0000       .10000E+07
    15 'norm      '    .85714E-04   1.0000          .0000       .10000E+07
    16 'norm      '    1.2353       1.0000          .0000       .10000E+07
    17 'norm      '    28.957       1.0000          .0000       .10000E+07
    18 'norm      '    17.847       1.0000          .0000       .10000E+07
    19 'norm      '    48.408       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.5052       1.0000          .0000       .10000E+07
    21 'Prefactor '    .66089E-04   1.0000          .0000       .10000E+07
    22 'norm      '    26.061       1.0000          .0000       .10000E+07
    23 'Prefactor '    .14417E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    10.308       1.0000          .0000       .10000E+07
    25 'Prefactor '    23.263       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.0533       1.0000          .0000       .10000E+07
    27 'Normalizat'    .93639       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0003       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7066.987     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     2457 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9917        3.4298        .22412E-07    .43757E-02
   2  Prefactor     6.3860        7.7817       -.31816E-07   -.45326E-01
   3  Prefactor     .77747        1.6730        .32434E-07    .27325E-02
   4  Prefactor     2.4214        1.5850       -.29807E-07   -.41743E-02
   5  Prefactor     .29976E-08    4.4951       -.12994E-07** at limit **
   6  norm          12.448        4.8081        .62586E-07    .45533E-02
   7  Prefactor     9.0474        7.3775        .14898E-08    .37975E-02
   8  Prefactor     .22204E-09    4.8516       -.92278E-07** at limit **
   9  Prefactor     .11102E-09    3.7455        .21893E-06** at limit **
  10  Prefactor     .13323E-08    2.6279        .47628E-07** at limit **
  11  norm          3.6942        4.4789       -.12355E-07   -.11055E-02
  12  Prefactor     40.622        28.933        .23740E-07    .43949E-01
  13  norm          1.1121        1.9981       -.42233E-07   -.20199E-02
  14  Prefactor     .10330E-02    34.774       -.16709E-06** at limit **
  15  norm          .44853E-07    4.6601        .44745E-07** at limit **
  16  norm          1.0595        1.3289        .19709E-08    .50957E-03
  17  norm          28.870        5.8968       -.10123E-07   -.23822E-01
  18  norm          17.883        3.8189       -.76908E-08    .22167E-01
  19  norm          48.668        3.0058       -.21876E-08    .30807E-01
  20  Prefactor     1.5055        2.8363        .42390E-07    .49017E-03
  21  Prefactor     .13545E-07    4.5299        .42430E-07** at limit **
  22  norm          26.053        2.5797        .33092E-08    .30634E-02
  23  Prefactor     .24092E-07    25.246        .28803E-06** at limit **
  24  Prefactor     10.305        1.3285       -.10695E-08   -.14290E-03
  25  Prefactor     23.267        3.2668       -.51867E-08    .65900E-01
  26  Prefactor     5.0839        3.9355        .23759E-07    .79686E-03
  27  Normalizat    .93577        .19932       -.16683E-05    .21377E-04
  28  Prefactor     1.0009        .24019        .21353E-05    .70743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.9917
  Prefactor  = 6.386
  Prefactor  = 0.777467
  Prefactor  = 2.42142
  Prefactor  = 2.9976e-09
  norm       = 12.4481
  Prefactor  = 9.04742
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.33227e-09
  norm       = 3.69415
  Prefactor  = 40.6217
  norm       = 1.11209
  Prefactor  = 0.00103299
  norm       = 4.4853e-08
  norm       = 1.05946
  norm       = 28.8703
  norm       = 17.8834
  norm       = 48.6679
  Prefactor  = 1.50554
  Prefactor  = 1.35447e-08
  norm       = 26.053
  Prefactor  = 2.40918e-08
  Prefactor  = 10.3053
  Prefactor  = 23.2674
  Prefactor  = 5.08388
  Normalizat = 0.935772
  Prefactor  = 1.0009
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.987     FROM HESSE     STATUS=OK           591 CALLS     3048 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9917        3.4324        .41101E-03   -1.5659    
   2  Prefactor     6.3860        8.3062        .39726E-03   -1.5657    
   3  Prefactor     .77747        1.6866        .53564E-03   -1.5690    
   4  Prefactor     2.4214        1.5864        .65736E-03   -1.5677    
   5  Prefactor     .29976E-08    7.1330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.448        4.8144        .28414E-03   -1.5637    
   7  Prefactor     9.0474        7.3881        .33306E-03   -1.5648    
   8  Prefactor     .22204E-09    5.8019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    3.8214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13323E-08    2.6710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6942        4.5401        .52097E-03   -1.5670    
  12  Prefactor     40.622        29.934        .15886E-03   -1.5580    
  13  norm          1.1121        2.4340        .36065E-02   -1.5687    
  14  Prefactor     .10330E-02    8.5202        .11865E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44853E-07    6.9574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0595        25.350        .10100E-02   -1.5687    
  17  norm          28.870        9.0062        .18586E-03   -1.5601    
  18  norm          17.883        13.949        .23681E-03   -1.5623    
  19  norm          48.668        25.942        .14374E-03   -1.5568    
  20  Prefactor     1.5055        2.8924        .87202E-03   -1.5683    
  21  Prefactor     .13545E-07    4.9595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          26.053        9.6318        .19593E-03   -1.5606    
  23  Prefactor     .24092E-07    25.310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.305        9.8340        .31184E-03   -1.5644    
  25  Prefactor     23.267        16.482        .20738E-03   -1.5611    
  26  Prefactor     5.0839        3.9399        .44707E-03   -1.5663    
  27  Normalizat    .93577        .17178        .45365E-01   -.95214    
  28  Prefactor     1.0009        .20424        .69339E-01   -.92700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91664e-07
Minuit parameter uncertainties:
  1  3.43242
  2  8.3062
  3  1.68664
  4  1.58637
  5  0.000291895
  6  4.81437
  7  7.38806
  8  7.21848e-05
  9  3.85235e-05
  10  0.000118716
  11  4.54012
  12  29.9344
  13  2.43405
  14  0.187631
  15  0.0011175
  16  10.3649
  17  9.00623
  18  13.9493
  19  25.9422
  20  2.8924
  21  0.000518368
  22  9.63179
  23  0.00156209
  24  9.83404
  25  16.482
  26  3.93992
  27  0.171881
  28  0.204397
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.694e+00  4.540e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.001e+00  2.044e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  9.358e-01  1.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 8.58e-06 +/- 1.05e-05

TS (Fixed Index): 1.11
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77736/likelihoodResults_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7066.91710704
delta logL = 0.070381616405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7066.91445467
delta logL = 0.0730339860793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4287       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8047       1.0000          .0000       5.0000    
     3 'Normalizat'    .94492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7066.914     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4287        4.5624        .54602E-03    .50562E-01
   2  alpha         1.8047        .85244        .43369       -.68455E-04
   3  Normalizat    .94494        .16461        .45473E-01    .11564E-04
   4  Prefactor     .99432        .20235        .69545E-01    .16331E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42867
  alpha      = 1.80469
  Normalizat = 0.944935
  Prefactor  = 0.994316
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.914     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4287        4.3769        .17685E-04   -1.5671    
   2  alpha         1.8047        .98608        .25881E-01   -.28184    
   3  Normalizat    .94494        .19373        .25619E-03   -.94899    
   4  Prefactor     .99432        .23836        .30763E-03   -.92919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17262e-08
Minuit parameter uncertainties:
  1  4.37685
  2  1.01613
  3  0.193875
  4  0.238608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77736': 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) = 7066.91445466
delta logL = 0.0730339931342

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.429e+00  4.377e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.805e+00  1.016e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  9.943e-01  2.386e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  9.449e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.80 +/- 1.02
Photon Flux (Free Index): 1.34e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/77736/cmap_HighResolution_693187201_693446401_4FGL_J1257.8+3228_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.02e-05', photon_flux_error='2.66e-08', dlogl='7.30e-02', energy_flux='8.58e-06', photon_flux2='1.34e-08', job_status='DONE', time_completed='2022-12-23 00:53:19.581628', photon_index_error2='1.02', photon_index2='1.80', ts='1.11', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.28e-08', energy_flux_error2='1.37e-05', EG='0.94', time_epoch_completed='1671785599.58', return_code='0', job_id='77736', GAL2='0.99', EG2='0.94', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.36e-08', ts2='1.28', photon_index='2.22' WHERE bin_id='1751' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:53:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 77736: <4FGL_J1257.8+3228_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:19 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:20 2022
Terminated at Fri Dec 23 00:53:20 2022
Results reported at Fri Dec 23 00:53:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1751 194.473 32.4721 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.8+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

