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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1772
RA = 166.119, Dec = 38.207
tmin = 698630401, tmax = 698889601
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='629669', job_status='RUN', time_executed='2023-02-24 01:27:19.134788', time_epoch_executed='1677230839.13' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629669

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=698630401.0 && nMetStart<698889601.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<698889601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629669/ft1_4FGL_J1104.4+3812_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629669/ft1_4FGL_J1104.4+3812_daily_bin1772.fits outfile=/scratch/kocevski/629669/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1772.fits ra=166.119 dec=38.207 rad=12.0 tmin=698630401.0 tmax=698889601.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 3.00
user 2.80
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.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/629669/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 8

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/629669/ltcube_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.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/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits
.....................!
real 12.81
user 12.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/629669/ltcube_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.fits outfile=/scratch/kocevski/629669/expmap_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.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/629669/ltcube_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.fits
.....................!
real 192.52
user 186.79
sys 5.32

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/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.fits scfile=/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits outfile=/scratch/kocevski/629669/cmap_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.fits scfile=/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits outfile=/scratch/kocevski/629669/cmap_HighResolution_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.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.58
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.fits', '/scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits', expMap='/scratch/kocevski/629669/expmap_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.fits', expCube='/scratch/kocevski/629669/ltcube_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629669/Model_4FGL_J1104.4+3812_daily_bin1772.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/629669/ft1_filtered_4FGL_J1104.4+3812_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/629669/ft2_4FGL_J1104.4+3812_daily_bin1772.fits
Exposure map: /scratch/kocevski/629669/expmap_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.fits
Exposure cube: /scratch/kocevski/629669/ltcube_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629669/Model_4FGL_J1104.4+3812_daily_bin1772.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) = 111.991102873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.7987       1.0000          .0000       .10000E+07
     3 'norm      '    9.8877       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.5719       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9052       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4951       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.0915       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.1129       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8474       1.0000          .0000       .10000E+07
    10 'norm      '    2.4967       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30761       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1469       1.0000          .0000       .10000E+07
    13 'Prefactor '    .97138       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.1166       1.0000          .0000       .10000E+07
    15 'norm      '    8.7618       1.0000          .0000       .10000E+07
    16 'norm      '    5.4656       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12036       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.6297       1.0000          .0000       .10000E+07
    19 'Prefactor '    .36598E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .15411E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    120.39       1.0000          .0000       .10000E+07
    22 'Prefactor '    .16434E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.3140       1.0000          .0000       .10000E+07
    24 'norm      '    .47864E-05   1.0000          .0000       .10000E+07
    25 'norm      '    34.207       1.0000          .0000       .10000E+07
    26 'Prefactor '    178.90       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84349       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=   109.2002     FROM MIGRAD    STATUS=CONVERGED    221 CALLS      357 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1622        1.1510         .0000         .0000    
   2  Prefactor     1.7987        1.0451         .0000         .0000    
   3  norm          9.8877        1.0013         .0000         .0000    
   4  Prefactor     4.5719        1.0061         .0000         .0000    
   5  Prefactor     7.9052        1.0020         .0000         .0000    
   6  Prefactor     3.4951        1.0106         .0000         .0000    
   7  Prefactor     1.0915        1.1949         .0000         .0000    
   8  Prefactor     8.7719        49.995       -.18537E-05   -.22735E-01
   9  Prefactor     2.8474        1.0163         .0000         .0000    
  10  norm          206.22        665.99        .71083E-05   -.50780E-02
  11  Prefactor     .70166E-06    662.22       -.22800E-06** at limit **
  12  Prefactor     .40172E-01    439.85        .21593E-05** at limit **
  13  Prefactor     .11146        189.91        .36438E-05** at limit **
  14  Prefactor     .15549E-02    600.96        .64307E-05** at limit **
  15  norm          .33782E-03    2681.8        .13670E-04** at limit **
  16  norm          .67463E-03    57.418       -.93067E-06** at limit **
  17  Prefactor      .0000        54.337       -.10159E-06** at limit **
  18  Prefactor     .20204E-04    456.90        .33302E-06** at limit **
  19  Prefactor     .22204E-09    154.14        .46212E-06** at limit **
  20  norm          .55511E-10    19.867        .13002E-06** at limit **
  21  Prefactor     125.01        148.27       -.11942E-06    .46555E-01
  22  Prefactor     .72164E-08    134.81        .32368E-06** at limit **
  23  Prefactor     .47418E-06    261.17        .10215E-05** at limit **
  24  norm           .0000        3.6675        .69809E-07** at limit **
  25  norm          34.239        43.042        .13110E-07   -.28954E-02
  26  Prefactor     180.89        85.125       -.22974E-06    .11452    
  27  Normalizat    .10000E-01    .44614        .84020E-05** at limit **
  28  Prefactor     .69390        .71026       -.34274E-04    .32036E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16222
  Prefactor  = 1.79868
  norm       = 9.88767
  Prefactor  = 4.57191
  Prefactor  = 7.9052
  Prefactor  = 3.49515
  Prefactor  = 1.09146
  Prefactor  = 8.77186
  Prefactor  = 2.84744
  norm       = 206.223
  Prefactor  = 7.01661e-07
  Prefactor  = 0.0401717
  Prefactor  = 0.111456
  Prefactor  = 0.00155493
  norm       = 0.000337816
  norm       = 0.000674628
  Prefactor  = 0
  Prefactor  = 2.02037e-05
  Prefactor  = 2.22045e-10
  norm       = 5.55112e-11
  Prefactor  = 125.015
  Prefactor  = 7.21645e-09
  Prefactor  = 4.74176e-07
  norm       = 0
  norm       = 34.2387
  Prefactor  = 180.885
  Normalizat = 0.01
  Prefactor  = 0.693901
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   109.2002     FROM HESSE     STATUS=FAILED        11 CALLS      368 TOTAL
                     EDM=   .55E-09  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     1.7987        1.0451         .0000       -1.5681    
   3  norm          9.8877        1.0013         .0000       -1.5645    
   4  Prefactor     4.5719        1.0061         .0000       -1.5665    
   5  Prefactor     7.9052        1.0020         .0000       -1.5652    
   6  Prefactor     3.4951        1.0106         .0000       -1.5671    
   7  Prefactor     1.0915        1.1949         .0000       -1.5687    
   8  Prefactor     8.7719        1.1133       -.18537E-05   -1.5649    
   9  Prefactor     2.8474        1.0163         .0000       -1.5674    
  10  norm          206.22        9.2839        .71083E-05   -1.5421    
  11  Prefactor     .70166E-06    .25544       -.22800E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .40172E-01    .14090        .21593E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11146        .14272        .36438E-05   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15549E-02    .12557        .64307E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .33782E-03    .28627E-01    .13670E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .67463E-03    .46130E-01   -.93067E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .44969       -.10159E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .20204E-04    .54645E-01    .33302E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    .64970        .46212E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    .44347E-01    .13002E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     125.01        1.0191       -.11942E-06   -1.5484    
  22  Prefactor     .72164E-08    .44347E-01    .32368E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .47418E-06    .47470E-01    .10215E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .44347E-01    .69809E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          34.239        1.0006        .13110E-07   -1.5591    
  26  Prefactor     180.89        1.0055       -.22974E-06   -1.5439    
  27  Normalizat    .10000E-01    .25704        .84020E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .69390        1.0888       -.34274E-04   -1.0377    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.53689e-10
