aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 5 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1254.9+1138_weekly_bin494
RA = 193.733, Dec = 11.6495
tmin = 537753601, tmax = 538358401
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='514172', job_status='RUN', time_executed='2021-07-19 16:31:55.401526', time_epoch_executed='1626737515.4' WHERE source_name='4FGL J1254.9+1138' and cadence='weekly' and bin_id='494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514172

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514172/ft1_4FGL_J1254.9+1138_weekly_bin494.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514172/ft1_4FGL_J1254.9+1138_weekly_bin494.fits outfile=/scratch/kocevski/514172/ft1_filteredMKT_4FGL_J1254.9+1138_weekly_bin494.fits ra=193.733 dec=11.6495 rad=12.0 tmin=537753601.0 tmax=538358401.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 13.13
user 12.64
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514172/ft1_filtered_4FGL_J1254.9+1138_weekly_bin494.fits" evtable="EVENTS" scfile=/scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits sctable="SC_DATA" outfile=/scratch/kocevski/514172/ltcube_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.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/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits
.....................!
real 28.37
user 28.02
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514172/ft1_filtered_4FGL_J1254.9+1138_weekly_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits sctable="SC_DATA" expcube=/scratch/kocevski/514172/ltcube_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.fits outfile=/scratch/kocevski/514172/expmap_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.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/514172/ltcube_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.fits
.....................!
real 194.56
user 188.03
sys 5.15

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/514172/ft1_filtered_4FGL_J1254.9+1138_weekly_bin494.fits scfile=/scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits outfile=/scratch/kocevski/514172/cmap_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514172/ft1_filtered_4FGL_J1254.9+1138_weekly_bin494.fits scfile=/scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits outfile=/scratch/kocevski/514172/cmap_HighResolution_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.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.59
user 0.40
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514172/ft1_filtered_4FGL_J1254.9+1138_weekly_bin494.fits', '/scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits', expMap='/scratch/kocevski/514172/expmap_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.fits', expCube='/scratch/kocevski/514172/ltcube_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514172/Model_4FGL_J1254.9+1138_weekly_bin494.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  1.000e-04  1.000e+04 ( 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/514172/ft1_filtered_4FGL_J1254.9+1138_weekly_bin494.fits
Spacecraft file(s): /scratch/kocevski/514172/ft2_4FGL_J1254.9+1138_weekly_bin494.fits
Exposure map: /scratch/kocevski/514172/expmap_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.fits
Exposure cube: /scratch/kocevski/514172/ltcube_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514172/Model_4FGL_J1254.9+1138_weekly_bin494.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) = 10566.4048621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6035       1.0000         .10000E-03   10000.    
    10 'norm      '    .73767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.9205       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .61882       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.

 FCN=   10566.40     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2033 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68768        .58545E-06** at limit **
   2  Prefactor     .10000E-03    4.1670        .26299E-07** at limit **
   3  norm          3.0344        3.0733       -.26131E-06   -.14918E-04
   4  Prefactor     .10000E-03    4.6752        .23005E-08** at limit **
   5  norm          22.694        25.109        .14639E-05   -.26421E-05
   6  Prefactor     .10000E-03    41.754       -.14657E-05** at limit **
   7  norm          1.6415        .56705       -.28268E-07    .67495E-04
   8  Prefactor     2.6669        5.3741       -.15752E-06   -.61168E-05
   9  Prefactor     8.6029        12.158        .50739E-07   -.20771E-06
  10  norm          .73760        .80024        .12191E-06    .21050E-03
  11  Prefactor     23.962        28.952       -.37701E-05   -.15200E-05
  12  Prefactor     .10000E-03    10.106       -.78207E-06** at limit **
  13  Prefactor     .10000E-03    3.0945        .80177E-07** at limit **
  14  Prefactor     13.044        9.5314       -.92610E-07    .65101E-05
  15  Prefactor     1.2564        .61175        .20602E-07   -.12761E-03
  16  Prefactor     6.7410        9.9850       -.76982E-07   -.10471E-04
  17  Prefactor     24.196        30.038        .71280E-06    .17873E-05
  18  Prefactor     .10000E-03    19.360       -.15607E-05** at limit **
  19  Normalizat    1.9206        .18420        .37394E-06   -.29790E-04
  20  Prefactor     .61868        .13923        .31448E-06    .16909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03443
  Prefactor  = 0.0001
  norm       = 22.6935
  Prefactor  = 0.0001
  norm       = 1.64145
  Prefactor  = 2.66689
  Prefactor  = 8.60289
  norm       = 0.737596
  Prefactor  = 23.962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0442
  Prefactor  = 1.25636
  Prefactor  = 6.74101
  Prefactor  = 24.1956
  Prefactor  = 0.0001
  Normalizat = 1.92065
  Prefactor  = 0.618682
 **********
 **   18 **HESSE 
 **********

 FCN=   10566.40     FROM HESSE     STATUS=OK           297 CALLS     2330 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .68882        .83022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0344        3.0554        .14954E-03   -1.5360    
   4  Prefactor     .10000E-03    4.6765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.694        25.121        .84086E-04   -1.4755    
   6  Prefactor     .10000E-03    41.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6415        .55899        .40294E-04   -1.5452    
   8  Prefactor     2.6669        5.3543        .24958E-03   -1.5381    
   9  Prefactor     8.6029        12.147        .13666E-03   -1.5121    
  10  norm          .73760        .77696        .90609E-04   -1.5536    
  11  Prefactor     23.962        28.996        .81825E-04   -1.4729    
  12  Prefactor     .10000E-03    10.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1069        .17658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.044        9.5622        .11090E-03   -1.4985    
  15  Prefactor     1.2564        6.1947        .19918E-02   -1.5484    
  16  Prefactor     6.7410        10.031        .77270E-03   -1.5189    
  17  Prefactor     24.196        30.044        .81436E-04   -1.4724    
  18  Prefactor     .10000E-03    19.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.9206        .21665        .25781E-03   -.66554    
  20  Prefactor     .61868        .16251        .32876E-03   -1.0681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06418e-11
