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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin660
RA = 166.119, Dec = 38.207
tmin = 410400001, tmax = 410659201
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='493473', job_status='RUN', time_executed='2021-09-03 06:44:47.774417', time_epoch_executed='1630676687.77' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493473/ft1_4FGL_J1104.4+3812_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493473/ft2_4FGL_J1104.4+3812_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493473/ft1_4FGL_J1104.4+3812_daily_bin660.fits outfile=/scratch/kocevski/493473/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin660.fits ra=166.119 dec=38.207 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.61
user 6.31
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493473/ft1_filtered_4FGL_J1104.4+3812_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/493473/ft2_4FGL_J1104.4+3812_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/493473/ltcube_410400001_410659201_4FGL_J1104.4+3812_daily_bin660.fits outfile=/scratch/kocevski/493473/expmap_410400001_410659201_4FGL_J1104.4+3812_daily_bin660.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/493473/ltcube_410400001_410659201_4FGL_J1104.4+3812_daily_bin660.fits
.....................!
real 191.16
user 185.06
sys 4.95

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/493473/ft1_filtered_4FGL_J1104.4+3812_daily_bin660.fits scfile=/scratch/kocevski/493473/ft2_4FGL_J1104.4+3812_daily_bin660.fits outfile=/scratch/kocevski/493473/cmap_410400001_410659201_4FGL_J1104.4+3812_daily_bin660.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5715       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14371E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1599       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0379       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.292       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7452       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7958       1.0000         .10000E-03   10000.    
    26 'Prefactor '    123.98       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1328       1.0000         .10000E-03   10000.    
    28 'norm      '    5.5002       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.5402       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86124       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81034       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=   4161.237     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4471 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6026       -.36507E-07** at limit **
   2  Prefactor     .10000E-03    17.976        .38323E-06** at limit **
   3  Prefactor     1.5719        3.7580        .63360E-06    .15621E-03
   4  norm          1.7939        4.6201        .66947E-06    .93675E-04
   5  Prefactor     .10000E-03    562.75       -.17804E-05** at limit **
   6  Prefactor     .10000E-03    13.198       -.11283E-06** at limit **
   7  Prefactor     .10072E-03    2.5773        .14370E-05** at limit **
   8  Prefactor     2.1596        2.8878       -.41224E-07   -.87527E-04
   9  Prefactor     .10000E-03    8.1331        .98585E-08** at limit **
  10  Prefactor     10.107        14.019        .63622E-07   -.52301E-05
  11  Prefactor     .10000E-03    21.378       -.43222E-06** at limit **
  12  Prefactor     9.0488        16.501       -.46131E-06   -.15831E-03
  13  norm          1.8476        .40767        .42948E-07    .88762E-03
  14  Prefactor     .10000E-03    2.7392        .45125E-06** at limit **
  15  Prefactor     .10000E-03    53.257        .24264E-05** at limit **
  16  Prefactor     .10000E-03    11.337        .42268E-06** at limit **
  17  Prefactor     .10000E-03    35.112        .20801E-06** at limit **
  18  norm          .10000E-03    14.285        .93038E-07** at limit **
  19  norm          .10000E-03    42.790       -.12396E-05** at limit **
  20  Prefactor     .10000E-03    3.1841       -.32321E-06** at limit **
  21  Prefactor     45.452        56.131       -.27167E-07    .13797E-04
  22  Prefactor     53.293        25.130       -.33942E-06   -.11887E-03
  23  norm          1.7448        2.4993        .63235E-07    .52447E-04
  24  Prefactor     .10000E-03    11.075       -.48812E-06** at limit **
  25  Prefactor     2.7962        7.3217        .11421E-05    .12911E-03
  26  Prefactor     123.96        67.411       -.27959E-06   -.57171E-04
  27  norm          7.1334        2.1973        .94929E-08    .49905E-04
  28  norm          5.4998        9.0171        .23004E-05    .41160E-03
  29  Prefactor     .10000E-03    24.841       -.33228E-06** at limit **
  30  Prefactor     5.5427        99.690       -.55688E-06   -.20908E-05
  31  Normalizat    .86122        .18239        .28548E-06   -.21446E-03
  32  Prefactor     .81036        .21150       -.10782E-05   -.15440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57189
  norm       = 1.79394
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.00010072
  Prefactor  = 2.1596
  Prefactor  = 0.0001
  Prefactor  = 10.1067
  Prefactor  = 0.0001
  Prefactor  = 9.0488
  norm       = 1.84764
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 45.4525
  Prefactor  = 53.2934
  norm       = 1.74482
  Prefactor  = 0.0001
  Prefactor  = 2.79622
  Prefactor  = 123.956
  norm       = 7.13344
  norm       = 5.49975
  Prefactor  = 0.0001
  Prefactor  = 5.54266
  Normalizat = 0.861222
  Prefactor  = 0.810362
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.237     FROM HESSE     STATUS=OK           659 CALLS     5130 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6129        .79655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5719        3.7453        .18197E-03   -1.5457    
   4  norm          1.7939        4.5764        .21587E-03   -1.5440    
   5  Prefactor     .10000E-03    584.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10072E-03    30.508        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1596        2.8718        .12259E-03   -1.5414    
   9  Prefactor     .10000E-03    8.1343        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.107        14.016        .12604E-03   -1.5072    
  11  Prefactor     .10000E-03    21.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0488        15.162        .13332E-03   -1.5106    
  13  norm          1.8476        .40711        .18679E-04   -1.5436    
  14  Prefactor     .10000E-03    3.8381        .18785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.094        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    43.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2538        .22306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.452        55.247        .59468E-04   -1.4359    
  22  Prefactor     53.293        25.101        .54943E-04   -1.4247    
  23  norm          1.7448        2.4516        .11035E-03   -1.5444    
  24  Prefactor     .10000E-03    11.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.7962        7.3271        .24332E-03   -1.5374    
  26  Prefactor     123.96        67.694        .36149E-04   -1.3477    
  27  norm          7.1334        2.2051        .46088E-04   -1.5174    
  28  norm          5.4998        9.0246        .85660E-03   -1.5239    
  29  Prefactor     .10000E-03    24.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.5427        99.751        .17069E-03   -1.5237    
  31  Normalizat    .86122        .21412        .22336E-03   -.97836    
  32  Prefactor     .81036        .24753        .28027E-03   -.99348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26193e-08
