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


Performing analysis on: 4FGL_J1104.4+3812_weekly_bin760
RA = 166.119, Dec = 38.207
tmin = 698630401, tmax = 699235201
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='20020', job_status='RUN', time_executed='2023-02-28 01:02:08.369650', time_epoch_executed='1677574928.37' WHERE source_name='4FGL J1104.4+3812' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20020

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20020/ft1_4FGL_J1104.4+3812_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20020/ft1_4FGL_J1104.4+3812_weekly_bin760.fits outfile=/scratch/kocevski/20020/ft1_filteredMKT_4FGL_J1104.4+3812_weekly_bin760.fits ra=166.119 dec=38.207 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.21
user 5.93
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.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/20020/ft1_filteredMKT_4FGL_J1104.4+3812_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.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.15

Number of photons that the gtmktime cut: 36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/20020/ltcube_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.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/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits
.....................!
real 33.89
user 33.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/20020/ltcube_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.fits outfile=/scratch/kocevski/20020/expmap_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.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/20020/ltcube_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.fits
.....................!
real 192.45
user 187.74
sys 4.25

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

Setting source of interest to:
4FGL J1104.4+3812 @ 166.119 38.207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits scfile=/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits outfile=/scratch/kocevski/20020/cmap_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.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=166.119 yref=38.207 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.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits scfile=/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits outfile=/scratch/kocevski/20020/cmap_HighResolution_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.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=166.119 yref=38.207 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.45
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20020/Model_4FGL_J1104.4+3812_weekly_bin760.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/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits....................................!
real 17.12
user 15.87
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits', '/scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits', expMap='/scratch/kocevski/20020/expmap_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.fits', expCube='/scratch/kocevski/20020/ltcube_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20020/Model_4FGL_J1104.4+3812_weekly_bin760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.4+3812'

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.879e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/20020/ft1_filtered_4FGL_J1104.4+3812_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/20020/ft2_4FGL_J1104.4+3812_weekly_bin760.fits
Exposure map: /scratch/kocevski/20020/expmap_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.fits
Exposure cube: /scratch/kocevski/20020/ltcube_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20020/Model_4FGL_J1104.4+3812_weekly_bin760.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 473.78518593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 470.198714642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1622       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9105       1.0000          .0000       .10000E+07
     3 'norm      '    10.088       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.5719       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9716       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.0687       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.1911       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.6335       1.0000          .0000       .10000E+07
    10 'norm      '    .19151E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11367E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .59873E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17037E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42162E-01   1.0000          .0000       .10000E+07
    15 'norm      '    10.453       1.0000          .0000       .10000E+07
    16 'norm      '    .70535E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.095       1.0000          .0000       .10000E+07
    18 'Prefactor '    .97156       1.0000          .0000       .10000E+07
    19 'Prefactor '    .17221E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .10343E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    16.447       1.0000          .0000       .10000E+07
    22 'Prefactor '    13.495       1.0000          .0000       .10000E+07
    23 'Prefactor '    .65866E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .59897E-07   1.0000          .0000       .10000E+07
    25 'norm      '    49.251       1.0000          .0000       .10000E+07
    26 'Prefactor '    64.169       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2885       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   453.6465     FROM MIGRAD    STATUS=CONVERGED    785 CALLS      968 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1622        1.1510         .0000         .0000    
   2  Prefactor     .10000E+07    .69619E+06   -.14609E-03    .71001E-03
   3  norm          .10000E+07    .14205E+06    .11059E-04    .68369E-02
   4  Prefactor     4.5719        1.0061         .0000         .0000    
   5  Prefactor     13809.        5798.9       -.63596E-07   -.11371    
   6  Prefactor     .38442        .15519E+06    .11063E-04    .18788E-02
   7  Prefactor     .10000E+07    .62861E+06   -.14029E-05    .77631E-03
   8  Prefactor     .40706E-06    523.36       -.21054E-06** at limit **
   9  Prefactor     .10492E-07    9761.1       -.11813E-05** at limit **
  10  norm          .55511E-10    2.0237       -.66749E-08** at limit **
  11  Prefactor      .0000        75.176       -.10309E-07** at limit **
  12  Prefactor      .0000        122.93        .22823E-06** at limit **
  13  Prefactor     .11102E-09    94.490       -.19062E-06** at limit **
  14  Prefactor     .55511E-10    156.30       -.19545E-06** at limit **
  15  norm          33.780        460.61       -.60390E-06    .10344E-02
  16  norm           .0000        95.970        .64053E-07** at limit **
  17  Prefactor     6.1198        12.410        .26626E-06    .16775E-02
  18  Prefactor     .11102E-09    172.00        .13064E-05** at limit **
  19  Prefactor     .16653E-09    64.745        .17155E-06** at limit **
  20  norm           .0000        4.7091        .16784E-07** at limit **
  21  Prefactor     38.318        84.098       -.12532E-06   -.19904E-03
  22  Prefactor     16.146        27.573       -.50144E-07   -.37160E-03
  23  Prefactor     .30531E-08    46.489       -.55292E-06** at limit **
  24  norm          .55511E-10    1.5951       -.78539E-07** at limit **
  25  norm          52.882        30.010        .20630E-06   -.54829E-03
  26  Prefactor     62.551        70.358       -.22469E-06   -.66875E-03
  27  Normalizat    .10000E-01    .13442        .41845E-05** at limit **
  28  Prefactor     .94815        .35014        .35431E-05   -.54413E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16222
  Prefactor  = 1e+06
  norm       = 999996
  Prefactor  = 4.57191
  Prefactor  = 13808.6
  Prefactor  = 0.384423
  Prefactor  = 1e+06
  Prefactor  = 4.07063e-07
  Prefactor  = 1.04916e-08
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  norm       = 33.7798
  norm       = 0
  Prefactor  = 6.11981
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 38.3178
  Prefactor  = 16.1461
  Prefactor  = 3.05311e-09
  norm       = 5.55112e-11
  norm       = 52.8816
  Prefactor  = 62.5513
  Normalizat = 0.01
  Prefactor  = 0.948146
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   453.6465     FROM HESSE     STATUS=FAILED        11 CALLS      979 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63102.        63101.         .0000       -1.5686    
   2  Prefactor     .10000E+07    .49319       -.14609E-03    1.5721    
   3  norm          .10000E+07    .64326        .11059E-04    1.5749    
   4  Prefactor     4.5719        1.0061         .0000       -1.5665    
   5  Prefactor     13809.        41.414       -.63596E-07   -1.3352    
   6  Prefactor     .38442        .27676        .11063E-04   -1.5696    
   7  Prefactor     .10000E+07    .53315       -.14029E-05    1.5719    
   8  Prefactor     .40706E-06    .60525E-01   -.21054E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10492E-07    .98626E-01   -.11813E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .44347E-01   -.66749E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .44347E-01   -.10309E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .57508        .22823E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    .44347E-01   -.19062E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    .62945       -.19545E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          33.780        1.7997       -.60390E-06   -1.5824    
  16  norm           .0000        .44347E-01    .64053E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1198        .71193        .26626E-06   -1.5757    
  18  Prefactor     .11102E-09    .45702E-01    .13064E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16653E-09    .74190        .17155E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .44347E-01    .16784E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.318        1.5270       -.12532E-06   -1.5584    
  22  Prefactor     16.146        1.0946       -.50144E-07   -1.5788    
  23  Prefactor     .30531E-08    .44347E-01   -.55292E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55511E-10    .44347E-01   -.78539E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          52.882        1.0363        .20630E-06   -1.5563    
  26  Prefactor     62.551        .98734       -.22469E-06   -1.5866    
  27  Normalizat    .10000E-01    .25505        .41845E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .94815        .94411        .35431E-05   -.94478    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.05977e-09
