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 114 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1758
RA = 166.119, Dec = 38.207
tmin = 695001601, tmax = 695260801
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='363670', job_status='RUN', time_executed='2023-01-13 00:37:50.458130', time_epoch_executed='1673599070.46' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363670/ft1_4FGL_J1104.4+3812_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363670/ft2_4FGL_J1104.4+3812_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363670/ft1_4FGL_J1104.4+3812_daily_bin1758.fits outfile=/scratch/kocevski/363670/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1758.fits ra=166.119 dec=38.207 rad=12.0 tmin=695001601.0 tmax=695260801.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.79
user 2.57
sys 0.18

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

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

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363670/ft1_filtered_4FGL_J1104.4+3812_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/363670/ft2_4FGL_J1104.4+3812_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/363670/ltcube_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.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/363670/ft2_4FGL_J1104.4+3812_daily_bin1758.fits
.....................!
real 15.78
user 15.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363670/ft1_filtered_4FGL_J1104.4+3812_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/363670/ft2_4FGL_J1104.4+3812_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/363670/ltcube_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.fits outfile=/scratch/kocevski/363670/expmap_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.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/363670/ltcube_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.fits
.....................!
real 192.41
user 187.31
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/363670/ft1_filtered_4FGL_J1104.4+3812_daily_bin1758.fits scfile=/scratch/kocevski/363670/ft2_4FGL_J1104.4+3812_daily_bin1758.fits outfile=/scratch/kocevski/363670/cmap_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363670/ft1_filtered_4FGL_J1104.4+3812_daily_bin1758.fits scfile=/scratch/kocevski/363670/ft2_4FGL_J1104.4+3812_daily_bin1758.fits outfile=/scratch/kocevski/363670/cmap_HighResolution_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.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.61
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3128       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3694       1.0000          .0000       .10000E+07
     3 'norm      '    .15582E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18119       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15257E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .74831E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.0004       1.0000          .0000       .10000E+07
     8 'Prefactor '    29.329       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45111E-02   1.0000          .0000       .10000E+07
    10 'norm      '    3.1364       1.0000          .0000       .10000E+07
    11 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45286E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15779E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    56.022       1.0000          .0000       .10000E+07
    15 'norm      '    15.080       1.0000          .0000       .10000E+07
    16 'norm      '    .36462       1.0000          .0000       .10000E+07
    17 'Prefactor '    .35594E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    52.794       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11680E-02   1.0000          .0000       .10000E+07
    20 'norm      '    1.0846       1.0000          .0000       .10000E+07
    21 'Prefactor '    12.086       1.0000          .0000       .10000E+07
    22 'Prefactor '    17.008       1.0000          .0000       .10000E+07
    23 'Prefactor '    .41299E-01   1.0000          .0000       .10000E+07
    24 'norm      '    2.3087       1.0000          .0000       .10000E+07
    25 'norm      '    .62709E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .28491       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92180       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=   5921.787     FROM MIGRAD    STATUS=CONVERGED    200 CALLS     2650 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3911        6.7455        .43704E-07    .10115E-03
   2  Prefactor     3.3045        6.2842       -.28936E-07    .57559E-04
   3  norm           .0000        8.7148       -.26726E-06** at limit **
   4  Prefactor     .37245E-05    14.265        .10154E-06** at limit **
   5  Prefactor      .0000        31.840       -.21004E-07** at limit **
   6  Prefactor      .0000        4.1077        .49670E-07** at limit **
   7  Prefactor     8.0098        13.716        .48428E-07    .21942E-01
   8  Prefactor     29.116        11.213       -.23196E-10   -.29279E-01
   9  Prefactor     .34195E-07    9.8283        .52751E-07** at limit **
  10  norm          3.1372        .50221        .45427E-08   -.17619E-03
  11  Prefactor      .0000        1.3837       -.11008E-07** at limit **
  12  Prefactor      .0000        5.9026        .11514E-06** at limit **
  13  Prefactor      .0000        4.8041       -.14400E-06** at limit **
  14  Prefactor     58.536        118.38        .47829E-07   -.50380E-02
  15  norm          15.090        2.3941        .43693E-08    .45258E-01
  16  norm          .22204E-09    149.27       -.22801E-06** at limit **
  17  Prefactor      .0000        .97132        .19424E-07** at limit **
  18  Prefactor     52.652        37.693        .45398E-07   -.21767E-01
  19  Prefactor     .23315E-08    9.6818       -.12412E-06** at limit **
  20  norm          1.0870        2.2185       -.63162E-07    .80522E-04
  21  Prefactor     12.207        18.227        .74965E-07   -.88190E-02
  22  Prefactor     17.068        8.1317       -.16561E-07   -.16119E-03
  23  Prefactor     .55511E-10    60.538       -.11351E-06** at limit **
  24  norm          2.3127        1.0741       -.61629E-08    .30823E-03
  25  norm           .0000        3.7791       -.13179E-06** at limit **
  26  Prefactor     .67168E-08    132.09       -.15499E-05** at limit **
  27  Normalizat    1.2137        .23867       -.20022E-06    .10947E-05
  28  Prefactor     .92195        .26924        .49835E-06    .13104E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39106
  Prefactor  = 3.30448
  norm       = 0
  Prefactor  = 3.72452e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.00981
  Prefactor  = 29.1156
  Prefactor  = 3.41949e-08
  norm       = 3.1372
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 58.5359
  norm       = 15.09
  norm       = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 52.652
  Prefactor  = 2.33147e-09
  norm       = 1.08704
  Prefactor  = 12.2072
  Prefactor  = 17.0678
  Prefactor  = 5.55112e-11
  norm       = 2.31275
  norm       = 0
  Prefactor  = 6.71685e-09
  Normalizat = 1.21371
  Prefactor  = 0.921954
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.787     FROM HESSE     STATUS=OK           575 CALLS     3225 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3911        6.8059        .48484E-03   -1.5666    
   2  Prefactor     3.3045        6.3434        .55102E-03   -1.5672    
   3  norm           .0000        8.6832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37245E-05    92.329        .12121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        31.595        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.0880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0098        34.551        .35424E-03   -1.5651    
   8  Prefactor     29.116        114.00        .18468E-03   -1.5600    
   9  Prefactor     .34195E-07    10.697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1372        .50220        .47585E-03   -1.5673    
  11  Prefactor      .0000        1.3809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.9024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.8029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.536        119.09        .13361E-03   -1.5555    
  15  norm          15.090        13.778        .25766E-03   -1.5630    
  16  norm          .22204E-09    148.25        .93706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .97016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.652        42.275        .13764E-03   -1.5563    
  19  Prefactor     .23315E-08    9.8896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0870        2.3454        .11530E-02   -1.5687    
  21  Prefactor     12.207        18.718        .28790E-03   -1.5638    
  22  Prefactor     17.068        8.1479        .24259E-03   -1.5625    
  23  Prefactor     .55511E-10    59.270        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3127        1.0781        .67499E-04   -1.5678    
  25  norm           .0000        3.7773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .67168E-08    129.83        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2137        .20200        .56630E-01   -.86180    
  28  Prefactor     .92195        .22551        .74849E-01   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26445e-07
