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 26 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_J0923.5+4125_weekly_bin759
RA = 140.895, Dec = 41.4283
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='585507', job_status='RUN', time_executed='2023-02-21 03:15:54.093480', time_epoch_executed='1676978154.09' WHERE source_name='4FGL J0923.5+4125' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585507

Creating custom pfile directory:
/scratch/kocevski/585507/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/585507/ft1_4FGL_J0923.5+4125_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/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585507/ft1_4FGL_J0923.5+4125_weekly_bin759.fits outfile=/scratch/kocevski/585507/ft1_filteredMKT_4FGL_J0923.5+4125_weekly_bin759.fits ra=140.895 dec=41.4283 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.51
user 8.18
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_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/585507/ft1_filteredMKT_4FGL_J0923.5+4125_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_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.54
user 0.39
sys 0.14

Number of photons that the gtmktime cut: 618

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/585507/ltcube_698025601_698630401_4FGL_J0923.5+4125_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/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits
.....................!
real 27.64
user 27.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/585507/ltcube_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.fits outfile=/scratch/kocevski/585507/expmap_698025601_698630401_4FGL_J0923.5+4125_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/585507/ltcube_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.fits
.....................!
real 190.86
user 185.94
sys 4.47

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

Setting source of interest to:
4FGL J0923.5+4125 @ 140.895 41.4283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits scfile=/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits outfile=/scratch/kocevski/585507/cmap_698025601_698630401_4FGL_J0923.5+4125_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=140.895 yref=41.4283 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 1.05
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits scfile=/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits outfile=/scratch/kocevski/585507/cmap_HighResolution_698025601_698630401_4FGL_J0923.5+4125_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=140.895 yref=41.4283 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 1.06
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/585507/Model_4FGL_J0923.5+4125_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/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits.....................!
real 59.72
user 55.47
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits', '/scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits', expMap='/scratch/kocevski/585507/expmap_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.fits', expCube='/scratch/kocevski/585507/ltcube_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/585507/Model_4FGL_J0923.5+4125_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+4125'

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/585507/ft1_filtered_4FGL_J0923.5+4125_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/585507/ft2_4FGL_J0923.5+4125_weekly_bin759.fits
Exposure map: /scratch/kocevski/585507/expmap_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.fits
Exposure cube: /scratch/kocevski/585507/ltcube_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/585507/Model_4FGL_J0923.5+4125_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) = 6841.84940966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40703E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2294       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36871E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11155E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .16098E-05   1.0000          .0000       .10000E+07
     6 'norm      '    2.0545       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.850       1.0000          .0000       .10000E+07
     8 'Prefactor '    20.487       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.012       1.0000          .0000       .10000E+07
    10 'norm      '    .48975E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .84660E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .27489E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.7909       1.0000          .0000       .10000E+07
    14 'norm      '    4.6072       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19755E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.0066       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.0642       1.0000          .0000       .10000E+07
    18 'Prefactor '    .54127E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .11931E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .12546E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.7097       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.454       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.9383       1.0000          .0000       .10000E+07
    24 'norm      '    22.991       1.0000          .0000       .10000E+07
    25 'Prefactor '    .10297E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .14816E-06   1.0000          .0000       .10000E+07
    27 'norm      '    7.0494       1.0000          .0000       .10000E+07
    28 'Normalizat'    .65852       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6841.831     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2718 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    2.5913       -.55747E-07** at limit **
   2  Prefactor     4.2293        2.3306        .13989E-07    .60544E-02
   3  Prefactor     .38525E-07    13.414       -.20358E-06** at limit **
   4  Prefactor     .33307E-09    3.3677        .55504E-07** at limit **
   5  norm          .38858E-09    1.2313       -.38213E-06** at limit **
   6  norm          2.0516        2.9275        .31561E-07    .53192E-02
   7  Prefactor     11.876        1.1362        .42053E-07   -.12415E-02
   8  Prefactor     20.642        20.544        .21253E-05   -.58163E-01
   9  Prefactor     14.988        5.0104       -.10749E-06   -.14188E-01
  10  norm           .0000        .82171       -.85010E-08** at limit **
  11  Prefactor     .75218E-07    18.512        .35764E-06** at limit **
  12  norm          .16653E-09    .68814        .28325E-07** at limit **
  13  Prefactor     1.7934        2.6406        .40812E-07   -.44800E-02
  14  norm          4.6047        6.6028        .99517E-06    .25476E-01
  15  Prefactor      .0000        .93364        .35983E-08** at limit **
  16  Prefactor     6.0169        5.6794       -.41053E-06   -.95960E-02
  17  Prefactor     1.0610        2.3721        .34251E-07    .63669E-03
  18  Prefactor     .12784E-06    4.7240       -.51623E-06** at limit **
  19  norm          .58686E-06    3.7678        .92787E-06** at limit **
  20  Prefactor     .13878E-06    5.8267       -.20077E-06** at limit **
  21  Prefactor     1.7479        4.3718        .15624E-06    .33437E-02
  22  Prefactor     12.516        1.1996        .27160E-07   -.25776E-03
  23  Prefactor     5.9349        2.4642        .26928E-06    .14491E-01
  24  norm          22.982        1.1015       -.31419E-07   -.94977E-02
  25  Prefactor      .0000        1.2519        .29555E-06** at limit **
  26  Prefactor      .0000        1.1677        .48666E-07** at limit **
  27  norm          7.0375        1.4251       -.12246E-06   -.10142E-01
  28  Normalizat    .65841        .18069       -.35262E-05   -.10629E-03
  29  Prefactor     1.2796        .20214        .97412E-06    .42197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 4.22931
  Prefactor  = 3.85247e-08
  Prefactor  = 3.33067e-10
  norm       = 3.88578e-10
  norm       = 2.0516
  Prefactor  = 11.8758
  Prefactor  = 20.6422
  Prefactor  = 14.9884
  norm       = 0
  Prefactor  = 7.52176e-08
  norm       = 1.66533e-10
  Prefactor  = 1.7934
  norm       = 4.60471
  Prefactor  = 0
  Prefactor  = 6.01688
  Prefactor  = 1.06098
  Prefactor  = 1.27842e-07
  norm       = 5.86864e-07
  Prefactor  = 1.38778e-07
  Prefactor  = 1.74795
  Prefactor  = 12.5162
  Prefactor  = 5.93492
  norm       = 22.982
  Prefactor  = 0
  Prefactor  = 0
  norm       = 7.03753
  Normalizat = 0.658409
  Prefactor  = 1.2796
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.831     FROM HESSE     STATUS=OK           623 CALLS     3341 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2293        2.3324        .48974E-03   -1.5667    
   3  Prefactor     .38525E-07    13.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33307E-09    3.3700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38858E-09    1.2342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0516        2.9641        .72083E-03   -1.5679    
   7  Prefactor     11.876        19.988        .29076E-03   -1.5639    
   8  Prefactor     20.642        27.048        .22100E-03   -1.5617    
   9  Prefactor     14.988        5.0959        .25824E-03   -1.5631    
  10  norm           .0000        .82267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75218E-07    18.707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .16653E-09    .34354        .20256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7934        3.2997        .78127E-03   -1.5681    
  14  norm          4.6047        6.7906        .46869E-03   -1.5665    
  15  Prefactor      .0000        .93242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0169        6.1276        .40945E-03   -1.5659    
  17  Prefactor     1.0610        2.8394        .42861E-02   -1.5687    
  18  Prefactor     .12784E-06    5.2369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .58686E-06    5.7192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .13878E-06    6.4156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7479        4.4884        .80368E-03   -1.5682    
  22  Prefactor     12.516        20.555        .28359E-03   -1.5637    
  23  Prefactor     5.9349        6.0781        .41184E-03   -1.5659    
  24  norm          22.982        12.088        .20861E-03   -1.5612    
  25  Prefactor      .0000        1.2547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        1.1678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.0375        12.484        .37760E-03   -1.5655    
  28  Normalizat    .65841        .16013        .62585E-01   -1.0556    
  29  Prefactor     1.2796        .17275        .53844E-01   -.83916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94097e-07