Minuit parameter uncertainties:
  1  1.15103
  2  0.493191
  3  0.643262
  4  1.00611
  5  41.4137
  6  0.27676
  7  0.533153
  8  0.000313929
  9  6.4326e-05
  10  2.88592e-06
  11  9.35611e-08
  12  8.07242e-07
  13  4.66582e-06
  14  1.14248e-05
  15  1.79969
  16  1.69155e-06
  17  0.711925
  18  4.80103e-06
  19  2.07426e-05
  20  3.43338e-07
  21  1.52704
  22  1.09458
  23  2.31675e-05
  24  2.91195e-06
  25  1.03625
  26  0.987342
  27  5.8145e-07
  28  0.96127
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 453.646491022

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  5.551e-11  2.886e-06  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  9.481e-01  9.613e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.000e-02  5.815e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.119 38.207
Photon Flux Upper Limit: 1.25e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20020/likelihoodResults_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.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) = 453.646741637
delta logL = -0.00025061536337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 453.646491366
delta logL = -3.44730494817e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14638E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    .82071       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   453.6465     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      244 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49960E-09    .69323E-01    .42118E-03** at limit **
   2  alpha         .44583        2.6917        .50000       -.17337E-08
   3  Normalizat    .10000E-01    .35127E-04    .11022    ** at limit **
   4  Prefactor     .94814        .48900E-02    .45613E-01   -.26057E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.996e-10
  alpha      = 0.445827
  Normalizat = 0.01
  Prefactor  = 0.948139
 **********
 **   18 **HESSE 
 **********

 FCN=   453.6465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49960E-09    1.9461        .14983E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .44583        3.8984        .50000       -.96433    
   3  Normalizat    .10000E-01    .10377E-02    .47750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94814        .25994E-01    .21252E-03   -.94479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43045e-08
Minuit parameter uncertainties:
  1  6.40274e-05
  2  47529.6
  3  1.37209e-07
  4  0.0259942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20020': 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): 102
logL (Free Index) = 453.646491022
delta logL = -8.22012680146e-10

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  4.996e-10  6.403e-05  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  4.458e-01  4.753e+04  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  9.481e-01  2.599e-02  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.000e-02  1.372e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.119 38.207

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/20020/cmap_HighResolution_698630401_699235201_4FGL_J1104.4+3812_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-03', job_status='DONE', photon_flux_upper_limit='1.25e-06', time_completed='2023-02-28 01:08:32.501327', job_id='20020', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677575312.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.95', dlogl='-8.22e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='760' AND source_name='4FGL J1104.4+3812' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:08:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 20020: <4FGL_J1104.4+3812_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1104.4+3812_weekly_bin760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 28 01:00:30 2023
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:00:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:00:31 2023
Terminated at Tue Feb 28 01:08:32 2023
Results reported at Tue Feb 28 01:08:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_weekly_bin760 166.119 38.207 698630401 699235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   386.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             381.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   481 sec.
    Turnaround time :                            482 sec.

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

