/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 2 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 = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1058
RA = 166.119, Dec = 38.207
tmin = 513561601, tmax = 513820801
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='496901', job_status='RUN', time_executed='2021-09-03 06:57:47.638737', time_epoch_executed='1630677467.64' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496901/ft1_4FGL_J1104.4+3812_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496901/ft2_4FGL_J1104.4+3812_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496901/ft1_4FGL_J1104.4+3812_daily_bin1058.fits outfile=/scratch/kocevski/496901/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1058.fits ra=166.119 dec=38.207 rad=12.0 tmin=513561601.0 tmax=513820801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.70
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496901/ft1_filtered_4FGL_J1104.4+3812_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/496901/ft2_4FGL_J1104.4+3812_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/496901/ltcube_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits outfile=/scratch/kocevski/496901/expmap_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.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/496901/ltcube_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits
.....................!
real 190.17
user 185.13
sys 4.68

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/496901/ft1_filtered_4FGL_J1104.4+3812_daily_bin1058.fits scfile=/scratch/kocevski/496901/ft2_4FGL_J1104.4+3812_daily_bin1058.fits outfile=/scratch/kocevski/496901/cmap_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=166.119 yref=38.207 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496901/ft1_filtered_4FGL_J1104.4+3812_daily_bin1058.fits scfile=/scratch/kocevski/496901/ft2_4FGL_J1104.4+3812_daily_bin1058.fits outfile=/scratch/kocevski/496901/cmap_HighResolution_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496901/ft1_filtered_4FGL_J1104.4+3812_daily_bin1058.fits', '/scratch/kocevski/496901/ft2_4FGL_J1104.4+3812_daily_bin1058.fits', expMap='/scratch/kocevski/496901/expmap_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits', expCube='/scratch/kocevski/496901/ltcube_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496901/Model_4FGL_J1104.4+3812_daily_bin1058.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  1.000e-04  1.000e+04 ( 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  0.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/496901/ft1_filtered_4FGL_J1104.4+3812_daily_bin1058.fits
Spacecraft file(s): /scratch/kocevski/496901/ft2_4FGL_J1104.4+3812_daily_bin1058.fits
Exposure map: /scratch/kocevski/496901/expmap_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits
Exposure cube: /scratch/kocevski/496901/ltcube_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496901/Model_4FGL_J1104.4+3812_daily_bin1058.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) = 5809.62563638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0119       1.0000         .10000E-03   10000.    
     4 'norm      '    24.287       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3261       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4039       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9484       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12176E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.411       1.0000         .10000E-03   10000.    
    27 'norm      '    4.3208       1.0000         .10000E-03   10000.    
    28 'norm      '    22.019       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .64845       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5809.616     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4315 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7606        .35815E-07** at limit **
   2  Prefactor     7.6570        26.666        .41172E-05   -.96968E-04
   3  Prefactor     8.0080        6.0213       -.17297E-06   -.33823E-03
   4  norm          24.297        13.877       -.66469E-06   -.22416E-03
   5  Prefactor     .10000E-03    96.595        .12143E-05** at limit **
   6  Prefactor     .10000E-03    22.570       -.41558E-06** at limit **
   7  Prefactor     .10000E-03    5.4614       -.10560E-06** at limit **
   8  Prefactor     .84714        6.4045        .17606E-05    .42298E-04
   9  Prefactor     .10000E-03    36.418       -.46420E-06** at limit **
  10  Prefactor     .10000E-03    14.362        .65717E-06** at limit **
  11  Prefactor     38.726        111.73        .27498E-05   -.24593E-04
  12  Prefactor     .10000E-03    7.8840       -.48878E-06** at limit **
  13  norm          2.0905        .41058       -.27611E-07   -.11636E-03
  14  Prefactor     5.3279        4.1065        .28415E-06   -.13889E-03
  15  Prefactor     .10000E-03    7.5890        .20868E-06** at limit **
  16  Prefactor     .10000E-03    17.453       -.26752E-06** at limit **
  17  Prefactor     .10000E-03    34.202        .24933E-06** at limit **
  18  norm          1.4054        20.302        .17933E-04   -.26498E-04
  19  norm          .10000E-03    22.474       -.10340E-07** at limit **
  20  Prefactor     2.9462        2.8777       -.19175E-06   -.47772E-04
  21  Prefactor     .10000E-03    28.542        .85987E-06** at limit **
  22  Prefactor     .10000E-03    17.458       -.25356E-06** at limit **
  23  norm          .10000E-03    2.0499       -.81770E-07** at limit **
  24  Prefactor     .10000E-03    15.348        .38308E-06** at limit **
  25  Prefactor     .10000E-03    2.4342        .69783E-07** at limit **
  26  Prefactor     15.401        37.935        .86177E-06    .57294E-05
  27  norm          4.3201        1.6202        .62802E-07    .79742E-03
  28  norm          22.012        12.878        .46090E-06    .28151E-03
  29  Prefactor     .10000E-03    10.495       -.63268E-07** at limit **
  30  Prefactor     .10000E-03    84.724       -.27146E-05** at limit **
  31  Normalizat    1.2114        .18180        .11305E-05    .55690E-04
  32  Prefactor     .64854        .19890       -.40264E-05   -.13562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.65696
  Prefactor  = 8.00801
  norm       = 24.297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.847144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7255
  Prefactor  = 0.0001
  norm       = 2.09047
  Prefactor  = 5.32789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40543
  norm       = 0.0001
  Prefactor  = 2.94619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4011
  norm       = 4.32013
  norm       = 22.0122
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.21137
  Prefactor  = 0.648543
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.616     FROM HESSE     STATUS=OK           649 CALLS     4964 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8084        .14363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6570        26.695        .14405E-03   -1.5154    
   3  Prefactor     8.0080        5.9739        .14165E-03   -1.5142    
   4  norm          24.297        13.852        .81281E-04   -1.4722    
   5  Prefactor     .10000E-03    97.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6600        .34692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .84714        6.3127        .35880E-03   -1.5524    
   9  Prefactor     .10000E-03    36.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.726        112.15        .64390E-04   -1.4463    
  12  Prefactor     .10000E-03    7.9117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0905        .41093        .20784E-04   -1.5419    
  14  Prefactor     5.3279        4.1109        .12765E-03   -1.5246    
  15  Prefactor     .10000E-03    7.6197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4054        20.490        .18301E-02   -1.5471    
  19  norm          .10000E-03    22.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9462        2.7961        .11765E-03   -1.5365    
  21  Prefactor     .10000E-03    28.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.4555        .20309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.4471        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.401        37.935        .10203E-03   -1.4923    
  27  norm          4.3201        1.6236        .52809E-04   -1.5292    
  28  norm          22.012        12.895        .85360E-04   -1.4769    
  29  Prefactor     .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    85.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2114        .21525        .22480E-03   -.86252    
  32  Prefactor     .64854        .23064        .33887E-03   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49935e-10
