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


Performing analysis on: 4FGL_J1257.2+3646_weekly_bin759
RA = 194.31, Dec = 36.7706
tmin = 698025601, tmax = 698630401
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='590962', job_status='RUN', time_executed='2023-02-21 03:37:42.876483', time_epoch_executed='1676979462.88' WHERE source_name='4FGL J1257.2+3646' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590962

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590962/ft1_4FGL_J1257.2+3646_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590962/ft1_4FGL_J1257.2+3646_weekly_bin759.fits outfile=/scratch/kocevski/590962/ft1_filteredMKT_4FGL_J1257.2+3646_weekly_bin759.fits ra=194.31 dec=36.7706 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.59
user 8.25
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.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/590962/ft1_filteredMKT_4FGL_J1257.2+3646_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/590962/ft1_filtered_4FGL_J1257.2+3646_weekly_bin759.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.17

Number of photons that the gtmktime cut: 744

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590962/ft1_filtered_4FGL_J1257.2+3646_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/590962/ltcube_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.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/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.fits
.....................!
real 27.74
user 27.29
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590962/ft1_filtered_4FGL_J1257.2+3646_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/590962/ltcube_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.fits outfile=/scratch/kocevski/590962/expmap_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.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/590962/ltcube_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.fits
.....................!
real 191.33
user 185.43
sys 5.49

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/590962/ft1_filtered_4FGL_J1257.2+3646_weekly_bin759.fits scfile=/scratch/kocevski/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.fits outfile=/scratch/kocevski/590962/cmap_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590962/ft1_filtered_4FGL_J1257.2+3646_weekly_bin759.fits scfile=/scratch/kocevski/590962/ft2_4FGL_J1257.2+3646_weekly_bin759.fits outfile=/scratch/kocevski/590962/cmap_HighResolution_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4395       1.0000          .0000       .10000E+07
     2 'Prefactor '    .81208E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.0592       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.9015       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.955       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61219E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42069E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .75569E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .48520E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .73870E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10981E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .57899E-04   1.0000          .0000       .10000E+07
    13 'norm      '    7.3284       1.0000          .0000       .10000E+07
    14 'norm      '    39.850       1.0000          .0000       .10000E+07
    15 'norm      '    5.5748       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19734E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .29506E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48958E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18930E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .87674       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2083       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=   8135.148     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1275 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4418        3.6499        .67640E-06   -.20202E-04
   2  Prefactor     .91038E-08    5.2348        .71200E-07** at limit **
   3  Prefactor     2.0590        2.1540       -.36461E-06    .88104E-03
   4  Prefactor     2.9004        2.4351       -.12403E-06    .15240E-02
   5  Prefactor     11.962        5.5261       -.69590E-07   -.71412E-02
   6  Prefactor     .21749E-06    13.282        .19559E-05** at limit **
   7  Prefactor     .24369E-07    13.433        .44035E-06** at limit **
   8  Prefactor     .66747E-06    5.9820        .71457E-06** at limit **
   9  norm           .0000        1.7865       -.41749E-06** at limit **
  10  Prefactor     .14816E-06    5.1609        .84282E-06** at limit **
  11  Prefactor     .55511E-10    3.6417        .14891E-06** at limit **
  12  norm           .0000        1.7101        .19497E-06** at limit **
  13  norm          7.3310        6.2450       -.75393E-07   -.72303E-03
  14  norm          39.834        5.6356       -.36280E-07   -.60903E-01
  15  norm          5.5758        6.0809        .85684E-06    .34421E-01
  16  Prefactor      .0000        1.2210        .75417E-07** at limit **
  17  Prefactor     .11530E-06    4.7197       -.33347E-06** at limit **
  18  Prefactor     .27500E-06    17.895        .11237E-06** at limit **
  19  Prefactor     .19262E-06    26.189       -.23791E-05** at limit **
  20  Normalizat    .87683        .17156       -.12278E-05    .77554E-04
  21  Prefactor     1.2083        .21642        .63012E-05    .48996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4418
  Prefactor  = 9.10383e-09
  Prefactor  = 2.05904
  Prefactor  = 2.90042
  Prefactor  = 11.9615
  Prefactor  = 2.17493e-07
  Prefactor  = 2.43694e-08
  Prefactor  = 6.67466e-07
  norm       = 0
  Prefactor  = 1.48159e-07
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 7.33097
  norm       = 39.8342
  norm       = 5.57576
  Prefactor  = 0
  Prefactor  = 1.15297e-07
  Prefactor  = 2.75002e-07
  Prefactor  = 1.92624e-07
  Normalizat = 0.876831
  Prefactor  = 1.2083
 **********
 **   18 **HESSE 
 **********

 FCN=   8135.148     FROM HESSE     STATUS=OK           359 CALLS     1634 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4418        3.7619        .89892E-03   -1.5684    
   2  Prefactor     .91038E-08    5.3229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0590        2.1875        .71988E-03   -1.5679    
   4  Prefactor     2.9004        2.4714        .59627E-03   -1.5674    
   5  Prefactor     11.962        8.2542        .28948E-03   -1.5639    
   6  Prefactor     .21749E-06    11.587        .15119E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24369E-07    14.535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .66747E-06    19.351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.7830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14816E-06    7.0819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    3.6597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.7056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3310        8.2779        .37027E-03   -1.5654    
  14  norm          39.834        7.0888        .15843E-03   -1.5582    
  15  norm          5.5758        8.6573        .42526E-03   -1.5661    
  16  Prefactor      .0000        1.2184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11530E-06    6.9012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27500E-06    21.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .19262E-06    28.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87683        .14642        .44604E-01   -.97279    
  21  Prefactor     1.2083        .18388        .63537E-01   -.86076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26661e-07
