/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 26 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 = 7417
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin275
RA = 166.119, Dec = 38.207
tmin = 310608001, tmax = 310867201
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='491453', job_status='RUN', time_executed='2021-09-03 06:40:21.012844', time_epoch_executed='1630676421.01' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491453/ft1_4FGL_J1104.4+3812_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491453/ft2_4FGL_J1104.4+3812_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491453/ft1_4FGL_J1104.4+3812_daily_bin275.fits outfile=/scratch/kocevski/491453/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin275.fits ra=166.119 dec=38.207 rad=12.0 tmin=310608001.0 tmax=310867201.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 4.23
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491453/ft1_filtered_4FGL_J1104.4+3812_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/491453/ft2_4FGL_J1104.4+3812_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/491453/ltcube_310608001_310867201_4FGL_J1104.4+3812_daily_bin275.fits outfile=/scratch/kocevski/491453/expmap_310608001_310867201_4FGL_J1104.4+3812_daily_bin275.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/491453/ltcube_310608001_310867201_4FGL_J1104.4+3812_daily_bin275.fits
.....................!
real 190.64
user 186.21
sys 4.00

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491453/ft1_filtered_4FGL_J1104.4+3812_daily_bin275.fits scfile=/scratch/kocevski/491453/ft2_4FGL_J1104.4+3812_daily_bin275.fits outfile=/scratch/kocevski/491453/cmap_HighResolution_310608001_310867201_4FGL_J1104.4+3812_daily_bin275.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    108.48       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80180       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.398       1.0000         .10000E-03   10000.    
    18 'norm      '    16.396       1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4525       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7580       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5900       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20173E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .26371       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8692       1.0000         .10000E-03   10000.    
    27 'norm      '    1.8309       1.0000         .10000E-03   10000.    
    28 'norm      '    3.3151       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.679       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12098E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99925       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .87641       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=   6059.705     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     3628 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7884        3.7926        .93710E-06    .11159E-02
   2  Prefactor     .10002E-03    12.718       -.68789E-05** at limit **
   3  Prefactor     .10000E-03    2.7338       -.18059E-06** at limit **
   4  norm          .10000E-03    3.0170        .94865E-06** at limit **
   5  Prefactor     25.146        2.0179       -.72555E-06    .40652E-02
   6  Prefactor     .10024E-03    6.3679       -.14775E-04** at limit **
   7  Prefactor     2.3311        3.0653       -.15107E-06    .51724E-04
   8  Prefactor     .10000E-03    1.1862        .58714E-06** at limit **
   9  Prefactor     .10007E-03    8.0372        .77163E-05** at limit **
  10  Prefactor     23.311        1.0399        .25520E-06   -.58931E-03
  11  Prefactor     108.47        1.6514       -.37378E-06    .79457E-02
  12  Prefactor     .80114        1.3551        .33015E-05    .74567E-03
  13  norm          1.4766        .33729       -.65631E-07   -.57544E-03
  14  Prefactor     .10000E-03    .69095       -.27063E-06** at limit **
  15  Prefactor     4.8396        1.0141        .19279E-06   -.49866E-04
  16  Prefactor     .10008E-03    6.7648        .86150E-05** at limit **
  17  Prefactor     37.396        1.0195       -.81384E-07    .64685E-03
  18  norm          16.393        1.0096        .85569E-07   -.13665E-03
  19  norm          .10008E-03    11.265       -.10984E-04** at limit **
  20  Prefactor     1.4512        1.8062       -.29108E-06   -.12350E-04
  21  Prefactor     .10001E-03    12.889        .84725E-05** at limit **
  22  Prefactor     1.7965        5.5738       -.17807E-04    .27206E-02
  23  norm          1.5958        2.8373       -.55995E-07   -.13926E-04
  24  Prefactor     .10006E-03    78.058        .24238E-04** at limit **
  25  Prefactor     .26146        .53418        .55860E-06   -.43806E-04
  26  Prefactor     1.8408        3.8244       -.70459E-05    .24669E-02
  27  norm          1.8318        1.0126        .10625E-06   -.93506E-04
  28  norm          3.3156        1.0191       -.28492E-06    .40197E-04
  29  Prefactor     13.698        1.8611        .49884E-06   -.20413E-02
  30  Prefactor     .10029E-03    37.559        .18577E-04** at limit **
  31  Normalizat    .99922        .18141        .13781E-05   -.42782E-04
  32  Prefactor     .87655        .21369        .73512E-06   -.48228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.78842
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.1463
  Prefactor  = 0.000100236
  Prefactor  = 2.33108
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 23.311
  Prefactor  = 108.473
  Prefactor  = 0.801141
  norm       = 1.47656
  Prefactor  = 0.0001
  Prefactor  = 4.83964
  Prefactor  = 0.000100078
  Prefactor  = 37.3962
  norm       = 16.3933
  norm       = 0.000100079
  Prefactor  = 1.45122
  Prefactor  = 0.000100014
  Prefactor  = 1.79653
  norm       = 1.59577
  Prefactor  = 0.000100063
  Prefactor  = 0.261465
  Prefactor  = 1.84076
  norm       = 1.83179
  norm       = 3.31558
  Prefactor  = 13.6981
  Prefactor  = 0.000100288
  Normalizat = 0.999222
  Prefactor  = 0.876552
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.705     FROM HESSE     STATUS=OK           737 CALLS     4365 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7884        3.8266        .38499E-02   -1.5187    
   2  Prefactor     .10002E-03    12.827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.146        34.676        .19964E-02   -1.4705    
   6  Prefactor     .10024E-03    7.4422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3311        3.0905        .67152E-02   -1.5403    
   8  Prefactor     .10000E-03    1.1820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10007E-03    8.3542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.311        19.189        .20740E-02   -1.4742    
  11  Prefactor     108.47        103.07        .96538E-03   -1.3621    
  12  Prefactor     .80114        9.8405        .12447E-01   -1.5529    
  13  norm          1.4766        .34384        .47185E-02   -1.5465    
  14  Prefactor     .10000E-03    .68759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8396        12.630        .45712E-02   -1.5268    
  16  Prefactor     .10008E-03    7.1201        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.396        47.969        .16384E-02   -1.4484    
  18  norm          16.393        15.567        .24728E-02   -1.4898    
  19  norm          .10008E-03    20.725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4512        1.8805        .89345E-02   -1.5467    
  21  Prefactor     .10001E-03    21.776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7965        45.368        .79020E-02   -1.5440    
  23  norm          1.5958        3.1355        .84133E-02   -1.5455    
  24  Prefactor     .10006E-03    13.649        .91235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .26146        2.6892        .64785E-01   -1.5606    
  26  Prefactor     1.8408        317.53        .76166E-02   -1.5437    
  27  norm          1.8318        1.1723        .77109E-02   -1.5437    
  28  norm          3.3156        9.6786        .55583E-02   -1.5344    
  29  Prefactor     13.698        29.848        .27075E-02   -1.4968    
  30  Prefactor     .10029E-03    114.98        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .99922        .16355        .46158E-01   -.93057    
  32  Prefactor     .87655        .18516        .64486E-01   -.96965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87491e-06