Minuit parameter uncertainties:
  1  4.43964e-06
  2  0.000127297
  3  3.74583
  4  4.57734
  5  0.00305159
  6  4.31248e-05
  7  0.00937859
  8  2.87195
  9  1.10208e-06
  10  14.0208
  11  0.000205701
  12  15.1683
  13  0.40711
  14  1.80842e-05
  15  0.000808898
  16  9.86427e-05
  17  0.00011657
  18  1.51422e-06
  19  0.000820303
  20  2.58531e-05
  21  55.3097
  22  25.106
  23  2.45175
  24  9.25892e-05
  25  7.32946
  26  67.736
  27  2.20517
  28  9.02681
  29  8.63848e-05
  30  47.1184
  31  0.21433
  32  0.247874
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.848e+00  4.071e-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.104e-01  2.479e-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:  8.612e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 119.18
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 4.23e-08
Energy Flux (Fixed Index): 2.60e-04 +/- 5.72e-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) = 4161.23243015
delta logL = 0.00468820499646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4161.23174914
delta logL = 0.00536921039293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8353       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7524       1.0000          .0000       5.0000    
     3 'Normalizat'    .85904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81154       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=   4161.232     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      192 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8353        .51403        .42067E-02    .61060E-03
   2  alpha         1.7524        .19672        .91600E-01    .21923E-04
   3  Normalizat    .85904        .17196        .44376E-01   -.21627E-04
   4  Prefactor     .81155        .20954        .63314E-01    .48397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8353
  alpha      = 1.75239
  Normalizat = 0.859038
  Prefactor  = 0.811547
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.232     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8353        .42194        .18571E-04   -1.5437    
   2  alpha         1.7524        .16318        .40042E-03   -.30369    
   3  Normalizat    .85904        .20110        .22358E-03   -.97915    
   4  Prefactor     .81155        .24503        .28004E-03   -.99304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36266e-11
Minuit parameter uncertainties:
  1  0.421937
  2  0.163305
  3  0.201273
  4  0.245359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493473': 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) = 4161.23174914
delta logL = 0.00536921171442

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.835e+00  4.219e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.752e+00  1.633e-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.115e-01  2.454e-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:  8.590e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 118.47
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.75 +/- 0.16
Photon Flux (Free Index): 1.95e-07 +/- 4.98e-08
Energy Flux (Free Index): 2.50e-04 +/- 1.02e-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/493473/cmap_HighResolution_410400001_410659201_4FGL_J1104.4+3812_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='2.50e-04', photon_flux_error='4.23e-08', dlogl='5.37e-03', energy_flux='2.60e-04', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-03 06:57:59.749027', photon_index_error2='0.16', photon_index2='1.75', ts='119.18', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.86', time_epoch_completed='1630677479.75', return_code='0', job_id='493473', GAL2='0.81', EG2='0.86', return_code2='0', energy_flux_error='5.72e-05', photon_flux_error2='4.98e-08', ts2='118.47', photon_index='1.74' WHERE bin_id='660' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:57:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 493473: <4FGL_J1104.4+3812_daily_bin660> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin660> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 06:44:23 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:44:32 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:44:32 2021
Terminated at Fri Sep  3 06:58:01 2021
Results reported at Fri Sep  3 06:58:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin660 166.119 38.207 410400001 410659201 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 :                                   726.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            818 sec.

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

