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


Performing analysis on: 4FGL_J1257.2+3646_weekly_bin763
RA = 194.31, Dec = 36.7706
tmin = 700444801, tmax = 701049601
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='427685', job_status='RUN', time_executed='2023-03-21 01:36:20.096170', time_epoch_executed='1679387780.1' WHERE source_name='4FGL J1257.2+3646' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427685

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427685/ft1_4FGL_J1257.2+3646_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427685/ft2_4FGL_J1257.2+3646_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427685/ft1_4FGL_J1257.2+3646_weekly_bin763.fits outfile=/scratch/kocevski/427685/ft1_filteredMKT_4FGL_J1257.2+3646_weekly_bin763.fits ra=194.31 dec=36.7706 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.57
user 9.19
sys 0.34

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

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

Number of photons that the gtmktime cut: 1269

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427685/ft1_filtered_4FGL_J1257.2+3646_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/427685/ft2_4FGL_J1257.2+3646_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/427685/ltcube_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.fits outfile=/scratch/kocevski/427685/expmap_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.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/427685/ltcube_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.fits
.....................!
real 190.20
user 185.34
sys 4.53

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/427685/ft1_filtered_4FGL_J1257.2+3646_weekly_bin763.fits scfile=/scratch/kocevski/427685/ft2_4FGL_J1257.2+3646_weekly_bin763.fits outfile=/scratch/kocevski/427685/cmap_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427685/ft1_filtered_4FGL_J1257.2+3646_weekly_bin763.fits scfile=/scratch/kocevski/427685/ft2_4FGL_J1257.2+3646_weekly_bin763.fits outfile=/scratch/kocevski/427685/cmap_HighResolution_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1375       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.2351       1.0000          .0000       .10000E+07
     3 'Prefactor '    .17236E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.6813       1.0000          .0000       .10000E+07
     5 'Prefactor '    .25865E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.836       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.3927       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.9464       1.0000          .0000       .10000E+07
     9 'norm      '    8.2319       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.8744       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.3930       1.0000          .0000       .10000E+07
    12 'norm      '    2.3448       1.0000          .0000       .10000E+07
    13 'norm      '    .12228E-03   1.0000          .0000       .10000E+07
    14 'norm      '    15.992       1.0000          .0000       .10000E+07
    15 'norm      '    4.3010       1.0000          .0000       .10000E+07
    16 'Prefactor '    .48577E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10966E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14951E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .45749E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .84523       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0644       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=   14588.65     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1296 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1382        1.6998        .27537E-07    .47493E-02
   2  Prefactor     7.2301        5.9080        .20941E-08    .16699E-02
   3  Prefactor      .0000        .83648        .49791E-07** at limit **
   4  Prefactor     1.6816        1.4126       -.50738E-07   -.38387E-03
   5  Prefactor      .0000        4.0823        .48204E-07** at limit **
   6  Prefactor     16.180        3.8420        .43543E-07    .38394E-01
   7  Prefactor     5.4324        7.2151        .79089E-07    .16892E-02
   8  Prefactor     3.9341        3.9277       -.11672E-06   -.63218E-03
   9  norm          8.2395        3.2275        .78862E-07    .29101E-02
  10  Prefactor     1.6544        1.7822       -.57704E-06   -.30026E-03
  11  Prefactor     5.4882        3.3558        .13538E-05    .13394E-01
  12  norm          2.3414        2.8231        .46231E-06    .19169E-02
  13  norm           .0000        5.2134        .24660E-06** at limit **
  14  norm          16.030        5.9332       -.14271E-05    .11007E-02
  15  norm          4.2628        9.2529        .38686E-05   -.41332E-03
  16  Prefactor      .0000        .92227        .20963E-06** at limit **
  17  Prefactor     .34972E-08    11.649       -.16099E-05** at limit **
  18  Prefactor     .84377E-08    14.066        .21771E-05** at limit **
  19  Prefactor     .38858E-08    22.503       -.35419E-05** at limit **
  20  Normalizat    .84483        .12506       -.36334E-06    .16713E-03
  21  Prefactor     1.0645        .15164       -.11747E-05    .18931E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13819
  Prefactor  = 7.23006
  Prefactor  = 0
  Prefactor  = 1.68161
  Prefactor  = 0
  Prefactor  = 16.1804
  Prefactor  = 5.43245
  Prefactor  = 3.93411
  norm       = 8.23954
  Prefactor  = 1.65441
  Prefactor  = 5.48823
  norm       = 2.34143
  norm       = 0
  norm       = 16.0297
  norm       = 4.26279
  Prefactor  = 0
  Prefactor  = 3.4972e-09
  Prefactor  = 8.43769e-09
  Prefactor  = 3.88578e-09
  Normalizat = 0.844834
  Prefactor  = 1.06455
 **********
 **   18 **HESSE 
 **********

 FCN=   14588.65     FROM HESSE     STATUS=OK           363 CALLS     1659 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1382        1.7067        .57206E-03   -1.5673    
   2  Prefactor     7.2301        5.9178        .37267E-03   -1.5654    
   3  Prefactor      .0000        .82548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6816        1.4259        .81207E-03   -1.5682    
   5  Prefactor      .0000        4.0715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.180        15.150        .25142E-03   -1.5628    
   7  Prefactor     5.4324        7.2235        .43250E-03   -1.5661    
   8  Prefactor     3.9341        4.2467        .50754E-03   -1.5668    
   9  norm          8.2395        3.4848        .34919E-03   -1.5651    
  10  Prefactor     1.6544        47.750        .76031E-03   -1.5682    
  11  Prefactor     5.4882        10.203        .43249E-03   -1.5661    
  12  norm          2.3414        2.9898        .66922E-03   -1.5677    
  13  norm           .0000        5.2077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.030        6.4545        .25019E-03   -1.5628    
  15  norm          4.2628        9.8915        .48553E-03   -1.5667    
  16  Prefactor      .0000        .91829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34972E-08    11.955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .84377E-08    14.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38858E-08    22.188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .84483        .10614        .44198E-01   -.98427    
  21  Prefactor     1.0645        .12752        .61186E-01   -.90608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94649e-07
