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


Performing analysis on: 4FGL_J1044.6+8053_daily_bin1688
RA = 161.164, Dec = 80.8941
tmin = 676857601, tmax = 677116801
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='827838', job_status='RUN', time_executed='2022-06-17 00:38:37.087865', time_epoch_executed='1655451517.09' WHERE source_name='4FGL J1044.6+8053' and cadence='daily' and bin_id='1688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/827838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/827838/ft1_4FGL_J1044.6+8053_daily_bin1688.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/827838/ft1_4FGL_J1044.6+8053_daily_bin1688.fits outfile=/scratch/kocevski/827838/ft1_filteredMKT_4FGL_J1044.6+8053_daily_bin1688.fits ra=161.164 dec=80.8941 rad=12.0 tmin=676857601.0 tmax=677116801.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 2.93
user 2.69
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.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/827838/ft1_filteredMKT_4FGL_J1044.6+8053_daily_bin1688.fits evtable="EVENTS" outfile="/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.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: 1653

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits" evtable="EVENTS" scfile=/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits sctable="SC_DATA" outfile=/scratch/kocevski/827838/ltcube_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.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/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits
.....................!
real 14.23
user 13.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits evtable="EVENTS" scfile=/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits sctable="SC_DATA" expcube=/scratch/kocevski/827838/ltcube_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.fits outfile=/scratch/kocevski/827838/expmap_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.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/827838/ltcube_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.fits
.....................!
real 193.23
user 186.90
sys 5.96

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