Minuit parameter uncertainties:
  1  3.76187
  2  0.000440425
  3  2.18746
  4  2.47136
  5  8.25421
  6  0.00317501
  7  0.00119004
  8  0.0071878
  9  6.51157e-06
  10  0.00204874
  11  2.10728e-05
  12  3.73227e-06
  13  8.27792
  14  7.08879
  15  8.65729
  16  9.14538e-07
  17  0.00178386
  18  0.00481062
  19  0.00466051
  20  0.146491
  21  0.183982
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.675e-07  7.188e-03  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.208e+00  1.840e-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.768e-01  1.465e-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: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590962/likelihoodResults_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.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) = 8135.19423507
delta logL = -0.0464018256725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 8134.62727662
delta logL = 0.520556622624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15932E-07   1.0000          .0000       .10000E+07
     2 'Index     '    9.6112       1.0000          .0000       10.000    
     3 'Normalizat'    .83207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2464       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   8135.148     FROM MIGRAD    STATUS=FAILED       111 CALLS      691 TOTAL
                     EDM=   .61E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18874E-08    .11699         .0000    ** at limit **
   2  Index         1.4170        9.2682         .0000        .54743E-02
   3  Normalizat    .87683        .69646E-03     .0000       -.89380E-03
   4  Prefactor     1.2083        .88684E-03     .0000        .13216E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8135.148     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      790 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18874E-08    .11699        .30032E-04** at limit **
   2  Index         1.4170        9.2682        .28253E-01    .54743E-02
   3  Normalizat    .87683        .69646E-03    .12998E-05   -.89380E-03
   4  Prefactor     1.2083        .88684E-03    .14742E-06    .13216E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8135.148     FROM MIGRAD    STATUS=FAILED        65 CALLS      855 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18874E-08    .62178E-02    .12695E-01** at limit **
   2  Index         1.4170        .19001        55.211        .54743E-02
   3  Normalizat    .87683        .19869E-03    .51157E-04   -.91355E-03
   4  Prefactor     1.2083        .25289E-03    .56205E-04    .13305E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88738e-09
  Index      = 1.41701
  Normalizat = 0.876834
  Prefactor  = 1.2083
 **********
 **   18 **HESSE 
 **********

 FCN=   8135.148     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      886 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18874E-08    .62178E-02    .12695E-01   -26623.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4170        .19001        55.211       -.11579E+09
   3  Normalizat    .87683        .19869E-03    .18208E-04   -76.371    
   4  Prefactor     1.2083        .25289E-03    .11241E-04   -33.697    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.8154e-08
Minuit parameter uncertainties:
  1  6.85564e-06
  2  0.190107
  3  0.000198688
  4  0.000252893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590962': 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): 1
logL (Free Index) = 8135.14783323
delta logL = 1.49875631905e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.887e-09  6.856e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.417e+00  1.901e-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.208e+00  2.529e-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:  8.768e-01  1.987e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/590962/cmap_HighResolution_698025601_698630401_4FGL_J1257.2+3646_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2023-02-21 03:49:45.004672', job_id='590962', GAL2='1.21', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1676980185.0', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='759' AND source_name='4FGL J1257.2+3646' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:49:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 590962: <4FGL_J1257.2+3646_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1257.2+3646_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:35:20 2023
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:35:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:35:21 2023
Terminated at Tue Feb 21 03:49:45 2023
Results reported at Tue Feb 21 03:49:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_weekly_bin759 194.31 36.7706 698025601 698630401 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 :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

