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


Performing analysis on: 4FGL_J1254.9+1138_weekly_bin753
RA = 193.733, Dec = 11.6495
tmin = 694396801, tmax = 695001601
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='241593', job_status='RUN', time_executed='2023-01-10 03:32:12.815358', time_epoch_executed='1673350332.82' WHERE source_name='4FGL J1254.9+1138' and cadence='weekly' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241593

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241593/ft1_4FGL_J1254.9+1138_weekly_bin753.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241593/ft1_4FGL_J1254.9+1138_weekly_bin753.fits outfile=/scratch/kocevski/241593/ft1_filteredMKT_4FGL_J1254.9+1138_weekly_bin753.fits ra=193.733 dec=11.6495 rad=12.0 tmin=694396801.0 tmax=695001601.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 5.06
user 4.78
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.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/241593/ft1_filteredMKT_4FGL_J1254.9+1138_weekly_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.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: 1689

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/241593/ltcube_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.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/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits
.....................!
real 29.41
user 28.95
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/241593/ltcube_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.fits outfile=/scratch/kocevski/241593/expmap_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.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/241593/ltcube_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.fits
.....................!
real 156.30
user 151.51
sys 4.41

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

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits scfile=/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits outfile=/scratch/kocevski/241593/cmap_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.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=193.733 yref=11.6495 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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits scfile=/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits outfile=/scratch/kocevski/241593/cmap_HighResolution_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.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=193.733 yref=11.6495 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.52
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241593/Model_4FGL_J1254.9+1138_weekly_bin753.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/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits.....................!
real 107.25
user 105.97
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits', '/scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits', expMap='/scratch/kocevski/241593/expmap_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.fits', expCube='/scratch/kocevski/241593/ltcube_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241593/Model_4FGL_J1254.9+1138_weekly_bin753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241593/ft1_filtered_4FGL_J1254.9+1138_weekly_bin753.fits
Spacecraft file(s): /scratch/kocevski/241593/ft2_4FGL_J1254.9+1138_weekly_bin753.fits
Exposure map: /scratch/kocevski/241593/expmap_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.fits
Exposure cube: /scratch/kocevski/241593/ltcube_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241593/Model_4FGL_J1254.9+1138_weekly_bin753.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) = 18374.1696916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69607       1.0000          .0000       .10000E+07
     2 'Prefactor '    .74797E-03   1.0000          .0000       .10000E+07
     3 'norm      '    3.9757       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8774       1.0000          .0000       .10000E+07
     5 'norm      '    .83896E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6733       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.5356       1.0000          .0000       .10000E+07
     8 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19303E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .34519E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.7119       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12917E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    13.952       1.0000          .0000       .10000E+07
    14 'Prefactor '    .40792E-04   1.0000          .0000       .10000E+07
    15 'Normalizat'    .97748       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18374.14     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      898 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69600        1.2478        .66755E-06   -.61929E-03
   2  Prefactor     .88818E-08    34.282       -.79188E-05** at limit **
   3  norm          3.9755        1.9285       -.69852E-06   -.73650E-02
   4  Prefactor     7.9028        10.023       -.36412E-05   -.22768E-02
   5  norm          .44409E-09    6.8341        .86298E-06** at limit **
   6  norm          1.6734        .38524       -.86441E-08    .25365E-01
   7  Prefactor     7.5688        4.6992       -.12677E-05   -.50167E-02
   8  norm          .55511E-10    .26378       -.20769E-06** at limit **
   9  Prefactor     .55511E-10    4.3817        .10245E-06** at limit **
  10  Prefactor     .66613E-09    14.360       -.54286E-05** at limit **
  11  Prefactor     4.7025        6.0900        .13613E-05    .23110E-03
  12  Prefactor     .55511E-10    1.3555       -.10538E-05** at limit **
  13  Prefactor     14.092        1.4364       -.23496E-07    .52178E-01
  14  Prefactor     .44409E-09    18.954       -.32709E-05** at limit **
  15  Normalizat    .97744        .12744       -.84142E-05   -.63156E-03
  16  Prefactor     1.1202        .11207        .80171E-05   -.56181E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.695998
  Prefactor  = 8.88178e-09
  norm       = 3.97548
  Prefactor  = 7.90278
  norm       = 4.44089e-10
  norm       = 1.67338
  Prefactor  = 7.56876
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 6.66134e-10
  Prefactor  = 4.70252
  Prefactor  = 5.55112e-11
  Prefactor  = 14.0921
  Prefactor  = 4.44089e-10
  Normalizat = 0.977442
  Prefactor  = 1.12019
 **********
 **   18 **HESSE 
 **********

 FCN=   18374.14     FROM HESSE     STATUS=OK           233 CALLS     1131 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69600        1.2598        .61028E-03   -1.5691    
   2  Prefactor     .88818E-08    33.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9755        1.9272        .50560E-03   -1.5668    
   4  Prefactor     7.9028        10.033        .35702E-03   -1.5652    
   5  norm          .44409E-09    6.8812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6734        .38856        .81448E-03   -1.5682    
   7  Prefactor     7.5688        4.7140        .36509E-03   -1.5653    
   8  norm          .55511E-10    .26327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    4.3268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .66613E-09    14.036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7025        6.1013        .46333E-03   -1.5665    
  12  Prefactor     .55511E-10    1.3647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.092        15.221        .26790E-03   -1.5633    
  14  Prefactor     .44409E-09    18.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .97744        .11077        .45884E-01   -.93790    
  16  Prefactor     1.1202        .97322E-01    .36863E-01   -.88824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49949e-08
