/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7527
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin750
RA = 166.119, Dec = 38.207
tmin = 433728001, tmax = 433987201
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='495258', job_status='RUN', time_executed='2021-09-03 06:51:29.652017', time_epoch_executed='1630677089.65' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495258/ft1_4FGL_J1104.4+3812_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495258/ft2_4FGL_J1104.4+3812_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495258/ft1_4FGL_J1104.4+3812_daily_bin750.fits outfile=/scratch/kocevski/495258/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin750.fits ra=166.119 dec=38.207 rad=12.0 tmin=433728001.0 tmax=433987201.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 5.07
user 4.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495258/ft2_4FGL_J1104.4+3812_daily_bin750.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/495258/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/495258/ft1_filtered_4FGL_J1104.4+3812_daily_bin750.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.28
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495258/ft1_filtered_4FGL_J1104.4+3812_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/495258/ft2_4FGL_J1104.4+3812_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/495258/ltcube_433728001_433987201_4FGL_J1104.4+3812_daily_bin750.fits outfile=/scratch/kocevski/495258/expmap_433728001_433987201_4FGL_J1104.4+3812_daily_bin750.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/495258/ltcube_433728001_433987201_4FGL_J1104.4+3812_daily_bin750.fits
.....................!
real 154.75
user 149.46
sys 4.86

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/495258/ft1_filtered_4FGL_J1104.4+3812_daily_bin750.fits scfile=/scratch/kocevski/495258/ft2_4FGL_J1104.4+3812_daily_bin750.fits outfile=/scratch/kocevski/495258/cmap_433728001_433987201_4FGL_J1104.4+3812_daily_bin750.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.62
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495258/ft1_filtered_4FGL_J1104.4+3812_daily_bin750.fits scfile=/scratch/kocevski/495258/ft2_4FGL_J1104.4+3812_daily_bin750.fits outfile=/scratch/kocevski/495258/cmap_HighResolution_433728001_433987201_4FGL_J1104.4+3812_daily_bin750.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.76
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3584       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37029       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12622E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.583       1.0000         .10000E-03   10000.    
    19 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74096E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6458       1.0000         .10000E-03   10000.    
    23 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0352       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3734       1.0000         .10000E-03   10000.    
    26 'Prefactor '    64.950       1.0000         .10000E-03   10000.    
    27 'norm      '    7.8357       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85683       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97251       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=   3493.194     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     3753 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3582        3.2842        .57008E-06    .26054E-04
   2  Prefactor     10.580        1.0151        .23804E-06   -.26359E-04
   3  Prefactor     .37095        6.8995       -.15628E-05   -.10582E-03
   4  norm          .10000E-03    9.6699        .22020E-06** at limit **
   5  Prefactor     .10000E-03    28.235       -.77767E-05** at limit **
   6  Prefactor     .10046E-03    32.917        .30877E-04** at limit **
   7  Prefactor     9.9688        5.5373        .42145E-05    .31232E-03
   8  Prefactor     1.0900        6.4450        .10288E-06   -.10727E-04
   9  Prefactor     .10000E-03    16.180        .22086E-05** at limit **
  10  Prefactor     .10000E-03    11.488       -.95213E-07** at limit **
  11  Prefactor     .11682E-03    85.312        .44569E-05** at limit **
  12  Prefactor     .10141E-03    12.051       -.53105E-05** at limit **
  13  norm          2.4483        .53889       -.15621E-07    .26589E-05
  14  Prefactor     .10000E-03    1.3746        .51476E-06** at limit **
  15  Prefactor     .10000E-03    5.4421        .13029E-07** at limit **
  16  Prefactor     3.0970        1.0755       -.37987E-06    .53000E-04
  17  Prefactor     .11450E-03    158.81       -.86049E-04** at limit **
  18  norm          14.584        1.0271        .26276E-06    .19230E-03
  19  norm          .10072E-03    30.454        .22017E-04** at limit **
  20  Prefactor     .10015E-03    25.447        .31806E-04** at limit **
  21  Prefactor     54.487        7.1228        .50718E-05   -.49884E-02
  22  Prefactor     6.6401        1.1114        .57882E-09   -.39021E-04
  23  norm          .10000E-03    2.2010       -.59443E-06** at limit **
  24  Prefactor     7.0309        1.0911       -.52870E-06    .17120E-04
  25  Prefactor     4.3800        1.2640        .12074E-05    .91130E-03
  26  Prefactor     64.936        3.5703       -.23723E-05    .32556E-02
  27  norm          7.8361        2.4726        .16694E-06    .12135E-03
  28  norm          .10000E-03    6.9677        .22163E-08** at limit **
  29  Prefactor     .10008E-03    41.979        .36393E-04** at limit **
  30  Prefactor     .10067E-03    54.827       -.72914E-04** at limit **
  31  Normalizat    .85716        .24626       -.30998E-05   -.30802E-04
  32  Prefactor     .97215        .29804        .10400E-05   -.84568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.35824
  Prefactor  = 10.5798
  Prefactor  = 0.370948
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100456
  Prefactor  = 9.96879
  Prefactor  = 1.09002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000116821
  Prefactor  = 0.000101407
  norm       = 2.44834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09702
  Prefactor  = 0.000114496
  norm       = 14.584
  norm       = 0.000100719
  Prefactor  = 0.00010015
  Prefactor  = 54.4869
  Prefactor  = 6.64008
  norm       = 0.0001
  Prefactor  = 7.03091
  Prefactor  = 4.37997
  Prefactor  = 64.9363
  norm       = 7.8361
  norm       = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.000100672
  Normalizat = 0.857164
  Prefactor  = 0.972147
 **********
 **   18 **HESSE 
 **********

 FCN=   3493.194     FROM HESSE     STATUS=OK           735 CALLS     4488 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3582        3.4422        .93715E-02   -1.5475    
   2  Prefactor     10.580        21.036        .30792E-02   -1.5057    
   3  Prefactor     .37095        4.0784        .37484E-01   -1.5586    
   4  norm          .10000E-03    9.5851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10046E-03    90.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9688        5.5757        .31727E-02   -1.5076    
   8  Prefactor     1.0900        6.6774        .11451E-01   -1.5499    
   9  Prefactor     .10000E-03    16.170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11682E-03    180.78        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10141E-03    11.576        .73033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4483        .60601        .44569E-02   -1.5395    
  14  Prefactor     .10000E-03    1.3678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0970        67.686        .57640E-02   -1.5356    
  17  Prefactor     .11450E-03    278.75        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.584        13.892        .26221E-02   -1.4944    
  19  norm          .10072E-03    87.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10015E-03    2.7662        .65137E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.487        64.981        .13588E-02   -1.4230    
  22  Prefactor     6.6401        30.283        .38915E-02   -1.5193    
  23  norm          .10000E-03    2.1870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.0309        16.526        .37811E-02   -1.5178    
  25  Prefactor     4.3800        10.107        .48149E-02   -1.5289    
  26  Prefactor     64.936        81.969        .12449E-02   -1.4095    
  27  norm          7.8361        2.8221        .35811E-02   -1.5148    
  28  norm          .10000E-03    6.9661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10008E-03    42.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10067E-03    58.119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .85716        .22221        .44348E-01   -.97982    
  32  Prefactor     .97215        .25934        .45923E-01   -.93664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01292e-07
