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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin821
RA = 166.119, Dec = 38.207
tmin = 452131201, tmax = 452390401
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='495366', job_status='RUN', time_executed='2021-09-03 06:51:51.999541', time_epoch_executed='1630677112.0' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495366/ft1_4FGL_J1104.4+3812_daily_bin821.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495366/ft2_4FGL_J1104.4+3812_daily_bin821.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495366/ft1_4FGL_J1104.4+3812_daily_bin821.fits outfile=/scratch/kocevski/495366/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin821.fits ra=166.119 dec=38.207 rad=12.0 tmin=452131201.0 tmax=452390401.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.36
user 3.17
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495366/ft1_filtered_4FGL_J1104.4+3812_daily_bin821.fits" evtable="EVENTS" scfile=/scratch/kocevski/495366/ft2_4FGL_J1104.4+3812_daily_bin821.fits sctable="SC_DATA" outfile=/scratch/kocevski/495366/ltcube_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.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/495366/ft2_4FGL_J1104.4+3812_daily_bin821.fits
.....................!
real 12.25
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495366/ft1_filtered_4FGL_J1104.4+3812_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/495366/ft2_4FGL_J1104.4+3812_daily_bin821.fits sctable="SC_DATA" expcube=/scratch/kocevski/495366/ltcube_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.fits outfile=/scratch/kocevski/495366/expmap_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.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/495366/ltcube_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.fits
.....................!
real 191.73
user 185.50
sys 5.07

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/495366/ft1_filtered_4FGL_J1104.4+3812_daily_bin821.fits scfile=/scratch/kocevski/495366/ft2_4FGL_J1104.4+3812_daily_bin821.fits outfile=/scratch/kocevski/495366/cmap_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.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.99
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495366/ft1_filtered_4FGL_J1104.4+3812_daily_bin821.fits scfile=/scratch/kocevski/495366/ft2_4FGL_J1104.4+3812_daily_bin821.fits outfile=/scratch/kocevski/495366/cmap_HighResolution_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6778       1.0000         .10000E-03   10000.    
     4 'norm      '    17.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15713E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76216E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13178       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28821E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.809       1.0000         .10000E-03   10000.    
    19 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18456E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.5644       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6807       1.0000         .10000E-03   10000.    
    28 'norm      '    10.527       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90842       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99684       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=   5929.928     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4406 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4451       -.58688E-08** at limit **
   2  Prefactor     .10000E-03    14.055       -.34495E-05** at limit **
   3  Prefactor     5.6785        3.9323       -.87993E-07   -.16541E-03
   4  norm          17.700        9.8378        .17800E-06   -.10829E-04
   5  Prefactor     .10000E-03    34.355        .20289E-04** at limit **
   6  Prefactor     .10000E-03    11.117        .20360E-05** at limit **
   7  Prefactor     .10000E-03    2.2993        .19210E-06** at limit **
   8  Prefactor     .10000E-03    1.7479        .26610E-08** at limit **
   9  Prefactor     27.385        28.604       -.49952E-05   -.13748E-04
  10  Prefactor     .10000E-03    11.236       -.54000E-06** at limit **
  11  Prefactor     .10000E-03    51.310       -.31306E-04** at limit **
  12  Prefactor     .10071E-03    6.8991       -.57468E-06** at limit **
  13  norm          2.8994        .44243        .22737E-08    .37567E-03
  14  Prefactor     .13917        1.4018        .15155E-06   -.80917E-03
  15  Prefactor     .10000E-03    5.5573        .17347E-06** at limit **
  16  Prefactor     .10000E-03    5.6870       -.21430E-06** at limit **
  17  Prefactor     .10000E-03    286.83        .33371E-04** at limit **
  18  norm          10.808        10.816       -.87669E-07   -.14378E-04
  19  norm          .10000E-03    70.261        .37608E-04** at limit **
  20  Prefactor     .23700E-01    .98502        .68189E-07    .55775E-04
  21  Prefactor     .10000E-03    60.621       -.11330E-04** at limit **
  22  Prefactor     .10000E-03    22.940       -.95889E-05** at limit **
  23  norm          .10000E-03    .84105        .51184E-07** at limit **
  24  Prefactor     .10000E-03    3.9874       -.30728E-07** at limit **
  25  Prefactor     8.5627        5.8391       -.98510E-06   -.83312E-04
  26  Prefactor     .10000E-03    25.196       -.19630E-05** at limit **
  27  norm          4.6808        1.3154       -.16715E-07   -.14759E-04
  28  norm          10.528        9.2184       -.32171E-07    .19897E-05
  29  Prefactor     .10000E-03    9.7727       -.70058E-06** at limit **
  30  Prefactor     .10000E-03    17.698        .68613E-05** at limit **
  31  Normalizat    .90842        .16871        .84942E-06    .39104E-04
  32  Prefactor     .99678        .20198        .20088E-06    .57790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.67852
  norm       = 17.7003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100712
  norm       = 2.89944
  Prefactor  = 0.139168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8076
  norm       = 0.0001
  Prefactor  = 0.0236999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56273
  Prefactor  = 0.0001
  norm       = 4.68085
  norm       = 10.5275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.908425
  Prefactor  = 0.996783
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.928     FROM HESSE     STATUS=OK           667 CALLS     5073 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4534        .90256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6785        3.9339        .12185E-03   -1.5231    
   4  norm          17.700        9.8034        .95209E-04   -1.4866    
   5  Prefactor     .10000E-03    34.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7360        .22365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7564        .99388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.385        28.471        .76572E-04   -1.4661    
  10  Prefactor     .10000E-03    11.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10071E-03    12.932        .61966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8994        .44286        .19322E-04   -1.5367    
  14  Prefactor     .13917        8.0181        .16596E-02   -1.5633    
  15  Prefactor     .10000E-03    5.5746        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6917        .17934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    287.65        .21407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.808        10.822        .12186E-03   -1.5050    
  19  norm          .10000E-03    70.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .23700E-01    37.836        .14279E-02   -1.5677    
  21  Prefactor     .10000E-03    61.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3600        .13545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.9929        .15017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.5627        5.8588        .13698E-03   -1.5123    
  26  Prefactor     .10000E-03    25.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6808        1.3150        .44589E-04   -1.5275    
  28  norm          10.528        9.2212        .12349E-03   -1.5059    
  29  Prefactor     .10000E-03    9.7839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    17.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90842        .19566        .23890E-03   -.96165    
  32  Prefactor     .99678        .23485        .28205E-03   -.92837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10528e-09
