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 32 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1104.9+5748_monthly_bin169
RA = 166.24, Dec = 57.8079
tmin = 675043201, tmax = 677635201
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='164443', job_status='RUN', time_executed='2022-06-23 02:06:27.295896', time_epoch_executed='1655975187.3' WHERE source_name='4FGL J1104.9+5748' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164443

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164443/ft1_4FGL_J1104.9+5748_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164443/ft1_4FGL_J1104.9+5748_monthly_bin169.fits outfile=/scratch/kocevski/164443/ft1_filteredMKT_4FGL_J1104.9+5748_monthly_bin169.fits ra=166.24 dec=57.8079 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.44
user 27.51
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.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/164443/ft1_filteredMKT_4FGL_J1104.9+5748_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.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.89
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 8552

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/164443/ltcube_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.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/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits
.....................!
real 166.93
user 165.73
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/164443/ltcube_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.fits outfile=/scratch/kocevski/164443/expmap_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.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/164443/ltcube_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.fits
.....................!
real 192.17
user 186.63
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 233 point sources and 0 extended sources

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits scfile=/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits outfile=/scratch/kocevski/164443/cmap_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.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.24 yref=57.8079 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.78
user 0.58
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits scfile=/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits outfile=/scratch/kocevski/164443/cmap_HighResolution_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.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.24 yref=57.8079 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.81
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164443/Model_4FGL_J1104.9+5748_monthly_bin169.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/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits.....................!
real 697.47
user 694.32
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits', '/scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits', expMap='/scratch/kocevski/164443/expmap_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.fits', expCube='/scratch/kocevski/164443/ltcube_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164443/Model_4FGL_J1104.9+5748_monthly_bin169.xml', optimizer='MINUIT')

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

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164443/ft1_filtered_4FGL_J1104.9+5748_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/164443/ft2_4FGL_J1104.9+5748_monthly_bin169.fits
Exposure map: /scratch/kocevski/164443/expmap_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.fits
Exposure cube: /scratch/kocevski/164443/ltcube_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164443/Model_4FGL_J1104.9+5748_monthly_bin169.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) = 91509.0267707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .92386E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9282       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3084       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28067       1.0000         .10000E-03   10000.    
     7 'norm      '    6.5345       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2006       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45580E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3264       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9850       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8812       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3665       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23752E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.000       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0869       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9753       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9900       1.0000         .10000E-03   10000.    
    21 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3982       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.088       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22219       1.0000         .10000E-03   10000.    
    25 'norm      '    .93020       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3061       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4465       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.6995       1.0000         .10000E-03   10000.    
    30 'norm      '    1.3529       1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.250       1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.4260       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93400       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   91508.99     FROM MIGRAD    STATUS=CONVERGED    968 CALLS     5064 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .78953        .52945E-08** at limit **
   2  Prefactor     .10000E-03    .35404        .58529E-07** at limit **
   3  norm          .89326E-01    .34060       -.47957E-07   -.29776E-03
   4  Prefactor     4.9264        6.3513        .16797E-06   -.21738E-05
   5  norm          1.3083        .15708        .20295E-08   -.31487E-02
   6  Prefactor     .27945        .68801        .13652E-06   -.11099E-02
   7  norm          6.5345        .32158        .81074E-08   -.26773E-03
   8  norm          3.2005        .66110       -.16209E-08   -.20991E-03
   9  Prefactor     .10038E-03    1.9524        .48209E-06** at limit **
  10  norm          4.3261        3.1168        .81243E-07   -.30536E-03
  11  Prefactor     2.9872        5.0033        .53494E-06   -.50600E-03
  12  norm          2.8810        .73472       -.84412E-08   -.76794E-03
  13  norm          5.3664        .57924        .51198E-08   -.76786E-03
  14  Prefactor     .10278E-03    6.4784       -.10583E-05** at limit **
  15  Prefactor     .10000E-03    5.6800        .22723E-07** at limit **
  16  Prefactor     22.008        23.070        .92590E-07    .36551E-05
  17  norm          3.0869        .58852        .94098E-08   -.35186E-03
  18  Prefactor     58.802        14.344        .97969E-06    .85177E-03
  19  Prefactor     5.9776        4.8405       -.10342E-06   -.42512E-03
  20  Prefactor     4.9950        13.383        .33677E-05    .28323E-03
  21  norm          .10000E-03    8.2408        .49394E-07** at limit **
  22  Prefactor     3.3986        1.3815        .22929E-06   -.10635E-02
  23  Prefactor     12.088        4.7586        .47566E-07   -.47222E-04
  24  Prefactor     .21048        .82384        .12068E-06   -.53435E-03
  25  norm          .93013        1.2523        .61409E-06   -.93518E-03
  26  Prefactor     1.3065        .71717        .27397E-06   -.15647E-02
  27  norm          .10000E-03    .21006       -.35528E-08** at limit **
  28  Prefactor     3.4466        1.6060        .17213E-06   -.88641E-03
  29  Prefactor     5.7000        4.4276        .24585E-06    .15940E-03
  30  norm          1.3532        .47894        .14552E-06   -.17907E-02
  31  Prefactor     11.252        4.4441        .24401E-06    .20403E-03
  32  Prefactor     7.4271        8.3530        .51524E-06    .17007E-03
  33  Normalizat    .93391        .44964E-01   -.48443E-06   -.50651E-03
  34  Prefactor     1.0673        .54067E-01   -.15019E-06   -.50471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0893261
  Prefactor  = 4.92645
  norm       = 1.30827
  Prefactor  = 0.279454
  norm       = 6.53449
  norm       = 3.20054
  Prefactor  = 0.000100378
  norm       = 4.32611
  Prefactor  = 2.98725
  norm       = 2.88102
  norm       = 5.36644
  Prefactor  = 0.000102781
  Prefactor  = 0.0001
  Prefactor  = 22.0082
  norm       = 3.08686
  Prefactor  = 58.8021
  Prefactor  = 5.97763
  Prefactor  = 4.99496
  norm       = 0.0001
  Prefactor  = 3.39861
  Prefactor  = 12.0879
  Prefactor  = 0.210485
  norm       = 0.930129
  Prefactor  = 1.30648
  norm       = 0.0001
  Prefactor  = 3.44661
  Prefactor  = 5.70001
  norm       = 1.35319
  Prefactor  = 11.2517
  Prefactor  = 7.42709
  Normalizat = 0.933912
  Prefactor  = 1.06733
 **********
 **   18 **HESSE 
 **********

 FCN=   91508.99     FROM HESSE     STATUS=OK           784 CALLS     5848 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .80169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7163        .34670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .89326E-01    3.4546        .32412E-02   -1.5648    
   4  Prefactor     4.9264        6.5837        .18117E-03   -1.5264    
   5  norm          1.3083        .15641        .39520E-04   -1.5479    
   6  Prefactor     .27945        2.5684        .37991E-02   -1.5602    
   7  norm          6.5345        .32130        .36576E-04   -1.5197    
   8  norm          3.2005        .66062        .10841E-03   -1.5350    
   9  Prefactor     .10038E-03    2.1641        .11750       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3261        3.1196        .19367E-03   -1.5292    
  11  Prefactor     2.9872        5.0208        .23498E-03   -1.5362    
  12  norm          2.8810        .72865        .96401E-04   -1.5368    
  13  norm          5.3664        .57880        .72742E-04   -1.5245    
  14  Prefactor     .10278E-03    6.0772        .29381       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.008        23.067        .85397E-04   -1.4769    
  17  norm          3.0869        .58716        .94843E-04   -1.5357    
  18  Prefactor     58.802        14.709        .52322E-04   -1.4173    
  19  Prefactor     5.9776        4.8498        .16427E-03   -1.5219    
  20  Prefactor     4.9950        13.716        .18003E-03   -1.5261    
  21  norm          .10000E-03    8.5988        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3986        1.3855        .21496E-03   -1.5339    
  23  Prefactor     12.088        4.7569        .11522E-03   -1.5012    
  24  Prefactor     .21048        .84231        .97699E-01   -1.5616    
  25  norm          .93013        1.2700        .25833E-03   -1.5515    
  26  Prefactor     1.3065        .72364        .18423E-03   -1.5479    
  27  norm          .10000E-03    .21024        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.4466        1.6058        .21786E-03   -1.5337    
  29  Prefactor     5.7000        4.4067        .16825E-03   -1.5230    
  30  norm          1.3532        .47718        .11928E-03   -1.5475    
  31  Prefactor     11.252        4.4475        .11944E-03   -1.5037    
  32  Prefactor     7.4271        8.3575        .14718E-03   -1.5163    
  33  Normalizat    .93391        .53321E-01    .24064E-03   -.95279    
  34  Prefactor     1.0673        .64280E-01    .29043E-03   -.90518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60163e-06