Minuit parameter uncertainties:
  1  1.25979
  2  0.00109802
  3  1.92717
  4  10.0327
  5  0.000110795
  6  0.388558
  7  4.714
  8  7.24728e-06
  9  2.71042e-05
  10  0.00019002
  11  6.10126
  12  1.51174e-05
  13  15.221
  14  0.000184656
  15  0.110791
  16  0.097338
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  6.661e-10  1.900e-04  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.120e+00  9.734e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.774e-01  1.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241593/likelihoodResults_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.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) = 18374.1918105
delta logL = -0.0543888229113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18374.1348128
delta logL = 0.00260887087279

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   18374.13     FROM MIGRAD    STATUS=FAILED       106 CALLS      298 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29964        15.624        .36047E-03    .38593E-01
   2  Index         2.1726        2.8060        .38972E-01   -.61202E-05
   3  Normalizat    .97736        .12532        .26939E-03    .25321E-05
   4  Prefactor     1.1198        .11221        .22544E-03    .44378E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   18374.13     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      378 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29964        15.624        .56702E-04   -1.5697    
   2  Index         2.1726        2.8060        .30958E-02   -.60103    
   3  Normalizat    .97736        .12532        .31087E-03   -.93793    
   4  Prefactor     1.1198        .11221        .21170E-03   -.88838    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18374.13     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      408 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29964        14.861        .72094E-04    .61816E-04
   2  Index         2.1726        2.7500        .15589E-02   -.20420E-06
   3  Normalizat    .97736        .12546        .10776E-04    .25321E-05
   4  Prefactor     1.1198        .11224        .90176E-05    .40343E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.299643
  Index      = 2.17256
  Normalizat = 0.977362
  Prefactor  = 1.11976
 **********
 **   18 **HESSE 
 **********

 FCN=   18374.13     FROM HESSE     STATUS=OK            25 CALLS      433 TOTAL
                     EDM=   .83E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29964        14.863        .28838E-05   -1.5697    
   2  Index         2.1726        2.7496        .62355E-04   -.60103    
   3  Normalizat    .97736        .12511        .21551E-05   -.93793    
   4  Prefactor     1.1198        .11195        .18035E-05   -.88838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26151e-14
Minuit parameter uncertainties:
  1  4.2207
  2  3.00973
  3  0.125147
  4  0.111978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241593': 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) = 18374.1348105
delta logL = 0.00261120544383

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.996e-01  4.221e+00  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  2.173e+00  3.010e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.120e+00  1.120e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.774e-01  1.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

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/241593/cmap_HighResolution_694396801_695001601_4FGL_J1254.9+1138_weekly_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2023-01-10 03:44:19.762636', job_id='241593', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1673351059.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.61e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='753' AND source_name='4FGL J1254.9+1138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 10 03:44:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 241593: <4FGL_J1254.9+1138_weekly_bin753> in cluster <slac> Done

Job <4FGL_J1254.9+1138_weekly_bin753> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 03:30:29 2023
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 03:31:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 03:31:27 2023
Terminated at Tue Jan 10 03:44:20 2023
Results reported at Tue Jan 10 03:44:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_weekly_bin753 193.733 11.6495 694396801 695001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            831 sec.

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