Minuit parameter uncertainties:
  1  9.37363e-06
  2  26.7368
  3  5.9743
  4  13.8539
  5  2.05169e-05
  6  0.000126668
  7  1.08443e-05
  8  4.62546
  9  8.08303e-05
  10  4.54769e-05
  11  112.768
  12  6.40448e-05
  13  0.410926
  14  4.11109
  15  3.71839e-06
  16  9.19616e-05
  17  7.36898e-06
  18  10.7366
  19  4.93101e-06
  20  2.7962
  21  0.000160058
  22  9.38304e-05
  23  4.72711e-06
  24  5.24682e-05
  25  5.28701e-06
  26  37.9942
  27  1.6236
  28  12.8967
  29  1.98209e-05
  30  0.000879736
  31  0.215404
  32  0.230978
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.090e+00  4.109e-01  1.000e-04  1.000e+04 ( 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  0.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:  6.485e-01  2.310e-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.211e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 157.18
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.17e-07 +/- 4.27e-08
Energy Flux (Fixed Index): 2.94e-04 +/- 5.77e-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) = 5809.57622273
delta logL = 0.0402523161738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.57167339
delta logL = 0.0448016497721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0755       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65329       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=   5809.572     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0755        .48542        .46432E-02   -.42614E-03
   2  alpha         1.7807        .17689        .10198        .16260E-03
   3  Normalizat    1.2020        .17482        .50990E-01    .37732E-04
   4  Prefactor     .65331        .19730        .76243E-01    .96007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07548
  alpha      = 1.78072
  Normalizat = 1.20197
  Prefactor  = 0.653309
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.572     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0755        .40847        .20501E-04   -1.5420    
   2  alpha         1.7807        .15131        .44308E-03   -.29184    
   3  Normalizat    1.2020        .20429        .22543E-03   -.86542    
   4  Prefactor     .65331        .22987        .33756E-03   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06881e-10
Minuit parameter uncertainties:
  1  0.408469
  2  0.15141
  3  0.204429
  4  0.2302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496901': 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) = 5809.57167338
delta logL = 0.0448016604651

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.075e+00  4.085e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.781e+00  1.514e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00  0.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:  6.533e-01  2.302e-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.202e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 156.43
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.78 +/- 0.15
Photon Flux (Free Index): 2.28e-07 +/- 5.72e-08
Energy Flux (Free Index): 2.70e-04 +/- 9.03e-05

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/496901/cmap_HighResolution_513561601_513820801_4FGL_J1104.4+3812_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-07', energy_flux2='2.70e-04', photon_flux_error='4.27e-08', dlogl='4.48e-02', energy_flux='2.94e-04', photon_flux2='2.28e-07', job_status='DONE', time_completed='2021-09-03 07:11:38.127789', photon_index_error2='0.15', photon_index2='1.78', ts='157.18', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='9.03e-05', EG='1.21', time_epoch_completed='1630678298.13', return_code='0', job_id='496901', GAL2='0.65', EG2='1.20', return_code2='0', energy_flux_error='5.77e-05', photon_flux_error2='5.72e-08', ts2='156.43', photon_index='1.74' WHERE bin_id='1058' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 496901: <4FGL_J1104.4+3812_daily_bin1058> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1058> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 06:56:36 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:57:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:57:34 2021
Terminated at Fri Sep  3 07:11:39 2021
Results reported at Fri Sep  3 07:11:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1058 166.119 38.207 513561601 513820801 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 :                                   825.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            903 sec.

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