Minuit parameter uncertainties:
  1  4.49185e-05
  2  2.33242
  3  0.00144576
  4  6.48666e-05
  5  4.46367e-05
  6  2.96409
  7  19.988
  8  27.0485
  9  5.09586
  10  2.18423e-06
  11  0.00237222
  12  1.6218e-05
  13  3.29974
  14  6.79062
  15  7.82211e-06
  16  6.12756
  17  2.83937
  18  0.0016364
  19  0.00366401
  20  0.00188707
  21  4.48845
  22  20.555
  23  6.07815
  24  12.0883
  25  4.27022e-06
  26  6.44274e-06
  27  12.4837
  28  0.16024
  29  0.17283
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  7.822e-06  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.280e+00  1.728e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  6.584e-01  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585507/likelihoodResults_698025601_698630401_4FGL_J0923.5+4125_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): 0
logL (Free Index) = 6841.83674186
delta logL = -0.00556479928309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6841.83117716
delta logL = -1.00236320577e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44742E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.2121       1.0000          .0000       10.000    
     3 'Normalizat'    .65836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2797       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   6841.102     FROM MIGRAD    STATUS=FAILED       290 CALLS      489 TOTAL
                     EDM=   .12E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21117E-05    .59420E-04    .74901E-06** at limit **
   2  Index         9.5733        8.7350        .41418        .24794E-04
   3  Normalizat    .60787        .52585E-01    .28681E-03    .57475E-04
   4  Prefactor     1.3193        .61439E-01    .23492E-03   -.17247E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6841.102     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      569 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21117E-05    .59420E-04    .10428E-06** at limit **
   2  Index         9.5733        8.7350        .15971E-01    .24794E-04
   3  Normalizat    .60787        .52585E-01    .22165E-03    .57475E-04
   4  Prefactor     1.3193        .61439E-01    .19142E-03   -.17247E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6841.102     FROM MIGRAD    STATUS=FAILED        42 CALLS      611 TOTAL
                     EDM=   .93E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21116E-05    .91970E-04     .0000    ** at limit **
   2  Index         9.5733        9.6687         .0000       -.17643E-04
   3  Normalizat    .60787        .95472E-01     .0000        .78483E-04
   4  Prefactor     1.3193        .11065         .0000       -.15825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11159e-06
  Index      = 9.57333
  Normalizat = 0.607867
  Prefactor  = 1.31933
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.102     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      636 TOTAL
                     EDM=   .19E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21116E-05    .95387E-04    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5733        9.6279        .10457E-02    1.1547    
   3  Normalizat    .60787        .10718        .22945E-05   -1.0765    
   4  Prefactor     1.3193        .12384        .93967E-05   -.82734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.0192053