Minuit parameter uncertainties:
  1  6.5736e-07
  2  1.30052e-05
  3  1.11046
  4  6.58471
  5  0.156406
  6  1.69419
  7  0.321298
  8  0.660626
  9  0.00180808
  10  3.11973
  11  5.02155
  12  0.728648
  13  0.578796
  14  0.0082231
  15  3.62065e-06
  16  23.0766
  17  0.58716
  18  14.7097
  19  4.85015
  20  13.7246
  21  9.81251e-07
  22  1.38549
  23  4.75708
  24  0.841943
  25  1.27007
  26  0.72365
  27  5.22072e-08
  28  1.60586
  29  4.40695
  30  0.477178
  31  4.44766
  32  8.35879
  33  0.0533244
  34  0.0642843
Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  5.978e+00  4.850e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  1.067e+00  6.428e-02  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  9.339e-01  5.332e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 166.240 57.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 9.05e-09 +/- 7.34e-09
Energy Flux (Fixed Index): 2.38e-06 +/- 1.93e-06

TS (Fixed Index): 2.01
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 2.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164443/likelihoodResults_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.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) = 91508.862962
delta logL = 0.122371335747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 91508.8139513
delta logL = 0.171382094719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2016       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1013       1.0000          .0000       10.000    
     3 'Normalizat'    .92633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   91508.81     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      238 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1884        12.781        .49151E-02    .23146E-02
   2  Index         3.1045        .42285        .43275        .16824E-03
   3  Normalizat    .92631        .49068E-02    .45237E-01    .73601E-04
   4  Prefactor     1.0739        .63114E-02    .65485E-01    .14662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1884
  Index      = 3.10455
  Normalizat = 0.926313
  Prefactor  = 1.07392
 **********
 **   18 **HESSE 
 **********

 FCN=   91508.81     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1884        8.4244        .19660E-03   -1.5299    
   2  Index         3.1045        1.4740        .59406E-02   -.38881    
   3  Normalizat    .92631        .52662E-01    .24151E-03   -.95542    
   4  Prefactor     1.0739        .65386E-01    .28966E-03   -.90305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0767e-10