Minuit parameter uncertainties:
  1  1.70668
  2  5.91785
  3  8.70105e-07
  4  1.42588
  5  5.93085e-06
  6  15.1498
  7  7.22347
  8  4.24671
  9  3.48482
  10  17.7764
  11  10.2032
  12  2.98977
  13  2.38448e-05
  14  6.45451
  15  9.89157
  16  7.87503e-06
  17  0.000409762
  18  0.000696676
  19  0.000588781
  20  0.10617
  21  0.127561
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.934e+00  4.247e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.065e+00  1.276e-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.448e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 9.66e-06 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/427685/likelihoodResults_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.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) = 14588.6279411
delta logL = 0.0246115530044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14588.6187591
delta logL = 0.0337935713287

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14588.62     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      234 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3506        78.497        .55252E-03    .10193E-01
   2  Index         2.1899        3.0879        .16940        .19896E-03
   3  Normalizat    .84199        .34196E-01    .44156E-01    .44539E-04
   4  Prefactor     1.0665        .37141E-01    .61135E-01    .21297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35061
  Index      = 2.18988
  Normalizat = 0.841985
  Prefactor  = 1.06648
 **********
 **   18 **HESSE 
 **********

 FCN=   14588.62     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3506        4.7601        .20688E-04   -1.5671    
   2  Index         2.1899        .71803        .98232E-02   -.59683    
   3  Normalizat    .84199        .12273        .24588E-03   -.98530    
   4  Prefactor     1.0665        .15034        .27037E-03   -.90545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01605e-11
Minuit parameter uncertainties:
  1  4.76012
  2  0.721683
  3  0.122771
  4  0.150401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427685': 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) = 14588.6187588
delta logL = 0.0337938104913

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.351e+00  4.760e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.190e+00  7.217e-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:  1.066e+00  1.504e-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.420e-01  1.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.19 +/- 0.72
Photon Flux (Free Index): 1.77e-08 +/- 1.93e-08
Energy Flux (Free Index): 8.11e-06 +/- 1.06e-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/427685/cmap_HighResolution_700444801_701049601_4FGL_J1257.2+3646_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='8.11e-06', photon_flux_error='1.61e-08', dlogl='3.38e-02', energy_flux='9.66e-06', photon_flux2='1.77e-08', job_status='DONE', time_completed='2023-03-21 01:51:04.353810', photon_index_error2='0.72', photon_index2='2.19', ts='1.46', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='4.79e-08', energy_flux_error2='1.06e-05', EG='0.84', time_epoch_completed='1679388664.35', return_code='0', job_id='427685', GAL2='1.07', EG2='0.84', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.93e-08', ts2='1.53', photon_index='2.03' WHERE bin_id='763' AND source_name='4FGL J1257.2+3646' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:51:04 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 427685: <4FGL_J1257.2+3646_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1257.2+3646_weekly_bin763> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Mar 21 01:35:26 2023
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:35:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 01:35:27 2023
Terminated at Tue Mar 21 01:51:05 2023
Results reported at Tue Mar 21 01:51:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_weekly_bin763 194.31 36.7706 700444801 701049601 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 :                                   883.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

