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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin921
RA = 166.119, Dec = 38.207
tmin = 478051201, tmax = 478310401
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='495530', job_status='RUN', time_executed='2021-09-03 06:52:33.411403', time_epoch_executed='1630677153.41' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495530/ft1_4FGL_J1104.4+3812_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495530/ft2_4FGL_J1104.4+3812_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495530/ft1_4FGL_J1104.4+3812_daily_bin921.fits outfile=/scratch/kocevski/495530/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin921.fits ra=166.119 dec=38.207 rad=12.0 tmin=478051201.0 tmax=478310401.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.64
user 3.28
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495530/ft1_filtered_4FGL_J1104.4+3812_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/495530/ft2_4FGL_J1104.4+3812_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/495530/ltcube_478051201_478310401_4FGL_J1104.4+3812_daily_bin921.fits outfile=/scratch/kocevski/495530/expmap_478051201_478310401_4FGL_J1104.4+3812_daily_bin921.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/495530/ltcube_478051201_478310401_4FGL_J1104.4+3812_daily_bin921.fits
.....................!
real 190.98
user 185.64
sys 4.24

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/495530/ft1_filtered_4FGL_J1104.4+3812_daily_bin921.fits scfile=/scratch/kocevski/495530/ft2_4FGL_J1104.4+3812_daily_bin921.fits outfile=/scratch/kocevski/495530/cmap_478051201_478310401_4FGL_J1104.4+3812_daily_bin921.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495530/ft1_filtered_4FGL_J1104.4+3812_daily_bin921.fits scfile=/scratch/kocevski/495530/ft2_4FGL_J1104.4+3812_daily_bin921.fits outfile=/scratch/kocevski/495530/cmap_HighResolution_478051201_478310401_4FGL_J1104.4+3812_daily_bin921.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5140       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13617E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.932       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2031       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14244E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9981       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .37541       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4694       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    53.269       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3677       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    55.896       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .65864       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3811       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=   6439.846     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4378 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5190        5.0683        .15468E-06   -.67510E-04
   2  Prefactor     40.579        40.722       -.58306E-05   -.54183E-03
   3  Prefactor     .10000E-03    4.5039        .17887E-06** at limit **
   4  norm          10.860        10.393        .98820E-06    .32696E-04
   5  Prefactor     .10000E-03    70.497       -.16621E-05** at limit **
   6  Prefactor     28.343        30.769        .46434E-06   -.18213E-05
   7  Prefactor     .10000E-03    5.0449       -.54353E-06** at limit **
   8  Prefactor     .10000E-03    4.2873       -.95719E-07** at limit **
   9  Prefactor     45.347        40.118       -.11878E-05   -.16932E-03
  10  Prefactor     .10000E-03    8.0378       -.51479E-06** at limit **
  11  Prefactor     .10001E-03    37.827        .58429E-05** at limit **
  12  Prefactor     12.930        12.217        .57606E-07   -.45769E-04
  13  norm          2.2033        .43129       -.49657E-08   -.18024E-02
  14  Prefactor     .10000E-03    2.1465        .41542E-07** at limit **
  15  Prefactor     .10008E-03    8.7726        .49381E-06** at limit **
  16  Prefactor     24.744        18.439       -.13052E-06   -.15610E-03
  17  Prefactor     .10001E-03    28.482       -.46317E-05** at limit **
  18  norm          .10024E-03    8.2148        .15616E-05** at limit **
  19  norm          .10000E-03    32.591       -.11650E-05** at limit **
  20  Prefactor     3.9999        2.7310       -.28309E-06   -.71143E-03
  21  Prefactor     .10000E-03    20.828        .12308E-05** at limit **
  22  Prefactor     .10000E-03    7.5263        .12584E-06** at limit **
  23  norm          .37602        2.1662        .13510E-05   -.52249E-03
  24  Prefactor     3.4688        10.801        .88058E-05   -.63358E-03
  25  Prefactor     .10000E-03    2.2003       -.26205E-07** at limit **
  26  Prefactor     53.286        45.391        .24988E-05    .25617E-03
  27  norm          2.3674        1.1747       -.15859E-06   -.25343E-03
  28  norm          .10000E-03    3.5611        .44646E-07** at limit **
  29  Prefactor     55.904        29.706        .21102E-06    .14347E-03
  30  Prefactor     .10000E-03    69.165       -.44080E-06** at limit **
  31  Normalizat    .65773        .17750        .79203E-06   -.31642E-03
  32  Prefactor     1.3824        .20579       -.15844E-05   -.16188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.51901
  Prefactor  = 40.5791
  Prefactor  = 0.0001
  norm       = 10.8598
  Prefactor  = 0.000100001
  Prefactor  = 28.3433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.347
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 12.9299
  norm       = 2.20326
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 24.7439
  Prefactor  = 0.000100008
  norm       = 0.000100239
  norm       = 0.0001
  Prefactor  = 3.9999
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.376023
  Prefactor  = 3.46885
  Prefactor  = 0.0001
  Prefactor  = 53.2858
  norm       = 2.36738
  norm       = 0.0001
  Prefactor  = 55.9042
  Prefactor  = 0.0001
  Normalizat = 0.657725
  Prefactor  = 1.38235
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.846     FROM HESSE     STATUS=OK           647 CALLS     5025 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5190        5.0499        .12578E-03   -1.5091    
   2  Prefactor     40.579        42.757        .62901E-04   -1.4433    
   3  Prefactor     .10000E-03    4.6453        .33125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.860        10.416        .12162E-03   -1.5049    
   5  Prefactor     .10000E-03    70.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.343        30.642        .75252E-04   -1.4643    
   7  Prefactor     .10000E-03    5.2336        .35030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3328        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.347        40.201        .59533E-04   -1.4360    
  10  Prefactor     .10000E-03    8.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    38.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.930        12.194        .11139E-03   -1.4989    
  13  norm          2.2033        .43019        .21531E-04   -1.5411    
  14  Prefactor     .10000E-03    2.2011        .22892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    60.278        .43638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.744        18.338        .80539E-04   -1.4713    
  17  Prefactor     .10001E-03    29.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10024E-03    50.429        .42845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    32.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9999        2.6834        .10083E-03   -1.5308    
  21  Prefactor     .10000E-03    20.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .37602        2.1489        .21825E-03   -1.5585    
  24  Prefactor     3.4688        11.417        .10855E-02   -1.5335    
  25  Prefactor     .10000E-03    2.2179        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     53.286        45.808        .54954E-04   -1.4247    
  27  norm          2.3674        1.1779        .54055E-04   -1.5400    
  28  norm          .10000E-03    3.5663        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     55.904        29.785        .53654E-04   -1.4211    
  30  Prefactor     .10000E-03    69.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .65773        .20783        .29504E-03   -1.0559    
  32  Prefactor     1.3824        .24270        .26207E-03   -.80890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1e-08