Minuit parameter uncertainties:
  1  6.43856e-07
  2  2.54406e-06
  3  3.9341
  4  9.8043
  5  3.22398e-05
  6  1.07495e-05
  7  6.12374e-05
  8  3.08497e-06
  9  28.4851
  10  4.15463e-06
  11  2.07909e-06
  12  0.00606827
  13  0.442862
  14  2.11222
  15  5.59945e-07
  16  4.45999e-07
  17  0.000596215
  18  10.8239
  19  5.5923e-05
  20  1.8911
  21  7.69484e-05
  22  9.67154e-05
  23  2.65051e-06
  24  3.69433e-06
  25  5.85922
  26  6.83429e-06
  27  1.315
  28  9.22248
  29  6.16083e-06
  30  2.8518e-06
  31  0.195814
  32  0.235088
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.899e+00  4.429e-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:  9.968e-01  2.351e-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.084e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 226.45
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.01e-07 +/- 4.60e-08
Energy Flux (Fixed Index): 4.07e-04 +/- 6.22e-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) = 5929.75288407
delta logL = 0.175222646387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.73796474
delta logL = 0.190141983418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9788       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6668       1.0000          .0000       5.0000    
     3 'Normalizat'    .91995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99040       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=   5929.738     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      193 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9788        .52094        .44775E-02   -.11572E-03
   2  alpha         1.6668        .12171        .76683E-01    .23284E-04
   3  Normalizat    .91994        .16369        .45156E-01    .11103E-04
   4  Prefactor     .99041        .20137        .46147E-01    .10865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97876
  alpha      = 1.66677
  Normalizat = 0.919935
  Prefactor  = 0.99041
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.738     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .24E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9788        .46967        .19774E-04   -1.5363    
   2  alpha         1.6668        .11056        .33662E-03   -.33979    
   3  Normalizat    .91994        .19027        .23776E-03   -.95763    
   4  Prefactor     .99041        .23406        .28303E-03   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39491e-15
Minuit parameter uncertainties:
  1  0.469675
  2  0.110599
  3  0.190409
  4  0.234304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495366': 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) = 5929.73796472
delta logL = 0.190141993774

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.979e+00  4.697e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.667e+00  1.106e-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:  9.904e-01  2.343e-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.199e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 225.61
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.67 +/- 0.11
Photon Flux (Free Index): 2.86e-07 +/- 5.04e-08
Energy Flux (Free Index): 4.75e-04 +/- 1.40e-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/495366/cmap_HighResolution_452131201_452390401_4FGL_J1104.4+3812_daily_bin821.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.01e-07', energy_flux2='4.75e-04', photon_flux_error='4.60e-08', dlogl='1.90e-01', energy_flux='4.07e-04', photon_flux2='2.86e-07', job_status='DONE', time_completed='2021-09-03 07:06:27.774725', photon_index_error2='0.11', photon_index2='1.67', ts='226.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.40e-04', EG='0.91', time_epoch_completed='1630677987.77', return_code='0', job_id='495366', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='6.22e-05', photon_flux_error2='5.04e-08', ts2='225.61', photon_index='1.74' WHERE bin_id='821' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 495366: <4FGL_J1104.4+3812_daily_bin821> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin821 166.119 38.207 452131201 452390401 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 :                                   870.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            908 sec.

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

