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


Performing analysis on: 4FGL_J1104.4+3812_weekly_bin752
RA = 166.119, Dec = 38.207
tmin = 693792001, tmax = 694396801
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='437991', job_status='RUN', time_executed='2023-01-03 01:40:59.167253', time_epoch_executed='1672738859.17' WHERE source_name='4FGL J1104.4+3812' and cadence='weekly' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437991

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437991/ft1_4FGL_J1104.4+3812_weekly_bin752.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437991/ft1_4FGL_J1104.4+3812_weekly_bin752.fits outfile=/scratch/kocevski/437991/ft1_filteredMKT_4FGL_J1104.4+3812_weekly_bin752.fits ra=166.119 dec=38.207 rad=12.0 tmin=693792001.0 tmax=694396801.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.69
user 8.30
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.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/437991/ft1_filteredMKT_4FGL_J1104.4+3812_weekly_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.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.57
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/437991/ltcube_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.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/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits
.....................!
real 31.85
user 31.18
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/437991/ltcube_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.fits outfile=/scratch/kocevski/437991/expmap_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.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/437991/ltcube_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.fits
.....................!
real 194.76
user 187.93
sys 5.13

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/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.fits scfile=/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits outfile=/scratch/kocevski/437991/cmap_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.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.60
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.fits scfile=/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits outfile=/scratch/kocevski/437991/cmap_HighResolution_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.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.43
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.fits', '/scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits', expMap='/scratch/kocevski/437991/expmap_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.fits', expCube='/scratch/kocevski/437991/ltcube_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437991/Model_4FGL_J1104.4+3812_weekly_bin752.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/437991/ft1_filtered_4FGL_J1104.4+3812_weekly_bin752.fits
Spacecraft file(s): /scratch/kocevski/437991/ft2_4FGL_J1104.4+3812_weekly_bin752.fits
Exposure map: /scratch/kocevski/437991/expmap_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.fits
Exposure cube: /scratch/kocevski/437991/ltcube_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437991/Model_4FGL_J1104.4+3812_weekly_bin752.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9467.08704061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43160E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.7457       1.0000          .0000       .10000E+07
     3 'norm      '    .25795E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    30.200       1.0000          .0000       .10000E+07
     5 'Prefactor '    42.944       1.0000          .0000       .10000E+07
     6 'Prefactor '    .63316E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.6611       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32608E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.831       1.0000          .0000       .10000E+07
    10 'norm      '    2.9724       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.0016       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21915E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .67910E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .40038E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .31501       1.0000          .0000       .10000E+07
    16 'norm      '    61.184       1.0000          .0000       .10000E+07
    17 'Prefactor '    .14946E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .73915E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.772       1.0000          .0000       .10000E+07
    20 'norm      '    .33928       1.0000          .0000       .10000E+07
    21 'Prefactor '    .17237E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    4.0278       1.0000          .0000       .10000E+07
    23 'Prefactor '    .47510E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .52093       1.0000          .0000       .10000E+07
    25 'norm      '    .58355E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    13.435       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89366       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=   9463.180     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1530 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3649       -.17899E-08** at limit **
   2  Prefactor     3.7504        3.6730        .67175E-09    .18287E-02
   3  norm          .16653E-09    3.8068       -.73270E-09** at limit **
   4  Prefactor     29.533        38.545       -.10335E-07    .71432E-01
   5  Prefactor     42.834        1.1385       -.23517E-10    .15575E-02
   6  Prefactor      .0000        2.3093       -.66984E-09** at limit **
   7  Prefactor     1.6518        2.0104       -.25563E-08    .49998E-02
   8  Prefactor     .12013E-04    31.194        .29318E-08** at limit **
   9  Prefactor     13.912        7.7338        .60507E-08   -.10512    
  10  norm          2.9716        .35904       -.59045E-10   -.67798E-02
  11  Prefactor     2.9987        2.0884       -.11118E-08    .96730E-02
  12  Prefactor     .55511E-10    3.8413        .72437E-09** at limit **
  13  Prefactor     .12490E-07    4.7694        .58700E-09** at limit **
  14  Prefactor     .11158E-07    16.170        .62110E-08** at limit **
  15  norm          .54501        20.222        .10858E-07   -.18431E-01
  16  norm          61.331        9.3600        .21538E-08   -.49688E-01
  17  Prefactor      .0000        .58678        .50736E-09** at limit **
  18  Prefactor     .16570E-06    22.819        .15424E-08** at limit **
  19  Prefactor     16.694        12.154       -.11371E-07    .15949    
  20  norm          .33783        1.3734       -.26333E-11    .48841E-03
  21  Prefactor     .16653E-09    4.8678        .11423E-08** at limit **
  22  Prefactor     4.0264        3.5017        .30251E-08   -.19812E-02
  23  Prefactor     .15999E-04    22.521       -.37794E-08** at limit **
  24  norm          .52239        .49952       -.25325E-09    .58101E-02
  25  norm          .34972E-08    8.9954       -.20561E-08** at limit **
  26  Prefactor     13.124        1.7832       -.96263E-09    .15408E-01
  27  Normalizat    1.0612        .15696        .63517E-08   -.59396E-04
  28  Prefactor     .89362        .18336       -.42180E-08   -.44399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.75036
  norm       = 1.66533e-10
  Prefactor  = 29.5328
  Prefactor  = 42.8335
  Prefactor  = 0
  Prefactor  = 1.65184
  Prefactor  = 1.20133e-05
  Prefactor  = 13.9123
  norm       = 2.97162
  Prefactor  = 2.99872
  Prefactor  = 5.55112e-11
  Prefactor  = 1.249e-08
  Prefactor  = 1.11577e-08
  norm       = 0.545015
  norm       = 61.3312
  Prefactor  = 0
  Prefactor  = 1.65701e-07
  Prefactor  = 16.6936
  norm       = 0.337834
  Prefactor  = 1.66533e-10
  Prefactor  = 4.02638
  Prefactor  = 1.59989e-05
  norm       = 0.522389
  norm       = 3.4972e-09
  Prefactor  = 13.1244
  Normalizat = 1.06117
  Prefactor  = 0.893617
 **********
 **   18 **HESSE 
 **********

 FCN=   9463.180     FROM HESSE     STATUS=OK           577 CALLS     2107 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7504        3.7015        .52145E-03   -1.5669    
   3  norm          .16653E-09    3.8083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.533        44.779        .18200E-03   -1.5599    
   5  Prefactor     42.834        28.083        .15261E-03   -1.5577    
   6  Prefactor      .0000        2.3048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6518        20.587        .81822E-03   -1.5682    
   8  Prefactor     .12013E-04    42.589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.912        10.528        .26907E-03   -1.5633    
  10  norm          2.9716        .36036        .44325E-03   -1.5673    
  11  Prefactor     2.9987        2.1279        .58562E-03   -1.5673    
  12  Prefactor     .55511E-10    3.8484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12490E-07    5.3381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11158E-07    16.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .54501        4.9514        .10008E-01   -1.5693    
  16  norm          61.331        52.169        .12785E-03   -1.5551    
  17  Prefactor      .0000        .58741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16570E-06    23.401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.694        12.875        .24429E-03   -1.5626    
  20  norm          .33783        1.3461        .96888E-03   -1.5696    
  21  Prefactor     .16653E-09    5.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0264        3.6526        .50222E-03   -1.5668    
  23  Prefactor     .15999E-04    40.262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .52239        .52833        .76631E-03   -1.5694    
  25  norm          .34972E-08    8.9282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.124        26.858        .27301E-03   -1.5636    
  27  Normalizat    1.0612        .13579        .39865E-01   -.91008    
  28  Prefactor     .89362        .15865        .66867E-01   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52209e-06
