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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1748
RA = 166.119, Dec = 38.207
tmin = 692409601, tmax = 692668801
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='883202', job_status='RUN', time_executed='2022-12-14 00:30:49.704194', time_epoch_executed='1671006649.7' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883202/ft1_4FGL_J1104.4+3812_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883202/ft2_4FGL_J1104.4+3812_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883202/ft1_4FGL_J1104.4+3812_daily_bin1748.fits outfile=/scratch/kocevski/883202/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1748.fits ra=166.119 dec=38.207 rad=12.0 tmin=692409601.0 tmax=692668801.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.54
user 3.33
sys 0.20

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

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

Number of photons that the gtmktime cut: 702

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883202/ft1_filtered_4FGL_J1104.4+3812_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/883202/ft2_4FGL_J1104.4+3812_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/883202/ltcube_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.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/883202/ft2_4FGL_J1104.4+3812_daily_bin1748.fits
.....................!
real 12.04
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883202/ft1_filtered_4FGL_J1104.4+3812_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/883202/ft2_4FGL_J1104.4+3812_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/883202/ltcube_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.fits outfile=/scratch/kocevski/883202/expmap_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.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/883202/ltcube_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.fits
.....................!
real 190.31
user 185.24
sys 4.74

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/883202/ft1_filtered_4FGL_J1104.4+3812_daily_bin1748.fits scfile=/scratch/kocevski/883202/ft2_4FGL_J1104.4+3812_daily_bin1748.fits outfile=/scratch/kocevski/883202/cmap_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883202/ft1_filtered_4FGL_J1104.4+3812_daily_bin1748.fits scfile=/scratch/kocevski/883202/ft2_4FGL_J1104.4+3812_daily_bin1748.fits outfile=/scratch/kocevski/883202/cmap_HighResolution_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28188E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.0237       1.0000          .0000       .10000E+07
     3 'norm      '    8.5389       1.0000          .0000       .10000E+07
     4 'Prefactor '    .53602       1.0000          .0000       .10000E+07
     5 'Prefactor '    42.489       1.0000          .0000       .10000E+07
     6 'Prefactor '    .41070E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    38.938       1.0000          .0000       .10000E+07
     8 'Prefactor '    .67935E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51926E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.6470       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2404       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13686E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .26654       1.0000          .0000       .10000E+07
    14 'Prefactor '    .71108E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .31560E-03   1.0000          .0000       .10000E+07
    16 'norm      '    37.476       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22671       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21340E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19357E-02   1.0000          .0000       .10000E+07
    20 'norm      '    1.0434       1.0000          .0000       .10000E+07
    21 'Prefactor '    .21301E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.5399       1.0000          .0000       .10000E+07
    23 'Prefactor '    .27264E-02   1.0000          .0000       .10000E+07
    24 'norm      '    1.5297       1.0000          .0000       .10000E+07
    25 'norm      '    .11575E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .79007E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.4192       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .72108       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=   7669.597     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     3889 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.5662        .35651E-06** at limit **
   2  Prefactor     3.0243        5.4131       -.63438E-07   -.32486E-03
   3  norm          8.5036        8.4284       -.87482E-07   -.72858E-03
   4  Prefactor     .58176E-07    200.59        .12958E-06** at limit **
   5  Prefactor     42.474        1.2881        .47555E-08   -.31970E-02
   6  Prefactor     .16342E-06    5.3654        .25276E-06** at limit **
   7  Prefactor     38.886        2.3324        .43501E-07   -.24511E-01
   8  Prefactor     .92149E-08    11.136       -.52858E-06** at limit **
   9  Prefactor     .16653E-09    5.4620        .16577E-06** at limit **
  10  norm          2.6495        .40732        .20353E-07   -.26111E-03
  11  Prefactor     4.2383        3.0297       -.14997E-06   -.11390E-02
  12  Prefactor     .88096E-07    7.5056       -.67753E-06** at limit **
  13  Prefactor     .19473E-06    1.4782       -.46214E-06** at limit **
  14  Prefactor     .83267E-09    10.897       -.56230E-06** at limit **
  15  norm          .22204E-09    8.2630        .72420E-06** at limit **
  16  norm          37.326        3.1422        .39094E-08   -.71677E-03
  17  Prefactor     .22711        2.1314        .56826E-06** at limit **
  18  Prefactor     .78049E-07    4.8709       -.22651E-06** at limit **
  19  Prefactor     .45797E-07    4.5861       -.35822E-06** at limit **
  20  norm          1.0432        1.4599        .90664E-07   -.76383E-03
  21  Prefactor     .43854E-08    8.7718        .57773E-06** at limit **
  22  Prefactor     7.5264        5.9561        .22889E-06    .30235E-03
  23  Prefactor     .28683E-06    9.1697       -.13293E-05** at limit **
  24  norm          1.5297        .91177       -.46617E-07    .48868E-03
  25  norm          .55511E-10    3.1162        .15592E-06** at limit **
  26  Prefactor     .55511E-10    52.464        .25729E-06** at limit **
  27  Normalizat    1.4194        .20003       -.71113E-05    .17448E-05
  28  Prefactor     .72137        .22304       -.23983E-05    .16441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.02428
  norm       = 8.50359
  Prefactor  = 5.81757e-08
  Prefactor  = 42.4735
  Prefactor  = 1.63425e-07
  Prefactor  = 38.8857
  Prefactor  = 9.21485e-09
  Prefactor  = 1.66533e-10
  norm       = 2.64946
  Prefactor  = 4.23829
  Prefactor  = 8.80962e-08
  Prefactor  = 1.94733e-07
  Prefactor  = 8.32667e-10
  norm       = 2.22045e-10
  norm       = 37.3263
  Prefactor  = 0.227115
  Prefactor  = 7.80487e-08
  Prefactor  = 4.57967e-08
  norm       = 1.04323
  Prefactor  = 4.38538e-09
  Prefactor  = 7.52639
  Prefactor  = 2.86826e-07
  norm       = 1.52971
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Normalizat = 1.41942
  Prefactor  = 0.721366
 **********
 **   18 **HESSE 
 **********

 FCN=   7669.597     FROM HESSE     STATUS=OK           583 CALLS     4472 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.5665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0243        5.4636        .58335E-03   -1.5673    
   3  norm          8.5036        8.4748        .34281E-03   -1.5650    
   4  Prefactor     .58176E-07    202.33        .75166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.474        35.216        .15343E-03   -1.5578    
   6  Prefactor     .16342E-06    11.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.886        32.437        .16027E-03   -1.5583    
   8  Prefactor     .92149E-08    22.339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    5.4641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6495        .43168        .47819E-03   -1.5675    
  11  Prefactor     4.2383        3.0329        .48908E-03   -1.5667    
  12  Prefactor     .88096E-07    9.6177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19473E-06    14.025        .10694E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .83267E-09    22.272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .22204E-09    13.201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          37.326        37.575        .16337E-03   -1.5586    
  17  Prefactor     .22711        1.2520        .33100E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .78049E-07    14.909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .45797E-07    15.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0432        1.7749        .28176E-02   -1.5688    
  21  Prefactor     .43854E-08    8.8490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5264        6.0126        .36499E-03   -1.5653    
  23  Prefactor     .28683E-06    17.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5297        .92382        .86269E-03   -1.5683    
  25  norm          .55511E-10    3.1187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-10    51.805        .14532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4194        .17088        .51595E-01   -.80069    
  28  Prefactor     .72137        .19157        .80613E-01   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73351e-07