Setting source of interest to:
4FGL J1044.6+8053 @ 161.164 80.8941

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits scfile=/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits outfile=/scratch/kocevski/827838/cmap_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.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=161.164 yref=80.8941 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits scfile=/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits outfile=/scratch/kocevski/827838/cmap_HighResolution_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.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=161.164 yref=80.8941 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits evtable="EVENTS" scfile=/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/827838/Model_4FGL_J1044.6+8053_daily_bin1688.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/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits.....................!
real 200.90
user 199.28
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits', '/scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits', expMap='/scratch/kocevski/827838/expmap_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.fits', expCube='/scratch/kocevski/827838/ltcube_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/827838/Model_4FGL_J1044.6+8053_daily_bin1688.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1044.6+8053'

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  2.944e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/827838/ft1_filtered_4FGL_J1044.6+8053_daily_bin1688.fits
Spacecraft file(s): /scratch/kocevski/827838/ft2_4FGL_J1044.6+8053_daily_bin1688.fits
Exposure map: /scratch/kocevski/827838/expmap_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.fits
Exposure cube: /scratch/kocevski/827838/ltcube_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/827838/Model_4FGL_J1044.6+8053_daily_bin1688.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) = 17495.2951321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2314       1.0000         .10000E-03   10000.    
     3 'norm      '    .10579E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10821E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.324       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33780E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4987       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2743       1.0000         .10000E-03   10000.    
    14 'norm      '    .66732       1.0000         .10000E-03   10000.    
    15 'norm      '    .47401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6304       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8974       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6098       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .79878E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .99609       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9965       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4541       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.550       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.795       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17495.21     FROM MIGRAD    STATUS=CONVERGED   1353 CALLS     4407 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4131        .18142E-02** at limit **
   2  norm          5.2321        8.5017        .87872E-03    .16146E-03
   3  norm          .10000E-03    17.893        .36285E-03** at limit **
   4  Prefactor     15.788        22.790        .10068E-03   -.99369E-05
   5  Prefactor     1.5612        1.5123        .15412E-03    .43314E-03
   6  Prefactor     .10000E-03    5.9205        .18142E-02** at limit **
   7  Prefactor     12.050        5.9219        .57703E-03    .68485E-04
   8  Prefactor     .10000E-03    39.207        .41701E-02** at limit **
   9  Prefactor     9.6433        7.4771        .12905E-03   -.14659E-03
  10  Prefactor     22.331        15.053        .84775E-04   -.19451E-03
  11  Prefactor     .10000E-03    97.613        .42678E-03** at limit **
  12  norm          7.4982        3.2707        .71879E-03    .66429E-04
  13  Prefactor     3.2717        2.9790        .19052E-03    .96192E-04
  14  norm          .66735        .41822        .59311E-04    .34502E-02
  15  norm          .47259        3.6037        .24147E-03    .14638E-02
  16  Prefactor     .10000E-03    2.9113        .18142E-02** at limit **
  17  Prefactor     7.6359        7.5388        .14518E-03    .17109E-02
  18  Prefactor     1.8975        1.7912        .16807E-03    .38799E-03
  19  Prefactor     7.6086        7.4483        .14537E-03   -.50644E-03
  20  Prefactor     .11105        20.646        .17745        .12435E-03
  21  norm          .99601        2.9427        .37621E-03    .96701E-04
  22  norm          1.9969        1.7861        .15495E-03    .48688E-03
  23  Prefactor     3.4530        22.207        .21761E-03   -.31556E-04
  24  Prefactor     .10000E-03    5.8578        .18142E-02** at limit **
  25  Prefactor     .10000E-03    27.790        .47849E-02** at limit **
  26  Prefactor     28.534        29.337        .74980E-04    .84909E-05
  27  Prefactor     30.798        26.984        .72202E-04    .50386E-05
  28  Normalizat    1.1087        .12220        .26898E-03   -.77637E-03
  29  Prefactor     .85412        .74751E-01    .19802E-03   -.84710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.23212
  norm       = 0.000100002
  Prefactor  = 15.7883
  Prefactor  = 1.56121
  Prefactor  = 0.0001
  Prefactor  = 12.0496
  Prefactor  = 0.000100001
  Prefactor  = 9.64329
  Prefactor  = 22.331
  Prefactor  = 0.000100005
  norm       = 7.49824
  Prefactor  = 3.27169
  norm       = 0.667353
  norm       = 0.472594
  Prefactor  = 0.0001
  Prefactor  = 7.63587
  Prefactor  = 1.89745
  Prefactor  = 7.60863
  Prefactor  = 0.111049
  norm       = 0.996012
  norm       = 1.99686
  Prefactor  = 3.45301
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 28.5335
  Prefactor  = 30.7979
  Normalizat = 1.10874
  Prefactor  = 0.854118
 **********
 **   18 **HESSE 
 **********

 FCN=   17495.21     FROM HESSE     STATUS=OK           535 CALLS     4942 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2321        8.5010        .35149E-04   -1.5250    
   3  norm          .10000E-03    17.894        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.788        22.797        .40272E-05   -1.4913    
   5  Prefactor     1.5612        1.5123        .61649E-05   -1.5458    
   6  Prefactor     .10000E-03    5.9223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.050        5.9215        .23081E-04   -1.5014    
   8  Prefactor     .10000E-03    39.939        .16681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6433        7.4764        .51621E-05   -1.5087    
  10  Prefactor     22.331        14.923        .16955E-04   -1.4762    
  11  Prefactor     .10000E-03    97.620        .85356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4982        3.2693        .28752E-04   -1.5160    
  13  Prefactor     3.2717        2.9778        .76208E-05   -1.5346    
  14  norm          .66735        .41813        .23724E-05   -1.5545    
  15  norm          .47259        3.5227        .96589E-05   -1.5570    
  16  Prefactor     .10000E-03    2.9116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6359        7.4567        .58070E-05   -1.5155    
  18  Prefactor     1.8975        1.7912        .67230E-05   -1.5432    
  19  Prefactor     7.6086        7.4458        .58149E-05   -1.5156    
  20  Prefactor     .11105        21.627        .17173       -1.5641    
  21  norm          .99601        2.9420        .15048E-04   -1.5508    
  22  norm          1.9969        1.7858        .61981E-05   -1.5425    
  23  Prefactor     3.4530        22.219        .87043E-05   -1.5336    
  24  Prefactor     .10000E-03    5.8611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.390        .95697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.534        29.350        .29992E-05   -1.4639    
  27  Prefactor     30.798        26.991        .28881E-05   -1.4597    
  28  Normalizat    1.1087        .12220        .53796E-04   -.89472    
  29  Prefactor     .85412        .74781E-01    .39603E-04   -.97763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37605e-09