Minuit parameter uncertainties:
  1  3.82678
  2  0.00103033
  3  3.13224e-07
  4  2.72235e-06
  5  34.7034
  6  0.00264959
  7  3.09073
  8  8.52548e-07
  9  0.00152946
  10  19.1946
  11  103.244
  12  5.61636
  13  0.343843
  14  1.99096e-06
  15  12.637
  16  0.00149036
  17  48.0184
  18  15.5707
  19  0.00256607
  20  1.88056
  21  0.00110125
  22  18.0709
  23  3.13583
  24  0.00185389
  25  1.67684
  26  48.6156
  27  1.17228
  28  9.68313
  29  29.8805
  30  0.0115385
  31  0.163628
  32  0.185288
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.477e+00  3.438e-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:  8.766e-01  1.853e-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:  9.992e-01  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 96.46
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 3.57e-08
Energy Flux (Fixed Index): 2.07e-04 +/- 4.83e-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) = 6059.67980665
delta logL = 0.0249619589613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6059.67898734
delta logL = 0.0257812734126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4644       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7730       1.0000          .0000       5.0000    
     3 'Normalizat'    .99472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87842       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=   6059.679     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4645        .45072        .46556E-02   -.49155E-04
   2  alpha         1.7730        .21607        .11426        .27738E-04
   3  Normalizat    .99474        .15197        .46101E-01    .83929E-05
   4  Prefactor     .87840        .18306        .64402E-01    .14774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46451
  alpha      = 1.77298
  Normalizat = 0.994735
  Prefactor  = 0.878398
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.679     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4645        .33852        .20566E-04   -1.5466    
   2  alpha         1.7730        .16569        .49405E-02   -.29507    
   3  Normalizat    .99474        .17685        .22280E-03   -.93207    
   4  Prefactor     .87840        .21309        .28485E-03   -.96900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98013e-11
Minuit parameter uncertainties:
  1  0.33852
  2  0.165819
  3  0.17695
  4  0.213292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491453': 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) = 6059.67898728
delta logL = 0.0257813269127

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.465e+00  3.385e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.773e+00  1.658e-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:  8.784e-01  2.133e-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:  9.947e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.32
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.77 +/- 0.17
Photon Flux (Free Index): 1.59e-07 +/- 4.42e-08
Energy Flux (Free Index): 1.93e-04 +/- 7.47e-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/491453/cmap_HighResolution_310608001_310867201_4FGL_J1104.4+3812_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='1.93e-04', photon_flux_error='3.57e-08', dlogl='2.58e-02', energy_flux='2.07e-04', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-03 06:54:06.099775', photon_index_error2='0.17', photon_index2='1.77', ts='96.46', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='7.47e-05', EG='1.00', time_epoch_completed='1630677246.1', return_code='0', job_id='491453', GAL2='0.88', EG2='0.99', return_code2='0', energy_flux_error='4.83e-05', photon_flux_error2='4.42e-08', ts2='96.32', photon_index='1.74' WHERE bin_id='275' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:54:06 PDT 2021


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

Job <4FGL_J1104.4+3812_daily_bin275> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 06:37:38 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:38:39 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:38:39 2021
Terminated at Fri Sep  3 06:54:06 2021
Results reported at Fri Sep  3 06:54:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin275 166.119 38.207 310608001 310867201 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 :                                   815.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            988 sec.

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