Minuit parameter uncertainties:
  1  2.83845e-05
  2  6.23253
  3  0.107221
  4  0.123868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585507': 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) = 6841.10197256
delta logL = 0.729204498777

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  2.112e-06  2.838e-05  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  9.573e+00  6.233e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.319e+00  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  6.079e-01  1.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 140.895 41.428
Photon Index (Free Index): 9.57 +/- 6.23
Photon Flux (Free Index): 4.51e-08 +/- 3.89e-08
Energy Flux (Free Index): 5.07e-06 +/- 4.57e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/585507/cmap_HighResolution_698025601_698630401_4FGL_J0923.5+4125_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', comment='SUCCESS', energy_flux2='5.07e-06', dlogl='7.29e-01', photon_flux2='4.51e-08', job_status='DONE', time_completed='2023-02-21 03:31:13.943407', photon_index_error2='6.23', photon_index2='9.57', ts='0.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='4.57e-06', EG='0.66', time_epoch_completed='1676979073.94', return_code='0', job_id='585507', GAL2='1.32', EG2='0.61', return_code2='1', photon_flux_error2='3.89e-08', ts2='1.53', photon_index='2.36' WHERE bin_id='759' AND source_name='4FGL J0923.5+4125' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:31:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 585507: <4FGL_J0923.5+4125_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0923.5+4125_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:15:19 2023
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:15:19 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:15:19 2023
Terminated at Tue Feb 21 03:31:14 2023
Results reported at Tue Feb 21 03:31:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_weekly_bin759 140.895 41.4283 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   915.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            955 sec.

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