Minuit parameter uncertainties:
  1  8.42676
  2  1.50015
  3  0.0526652
  4  0.0653911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164443': 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) = 91508.8139455
delta logL = 0.171387852664

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  4.188e+00  8.427e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  3.105e+00  1.500e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  1.074e+00  6.539e-02  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  9.263e-01  5.267e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 166.240 57.808
Photon Index (Free Index): 3.10 +/- 1.50
Photon Flux (Free Index): 1.40e-08 +/- 1.26e-08
Energy Flux (Free Index): 2.67e-06 +/- 1.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/164443/cmap_HighResolution_675043201_677635201_4FGL_J1104.9+5748_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-03', comment='SUCCESS', photon_flux='9.05e-09', energy_flux2='2.67e-06', photon_flux_error='7.34e-09', dlogl='1.71e-01', energy_flux='2.38e-06', photon_flux2='1.40e-08', job_status='DONE', time_completed='2022-06-23 06:06:08.170713', photon_index_error2='1.50', photon_index2='3.10', ts='2.01', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.28e-08', energy_flux_error2='1.87e-06', EG='0.93', time_epoch_completed='1655989568.17', return_code='0', job_id='164443', GAL2='1.07', EG2='0.93', return_code2='0', energy_flux_error='1.93e-06', photon_flux_error2='1.26e-08', ts2='2.40', photon_index='2.60' WHERE bin_id='169' AND source_name='4FGL J1104.9+5748' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:06:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 164443: <4FGL_J1104.9+5748_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1104.9+5748_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:30:42 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:05:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:05:45 2022
Terminated at Thu Jun 23 06:06:09 2022
Results reported at Thu Jun 23 06:06:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.9+5748_monthly_bin169 166.24 57.8079 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.9+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14304.00 sec.
    Max Memory :                                 892 MB
    Average Memory :                             460.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14423 sec.
    Turnaround time :                            16527 sec.

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