Minuit parameter uncertainties:
  1  1.15103
  2  1.04507
  3  1.00128
  4  1.00611
  5  1.00201
  6  1.01062
  7  1.19492
  8  1.11327
  9  1.01631
  10  9.28386
  11  0.00084671
  12  0.140904
  13  0.14272
  14  0.027946
  15  0.0062195
  16  0.0111572
  17  1.67733e-06
  18  0.00210145
  19  2.41028e-05
  20  2.24511e-06
  21  1.01905
  22  3.57992e-05
  23  0.000300058
  24  1.58274e-07
  25  1.00057
  26  1.00553
  27  5.05789e-08
  28  1.12524
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.062e+02  9.284e+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

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  6.939e-01  1.125e+00  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.058e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 166.119 38.207
Photon Flux Upper Limit: 1.81e-04 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629669/likelihoodResults_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.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) = 108.510042513
delta logL = 0.690170956817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 108.308482169
delta logL = 0.891731300033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5644       1.0000          .0000       .10000E+07
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71617       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=   108.3085     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      302 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5631        3.2069        .34407E-03   -.15288E-02
   2  alpha         5.0000        4.3001        .33782    ** at limit **
   3  Normalizat    .10000E-01    .31375        .82251E-01** at limit **
   4  Prefactor     .71686        .50441        .42616E-01   -.24949E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56306
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.716862
 **********
 **   18 **HESSE 
 **********

 FCN=   108.3085     FROM HESSE     STATUS=OK            27 CALLS      329 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5631        1.8746        .15209E-05   -1.5683    
   2  alpha         5.0000        4.4200        .12026E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .31534        .18068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71686        .50235        .19913E-03   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14571e-12
Minuit parameter uncertainties:
  1  1.87461
  2  1.30438e-05
  3  1.31466e-07
  4  0.505579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629669': 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) = 108.308475402
delta logL = 0.891738067665

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.563e+00  1.875e+00  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  5.000e+00  1.304e-05  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:  7.169e-01  5.056e-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  1.315e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 166.119 38.207
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.14e-04 +/- 1.36e-04
Energy Flux (Free Index): 1.52e-02 +/- 1.82e-02

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/629669/cmap_HighResolution_698630401_698889601_4FGL_J1104.4+3812_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-01', comment='SUCCESS', energy_flux2='1.52e-02', dlogl='8.92e-01', photon_flux2='1.14e-04', job_status='DONE', time_completed='2023-02-24 01:32:46.887793', photon_index_error2='0.00', photon_index2='5.00', ts='0.15', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.81e-04', energy_flux_error2='1.82e-02', EG='0.01', time_epoch_completed='1677231166.89', return_code='101', job_id='629669', GAL2='0.72', EG2='0.01', return_code2='0', photon_flux_error2='1.36e-04', ts2='1.90', photon_index='1.74' WHERE bin_id='1772' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:32:46 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 629669: <4FGL_J1104.4+3812_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1772> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Feb 24 01:25:15 2023
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:25:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:25:16 2023
Terminated at Fri Feb 24 01:32:47 2023
Results reported at Fri Feb 24 01:32:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1772 166.119 38.207 698630401 698889601 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 :                                   328.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   451 sec.
    Turnaround time :                            452 sec.

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