Minuit parameter uncertainties:
  1  6.09723e-08
  2  3.70151
  3  5.33126e-05
  4  44.7795
  5  28.083
  6  6.86597e-06
  7  11.6631
  8  0.0452393
  9  10.5285
  10  0.360364
  11  2.12794
  12  3.28902e-05
  13  0.000516123
  14  0.000855065
  15  3.28549
  16  52.1696
  17  4.3786e-06
  18  0.00393855
  19  12.8748
  20  1.34614
  21  6.07846e-05
  22  3.65262
  23  0.0507603
  24  0.528326
  25  0.000352633
  26  26.8581
  27  0.135839
  28  0.158737
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.972e+00  3.604e-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:  8.936e-01  1.587e-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.061e+00  1.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 389.21
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.09e-07 +/- 3.74e-08
Energy Flux (Fixed Index): 4.17e-04 +/- 5.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) = 9463.17708239
delta logL = 0.00337565029986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9463.17669713
delta logL = 0.00376091066755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9636       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7435       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89478       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=   9463.177     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9636        .42514        .44204E-03   -.19926E-01
   2  alpha         1.7435        .10462        .78153E-01   -.40858E-04
   3  Normalizat    1.0592        .13225        .39976E-01    .66459E-04
   4  Prefactor     .89478        .15701        .66823E-01    .19215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96363
  alpha      = 1.74348
  Normalizat = 1.05924
  Prefactor  = 0.894784
 **********
 **   18 **HESSE 
 **********

 FCN=   9463.177     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9636        .37046        .19522E-05   -1.5674    
   2  alpha         1.7435        .91956E-01    .34271E-03   -.30743    
   3  Normalizat    1.0592        .15459        .22947E-03   -.91071    
   4  Prefactor     .89478        .18329        .29559E-03   -.96324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11634e-11
Minuit parameter uncertainties:
  1  0.37046
  2  0.0919793
  3  0.154659
  4  0.183416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437991': 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) = 9463.17669713
delta logL = 0.00376091126236

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.964e+00  3.705e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.743e+00  9.198e-02  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:  8.948e-01  1.834e-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.059e+00  1.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 387.60
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.74 +/- 0.09
Photon Flux (Free Index): 3.11e-07 +/- 4.49e-08
Energy Flux (Free Index): 4.11e-04 +/- 9.21e-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/437991/cmap_HighResolution_693792001_694396801_4FGL_J1104.4+3812_weekly_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-07', energy_flux2='4.11e-04', photon_flux_error='3.74e-08', dlogl='3.76e-03', energy_flux='4.17e-04', photon_flux2='3.11e-07', job_status='DONE', time_completed='2023-01-03 01:54:22.233158', photon_index_error2='0.09', photon_index2='1.74', ts='389.21', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.21e-05', EG='1.06', time_epoch_completed='1672739662.23', return_code='0', job_id='437991', GAL2='0.89', EG2='1.06', return_code2='0', energy_flux_error='5.06e-05', photon_flux_error2='4.49e-08', ts2='387.60', photon_index='1.74' WHERE bin_id='752' AND source_name='4FGL J1104.4+3812' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan  3 01:54:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 437991: <4FGL_J1104.4+3812_weekly_bin752> in cluster <slac> Done

Job <4FGL_J1104.4+3812_weekly_bin752> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan  3 01:40:22 2023
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan  3 01:40:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan  3 01:40:27 2023
Terminated at Tue Jan  3 01:54:22 2023
Results reported at Tue Jan  3 01:54:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_weekly_bin752 166.119 38.207 693792001 694396801 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 :                                   800.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            840 sec.

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