Minuit parameter uncertainties:
  1  6.80592
  2  6.3434
  3  8.58124e-06
  4  0.0370885
  5  5.84388e-06
  6  9.87667e-06
  7  33.2719
  8  114.011
  9  0.00120959
  10  0.502204
  11  6.42581e-07
  12  2.24937e-05
  13  1.05787e-05
  14  119.093
  15  13.7784
  16  0.000378433
  17  7.12768e-07
  18  42.2756
  19  0.000302559
  20  2.34543
  21  18.7178
  22  8.14794
  23  0.000133965
  24  1.0781
  25  8.23299e-06
  26  0.00186948
  27  0.202128
  28  0.225744
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.137e+00  5.022e-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:  9.220e-01  2.257e-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.214e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 256.94
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.26e-07 +/- 5.21e-08
Energy Flux (Fixed Index): 4.41e-04 +/- 7.05e-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) = 5919.10698991
delta logL = 2.67965159568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5919.10377495
delta logL = 2.68286655899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1027       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4676       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88821       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=   5919.104     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1027        .51892        .49667E-03   -.13544E-02
   2  alpha         1.4676        .10954        .81342E-01   -.17956E-04
   3  Normalizat    1.2805        .19224        .55531E-01    .41836E-05
   4  Prefactor     .88821        .22486        .76340E-01    .17676E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10269
  alpha      = 1.46757
  Normalizat = 1.2805
  Prefactor  = 0.888212
 **********
 **   18 **HESSE 
 **********

 FCN=   5919.104     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .44E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1027        .53728        .21924E-05   -1.5673    
   2  alpha         1.4676        .11420        .35727E-03   -.42571    
   3  Normalizat    1.2805        .22933        .24555E-03   -.84150    
   4  Prefactor     .88821        .26755        .33786E-03   -.96554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44719e-17
Minuit parameter uncertainties:
  1  0.537284
  2  0.114247
  3  0.229516
  4  0.267951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363670': 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) = 5919.10377484
delta logL = 2.68286666803

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.103e+00  5.373e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.468e+00  1.142e-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:  8.882e-01  2.680e-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.280e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 261.57
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.47 +/- 0.11
Photon Flux (Free Index): 2.49e-07 +/- 5.18e-08
Energy Flux (Free Index): 7.74e-04 +/- 2.27e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/363670/cmap_HighResolution_695001601_695260801_4FGL_J1104.4+3812_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.26e-07', energy_flux2='7.74e-04', photon_flux_error='5.21e-08', dlogl='2.68e+00', energy_flux='4.41e-04', photon_flux2='2.49e-07', job_status='DONE', time_completed='2023-01-13 00:49:15.134961', photon_index_error2='0.11', photon_index2='1.47', ts='256.94', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.27e-04', EG='1.21', time_epoch_completed='1673599755.14', return_code='0', job_id='363670', GAL2='0.89', EG2='1.28', return_code2='0', energy_flux_error='7.05e-05', photon_flux_error2='5.18e-08', ts2='261.57', photon_index='1.74' WHERE bin_id='1758' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:49:15 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 363670: <4FGL_J1104.4+3812_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 00:35:15 2023
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:35:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:35:47 2023
Terminated at Fri Jan 13 00:49:15 2023
Results reported at Fri Jan 13 00:49:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1758 166.119 38.207 695001601 695260801 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            840 sec.

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