Minuit parameter uncertainties:
  1  5.05012
  2  42.7891
  3  2.32366e-05
  4  10.4179
  5  0.000570334
  6  30.6586
  7  5.9428e-05
  8  6.14262e-07
  9  40.2249
  10  5.6814e-05
  11  0.00135503
  12  12.1966
  13  0.430191
  14  3.16542e-06
  15  0.0044213
  16  18.3421
  17  0.000944137
  18  0.00695574
  19  0.000252746
  20  2.68351
  21  0.000206593
  22  4.69741e-07
  23  1.79766
  24  11.4242
  25  1.00598e-05
  26  45.8385
  27  1.17789
  28  1.01236e-07
  29  29.7927
  30  0.000163382
  31  0.208074
  32  0.242899
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.203e+00  4.302e-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:  1.382e+00  2.429e-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:  6.577e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 137.90
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.29e-07 +/- 4.47e-08
Energy Flux (Fixed Index): 3.09e-04 +/- 6.04e-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) = 6439.38368727
delta logL = 0.462238867469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.36550344
delta logL = 0.48042270256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0955       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8769       1.0000          .0000       5.0000    
     3 'Normalizat'    .62604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4028       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=   6439.365     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0948        .73407        .45857E-02    .50971E-04
   2  alpha         1.8773        .25603        .95320E-01    .44804E-04
   3  Normalizat    .62644        .16866        .68058E-01    .23141E-04
   4  Prefactor     1.4024        .20566        .58829E-01    .43162E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09482
  alpha      = 1.87728
  Normalizat = 0.626439
  Prefactor  = 1.4024
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.365     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0948        .41235        .20261E-04   -1.5418    
   2  alpha         1.8773        .14629        .41426E-03   -.25174    
   3  Normalizat    .62644        .19470        .30120E-03   -1.0687    
   4  Prefactor     1.4024        .23996        .26013E-03   -.80311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67861e-13
Minuit parameter uncertainties:
  1  0.412351
  2  0.146382
  3  0.194916
  4  0.24015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495530': 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) = 6439.36549608
delta logL = 0.480430061946

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.095e+00  4.124e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.877e+00  1.464e-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:  1.402e+00  2.402e-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:  6.264e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 139.24
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.88 +/- 0.15
Photon Flux (Free Index): 2.62e-07 +/- 5.78e-08
Energy Flux (Free Index): 2.38e-04 +/- 7.50e-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/495530/cmap_HighResolution_478051201_478310401_4FGL_J1104.4+3812_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-07', energy_flux2='2.38e-04', photon_flux_error='4.47e-08', dlogl='4.80e-01', energy_flux='3.09e-04', photon_flux2='2.62e-07', job_status='DONE', time_completed='2021-09-03 07:07:45.952447', photon_index_error2='0.15', photon_index2='1.88', ts='137.90', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='7.50e-05', EG='0.66', time_epoch_completed='1630678065.95', return_code='0', job_id='495530', GAL2='1.40', EG2='0.63', return_code2='0', energy_flux_error='6.04e-05', photon_flux_error2='5.78e-08', ts2='139.24', photon_index='1.74' WHERE bin_id='921' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:07:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 495530: <4FGL_J1104.4+3812_daily_bin921> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin921> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:32 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:52:16 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:52:16 2021
Terminated at Fri Sep  3 07:07:46 2021
Results reported at Fri Sep  3 07:07:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin921 166.119 38.207 478051201 478310401 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 :                                   907.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            974 sec.

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