Minuit parameter uncertainties:
  1  3.44265
  2  21.0506
  3  2.45985
  4  8.55011e-05
  5  0.000225648
  6  0.0128764
  7  5.57594
  8  5.39639
  9  5.76867e-05
  10  9.80805e-06
  11  0.110623
  12  0.00807202
  13  0.606009
  14  8.75154e-07
  15  2.83156e-05
  16  28.9936
  17  0.127733
  18  13.8949
  19  0.0158756
  20  0.00128859
  21  65.0656
  22  28.3841
  23  2.80417e-05
  24  16.5369
  25  10.1111
  26  82.1116
  27  2.82217
  28  3.92405e-05
  29  0.0036964
  30  0.0125073
  31  0.22245
  32  0.259672
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.448e+00  6.060e-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.721e-01  2.597e-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.572e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 105.97
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.54e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 3.44e-04 +/- 8.51e-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) = 3493.1933019
delta logL = 0.000343687054738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3493.19323714
delta logL = 0.000408437561873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4531       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7310       1.0000          .0000       5.0000    
     3 'Normalizat'    .85779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97181       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=   3493.193     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      186 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4531        .66989        .44644E-02   -.32584E-03
   2  alpha         1.7310        .18422        .81160E-01    .16882E-04
   3  Normalizat    .85779        .20901        .44360E-01    .42614E-05
   4  Prefactor     .97181        .25707        .45914E-01    .96780E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4531
  alpha      = 1.73103
  Normalizat = 0.857786
  Prefactor  = 0.971807
 **********
 **   18 **HESSE 
 **********

 FCN=   3493.193     FROM HESSE     STATUS=OK            31 CALLS      217 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4531        .56471        .19722E-04   -1.5395    
   2  alpha         1.7310        .15672        .35584E-03   -.31266    
   3  Normalizat    .85779        .24131        .24107E-03   -.97960    
   4  Prefactor     .97181        .29689        .27991E-03   -.93675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33716e-12
Minuit parameter uncertainties:
  1  0.564709
  2  0.156837
  3  0.24161
  4  0.297387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495258': 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) = 3493.19323714
delta logL = 0.00040843756733

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.453e+00  5.647e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.731e+00  1.568e-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.718e-01  2.974e-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.578e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 105.58
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.73 +/- 0.16
Photon Flux (Free Index): 2.53e-07 +/- 6.35e-08
Energy Flux (Free Index): 3.47e-04 +/- 1.41e-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/495258/cmap_HighResolution_433728001_433987201_4FGL_J1104.4+3812_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-07', energy_flux2='3.47e-04', photon_flux_error='6.29e-08', dlogl='4.08e-04', energy_flux='3.44e-04', photon_flux2='2.53e-07', job_status='DONE', time_completed='2021-09-03 07:00:04.805175', photon_index_error2='0.16', photon_index2='1.73', ts='105.97', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.41e-04', EG='0.86', time_epoch_completed='1630677604.81', return_code='0', job_id='495258', GAL2='0.97', EG2='0.86', return_code2='0', energy_flux_error='8.51e-05', photon_flux_error2='6.35e-08', ts2='105.58', photon_index='1.74' WHERE bin_id='750' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:00:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 495258: <4FGL_J1104.4+3812_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin750 166.119 38.207 433728001 433987201 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 :                                   510.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            535 sec.

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