Minuit parameter uncertainties:
  1  1.20843e-05
  2  5.46364
  3  8.47484
  4  0.00686342
  5  35.2165
  6  0.00274846
  7  32.437
  8  0.000906702
  9  5.98863e-05
  10  0.431679
  11  3.03293
  12  0.00184117
  13  0.00330535
  14  0.000270185
  15  0.000109732
  16  37.575
  17  1.06649
  18  0.00215763
  19  0.00167521
  20  1.77486
  21  0.000393167
  22  6.01265
  23  0.00442007
  24  0.923823
  25  2.32957e-05
  26  0.000109391
  27  0.17095
  28  0.19175
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.649e+00  4.317e-01  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:  7.214e-01  1.918e-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.419e+00  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 221.16
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.75e-07 +/- 4.48e-08
Energy Flux (Fixed Index): 3.72e-04 +/- 6.06e-05

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) = 7669.47851494
delta logL = 0.118523352115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7669.47105637
delta logL = 0.125981921947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6012       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7928       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72817       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=   7669.471     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6009        .50574        .46854E-03   -.15099E-02
   2  alpha         1.7928        .13906        .86733E-01    .42779E-04
   3  Normalizat    1.4068        .16505        .51750E-01    .18524E-05
   4  Prefactor     .72819        .19052        .80225E-01    .30998E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60091
  alpha      = 1.79284
  Normalizat = 1.40679
  Prefactor  = 0.728191
 **********
 **   18 **HESSE 
 **********

 FCN=   7669.471     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .29E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6009        .41255        .20697E-05   -1.5676    
   2  alpha         1.7928        .11478        .37927E-03   -.28678    
   3  Normalizat    1.4068        .19297        .22879E-03   -.80432    
   4  Prefactor     .72819        .22208        .35522E-03   -1.0243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8879e-14
Minuit parameter uncertainties:
  1  0.412549
  2  0.114823
  3  0.193068
  4  0.222353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883202': 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) = 7669.47105573
delta logL = 0.125982564363

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.601e+00  4.125e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.793e+00  1.148e-01  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.282e-01  2.224e-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.407e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 220.41
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.79 +/- 0.11
Photon Flux (Free Index): 2.90e-07 +/- 5.32e-08
Energy Flux (Free Index): 3.33e-04 +/- 8.94e-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/883202/cmap_HighResolution_692409601_692668801_4FGL_J1104.4+3812_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-07', energy_flux2='3.33e-04', photon_flux_error='4.48e-08', dlogl='1.26e-01', energy_flux='3.72e-04', photon_flux2='2.90e-07', job_status='DONE', time_completed='2022-12-14 00:46:11.126260', photon_index_error2='0.11', photon_index2='1.79', ts='221.16', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='8.94e-05', EG='1.42', time_epoch_completed='1671007571.13', return_code='0', job_id='883202', GAL2='0.73', EG2='1.41', return_code2='0', energy_flux_error='6.06e-05', photon_flux_error2='5.32e-08', ts2='220.41', photon_index='1.74' WHERE bin_id='1748' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:46:11 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 883202: <4FGL_J1104.4+3812_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 14 00:30:17 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:30:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:30:20 2022
Terminated at Wed Dec 14 00:46:11 2022
Results reported at Wed Dec 14 00:46:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1748 166.119 38.207 692409601 692668801 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 :                                   923.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