Minuit parameter uncertainties:
  1  3.41765e-05
  2  8.50296
  3  0.000370712
  4  22.8093
  5  1.51229
  6  5.18234e-05
  7  5.92175
  8  0.00033087
  9  7.47716
  10  14.9258
  11  0.00134289
  12  3.26935
  13  2.97793
  14  0.418129
  15  2.5805
  16  4.14192e-05
  17  7.45758
  18  1.79122
  19  7.44666
  20  3.09916
  21  2.94248
  22  1.78585
  23  17.5276
  24  5.07594e-05
  25  0.000509999
  26  29.3646
  27  27.0013
  28  0.122227
  29  0.0747903
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  7.498e+00  3.269e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.541e-01  7.479e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.109e+00  1.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.58
Ra Dec: 161.164 80.894
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 6.39e-06

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) = 17495.0803991
delta logL = 0.129508380665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17495.0750349
delta logL = 0.134872571689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0573       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0900       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17495.08     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0566        29.340        .40784E-02    .69957E-03
   2  alpha         3.0896        3.8639        .38389        .13987E-03
   3  Normalizat    1.0990        .45857E-01    .61040E-01    .30724E-04
   4  Prefactor     .85787        .26504E-01    .44466E-01    .16069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.05662
  alpha      = 3.08963
  Normalizat = 1.09904
  Prefactor  = 0.857866
 **********
 **   18 **HESSE 
 **********

 FCN=   17495.08     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0566        4.3418        .12399E-03   -1.5216    
   2  alpha         3.0896        .58904        .14410E-01    .23810    
   3  Normalizat    1.0990        .11374        .26997E-03   -.89783    
   4  Prefactor     .85787        .73232E-01    .19764E-03   -.97629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04137e-11
Minuit parameter uncertainties:
  1  4.34207
  2  0.594964
  3  0.113762
  4  0.07324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/827838': 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) = 17495.0750339
delta logL = 0.134873555366

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  6.057e+00  4.342e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  3.090e+00  5.950e-01  0.000e+00  5.000e+00 ( 1.000e+00)
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.579e-01  7.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.099e+00  1.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.92
Ra Dec: 161.164 80.894
Photon Index (Free Index): 3.09 +/- 0.59
Photon Flux (Free Index): 6.81e-08 +/- 3.06e-08
Energy Flux (Free Index): 1.47e-05 +/- 5.96e-06

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/827838/cmap_HighResolution_676857601_677116801_4FGL_J1044.6+8053_daily_bin1688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='1.47e-05', photon_flux_error='2.59e-08', dlogl='1.35e-01', energy_flux='1.47e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2022-06-17 01:12:23.680575', photon_index_error2='0.59', photon_index2='3.09', ts='9.58', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='5.96e-06', EG='1.11', time_epoch_completed='1655453543.68', return_code='0', job_id='827838', GAL2='0.86', EG2='1.10', return_code2='0', energy_flux_error='6.39e-06', photon_flux_error2='3.06e-08', ts2='9.92', photon_index='2.82' WHERE bin_id='1688' AND source_name='4FGL J1044.6+8053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun 17 01:12:23 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 826879: <4FGL_J1044.6+8053_daily_bin1688> in cluster <slac> Done

Job <4FGL_J1044.6+8053_daily_bin1688> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Jun 17 00:06:20 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jun 17 00:31:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jun 17 00:31:25 2022
Terminated at Fri Jun 17 01:08:09 2022
Results reported at Fri Jun 17 01:08:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_daily_bin1688 161.164 80.8941 676857601 677116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1044.6+8053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2055.00 sec.
    Max Memory :                                 643 MB
    Average Memory :                             332.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2204 sec.
    Turnaround time :                            3709 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 827838: <4FGL_J1044.6+8053_daily_bin1688> in cluster <slac> Done

Job <4FGL_J1044.6+8053_daily_bin1688> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jun 17 00:07:00 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jun 17 00:37:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jun 17 00:37:32 2022
Terminated at Fri Jun 17 01:12:24 2022
Results reported at Fri Jun 17 01:12:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_daily_bin1688 161.164 80.8941 676857601 677116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1044.6+8053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2023.62 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             376.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2932 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2092 sec.
    Turnaround time :                            3924 sec.

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