Minuit parameter uncertainties:
  1  7.08479e-07
  2  8.88533e-08
  3  3.05557
  4  5.34093e-07
  5  25.1324
  6  4.67022e-06
  7  0.558995
  8  5.35526
  9  12.1508
  10  0.776973
  11  29.0134
  12  1.43672e-06
  13  1.35083e-06
  14  9.56331
  15  5.58021
  16  10.0334
  17  30.0623
  18  3.55608e-06
  19  0.216763
  20  0.16263
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.304e+01  9.563e+00  1.000e-04  1.000e+04 ( 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:  6.187e-01  1.626e-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:  1.921e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 8.49e-06

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) = 10564.2474813
delta logL = 2.15366489374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10563.7018556
delta logL = 2.69929064983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0140       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1548       1.0000          .0000       10.000    
     3 'Normalizat'    1.9596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60662       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.

 FCN=   10563.70     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0095        2.1004        .72919E-02   -.51433E-03
   2  Index         1.1541        .28158        .20939       -.11363E-03
   3  Normalizat    1.9597        .17671        .57850E-01    .15902E-04
   4  Prefactor     .60655        .13824        .74957E-01    .35789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00949
  Index      = 1.15407
  Normalizat = 1.95972
  Prefactor  = 0.60655
 **********
 **   18 **HESSE 
 **********

 FCN=   10563.70     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0095        4.3537        .13750E-03   -1.5424    
   2  Index         1.1541        .65288        .81931E-02   -.87757    
   3  Normalizat    1.9597        .20517        .25577E-03   -.65564    
   4  Prefactor     .60655        .16026        .33187E-03   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53934e-09
Minuit parameter uncertainties:
  1  4.35435
  2  0.657507
  3  0.205259
  4  0.160379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514172': 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) = 10563.7018551
delta logL = 2.69929116692

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.009e+00  4.354e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.154e+00  6.575e-01  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:  6.066e-01  1.604e-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:  1.960e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.14
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.15 +/- 0.66
Photon Flux (Free Index): 4.97e-09 +/- 7.16e-09
Energy Flux (Free Index): 4.75e-05 +/- 6.11e-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/514172/cmap_HighResolution_537753601_538358401_4FGL_J1254.9+1138_weekly_bin494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='4.75e-05', photon_flux_error='3.77e-08', dlogl='2.70e+00', energy_flux='1.16e-05', photon_flux2='4.97e-09', job_status='DONE', time_completed='2021-07-19 16:45:01.836708', photon_index_error2='0.66', photon_index2='1.15', ts='5.84', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='6.11e-05', EG='1.92', time_epoch_completed='1626738301.84', return_code='0', job_id='514172', GAL2='0.61', EG2='1.96', return_code2='0', energy_flux_error='8.49e-06', photon_flux_error2='7.16e-09', ts2='11.14', photon_index='2.79' WHERE bin_id='494' AND source_name='4FGL J1254.9+1138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 16:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 514172: <4FGL_J1254.9+1138_weekly_bin494> in cluster <slac> Done

Job <4FGL_J1254.9+1138_weekly_bin494> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 19 16:30:29 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 16:31:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 16:31:38 2021
Terminated at Mon Jul 19 16:45:02 2021
Results reported at Mon Jul 19 16:45:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_weekly_bin494 193.733 11.6495 537753601 538358401 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 :                                   770.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             321.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            873 sec.

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

