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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin753
RA = 166.119, Dec = 38.207
tmin = 434505601, tmax = 434764801
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='495263', job_status='RUN', time_executed='2021-09-03 06:53:36.302039', time_epoch_executed='1630677216.3' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495263/ft1_4FGL_J1104.4+3812_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495263/ft2_4FGL_J1104.4+3812_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495263/ft1_4FGL_J1104.4+3812_daily_bin753.fits outfile=/scratch/kocevski/495263/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin753.fits ra=166.119 dec=38.207 rad=12.0 tmin=434505601.0 tmax=434764801.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.98
user 5.69
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495263/ft1_filtered_4FGL_J1104.4+3812_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/495263/ft2_4FGL_J1104.4+3812_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/495263/ltcube_434505601_434764801_4FGL_J1104.4+3812_daily_bin753.fits outfile=/scratch/kocevski/495263/expmap_434505601_434764801_4FGL_J1104.4+3812_daily_bin753.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/495263/ltcube_434505601_434764801_4FGL_J1104.4+3812_daily_bin753.fits
.....................!
real 190.48
user 185.53
sys 4.64

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/495263/ft1_filtered_4FGL_J1104.4+3812_daily_bin753.fits scfile=/scratch/kocevski/495263/ft2_4FGL_J1104.4+3812_daily_bin753.fits outfile=/scratch/kocevski/495263/cmap_434505601_434764801_4FGL_J1104.4+3812_daily_bin753.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=166.119 yref=38.207 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495263/ft1_filtered_4FGL_J1104.4+3812_daily_bin753.fits scfile=/scratch/kocevski/495263/ft2_4FGL_J1104.4+3812_daily_bin753.fits outfile=/scratch/kocevski/495263/cmap_HighResolution_434505601_434764801_4FGL_J1104.4+3812_daily_bin753.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.70
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.879       1.0000         .10000E-03   10000.    
     4 'norm      '    18.892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12929E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26877E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.972       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4978       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.280       1.0000         .10000E-03   10000.    
    18 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10312E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6342       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25187E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .75929       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.351       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .37861       1.0000         .10000E-03   10000.    
    26 'Prefactor '    111.59       1.0000         .10000E-03   10000.    
    27 'norm      '    12.121       1.0000         .10000E-03   10000.    
    28 'norm      '    .13264E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3900       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11282E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76419       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77816       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=   4611.919     FROM MIGRAD    STATUS=CONVERGED    251 CALLS     3221 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7960        8.5240        .24725E-05   -.13142E-05
   2  Prefactor     42.610        48.623       -.20413E-04    .49563E-02
   3  Prefactor     10.928        10.453       -.54938E-05   -.31850E-04
   4  norm          18.929        14.627        .12267E-04   -.24158E-03
   5  Prefactor     .10000E-03    22.126        .19377E-04** at limit **
   6  Prefactor     26.134        28.217       -.66992E-05    .94805E-03
   7  Prefactor     1.7585        3.3310       -.25621E-05   -.46543E-05
   8  Prefactor     .10000E-03    2.4053       -.12986E-04** at limit **
   9  Prefactor     .10000E-03    19.467       -.37838E-04** at limit **
  10  Prefactor     53.501        38.911       -.16962E-04   -.11404E-02
  11  Prefactor     30.888        56.488       -.10787E-05   -.12692E-01
  12  Prefactor     .10000E-03    7.7308       -.60325E-05** at limit **
  13  norm          2.1397        .47397       -.38791E-06   -.28816E-04
  14  Prefactor     3.5134        3.7126        .38363E-05    .10717E-04
  15  Prefactor     .10000E-03    5.4403       -.51529E-05** at limit **
  16  Prefactor     .10000E-03    7.5446       -.79019E-06** at limit **
  17  Prefactor     67.603        127.25       -.29661E-04   -.66146E-02
  18  norm          .10000E-03    9.1268       -.75903E-06** at limit **
  19  norm          .10000E-03    51.597       -.11474E-04** at limit **
  20  Prefactor     8.6436        3.9859       -.93843E-06   -.75520E-05
  21  Prefactor     .10000E-03    39.700       -.15907E-04** at limit **
  22  Prefactor     .10000E-03    19.655       -.47443E-04** at limit **
  23  norm          .73805        5.3702       -.67984E-05   -.25178E-04
  24  Prefactor     23.443        18.222       -.11666E-04    .75157E-04
  25  Prefactor     .36607        12.683       -.54085E-06   -.17227E-05
  26  Prefactor     114.24        61.658       -.50872E-05    .23021E-01
  27  norm          12.089        2.3744       -.19831E-05   -.16173E-03
  28  norm          .10000E-03    11.986        .19347E-05** at limit **
  29  Prefactor     4.1631        50.050        .43570E-04   -.42583E-04
  30  Prefactor     .10000E-03    24.385        .22477E-04** at limit **
  31  Normalizat    .75966        .25612        .47472E-05   -.74260E-05
  32  Prefactor     .77914        .27340        .67880E-05   -.53097E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.79596
  Prefactor  = 42.6097
  Prefactor  = 10.9276
  norm       = 18.9294
  Prefactor  = 0.0001
  Prefactor  = 26.1344
  Prefactor  = 1.75848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.5006
  Prefactor  = 30.8881
  Prefactor  = 0.0001
  norm       = 2.13966
  Prefactor  = 3.51338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.6034
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.64362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.738053
  Prefactor  = 23.4432
  Prefactor  = 0.36607
  Prefactor  = 114.24
  norm       = 12.0894
  norm       = 0.0001
  Prefactor  = 4.16309
  Prefactor  = 0.0001
  Normalizat = 0.75966
  Prefactor  = 0.77914
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.919     FROM HESSE     STATUS=OK           733 CALLS     3954 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7960        8.6252        .51689E-02   -1.5318    
   2  Prefactor     42.610        48.768        .15528E-02   -1.4402    
   3  Prefactor     10.928        10.533        .30368E-02   -1.5047    
   4  norm          18.929        14.640        .23037E-02   -1.4838    
   5  Prefactor     .10000E-03    22.135        .10292E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.134        28.230        .19691E-02   -1.4685    
   7  Prefactor     1.7585        3.3708        .79053E-02   -1.5443    
   8  Prefactor     .10000E-03    2.4012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.448        .10718E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.501        38.906        .13873E-02   -1.4244    
  11  Prefactor     30.888        71.957        .18608E-02   -1.4596    
  12  Prefactor     .10000E-03    7.7220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1397        .47361        .47912E-02   -1.5415    
  14  Prefactor     3.5134        3.7142        .54046E-02   -1.5333    
  15  Prefactor     .10000E-03    5.4380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.603        139.58        .12418E-02   -1.4062    
  18  norm          .10000E-03    9.0820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    51.487        .90745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6436        4.1851        .34104E-02   -1.5120    
  21  Prefactor     .10000E-03    39.691        .10005E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73805        4.1029        .38866E-01   -1.5536    
  24  Prefactor     23.443        18.279        .20723E-02   -1.4739    
  25  Prefactor     .36607        3.5856        .64899E-01   -1.5587    
  26  Prefactor     114.24        82.156        .95197E-03   -1.3566    
  27  norm          12.089        2.5134        .28765E-02   -1.5012    
  28  norm          .10000E-03    11.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.1631        50.570        .54937E-02   -1.5300    
  30  Prefactor     .10000E-03    24.384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .75966        .21321        .62550E-01   -1.0158    
  32  Prefactor     .77914        .22930        .71269E-01   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25855e-06
Minuit parameter uncertainties:
  1  8.62805
  2  48.8139
  3  10.535
  4  14.6432
  5  4.88495e-06
  6  28.2445
  7  3.3712
  8  1.71247e-06
  9  1.14974e-05
  10  38.9245
  11  72.1602
  12  8.10397e-07
  13  0.473606
  14  3.71447
  15  6.55046e-07
  16  1.62982e-07
  17  140.266
  18  1.96678e-07
  19  3.86318e-05
  20  4.18527
  21  1.87523e-05
  22  9.70973e-06
  23  3.48045
  24  18.2831
  25  2.29121
  26  82.2384
  27  2.51342
  28  7.66906e-08
  29  29.0493
  30  9.18747e-06
  31  0.213441
  32  0.229583
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.140e+00  4.736e-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:  7.791e-01  2.296e-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:  7.597e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 104.00
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.22e-07 +/- 4.92e-08
Energy Flux (Fixed Index): 3.01e-04 +/- 6.65e-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) = 4611.1048551
delta logL = 0.814395411666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4611.09475927
delta logL = 0.824491238153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9195       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9551       1.0000          .0000       5.0000    
     3 'Normalizat'    .72422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79971       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=   4611.095     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9196        .98880        .43707E-02   -.31632E-02
   2  alpha         1.9551        .35953        .90738E-01    .48580E-04
   3  Normalizat    .72419        .19783        .63760E-01    .12286E-04
   4  Prefactor     .79977        .22697        .70290E-01    .17568E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91955
  alpha      = 1.95509
  Normalizat = 0.724188
  Prefactor  = 0.799773
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.095     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9196        .47571        .19303E-04   -1.5431    
   2  alpha         1.9551        .17558        .39626E-03   -.21973    
   3  Normalizat    .72419        .23154        .28208E-03   -1.0295    
   4  Prefactor     .79977        .26693        .31101E-03   -.99737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2246e-10
Minuit parameter uncertainties:
  1  0.475707
  2  0.17573
  3  0.231858
  4  0.267366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495263': 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) = 4611.09475922
delta logL = 0.824491284471

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.920e+00  4.757e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.955e+00  1.757e-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:  7.998e-01  2.674e-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:  7.242e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 103.88
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.96 +/- 0.18
Photon Flux (Free Index): 2.68e-07 +/- 6.71e-08
Energy Flux (Free Index): 2.01e-04 +/- 7.26e-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/495263/cmap_HighResolution_434505601_434764801_4FGL_J1104.4+3812_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-07', energy_flux2='2.01e-04', photon_flux_error='4.92e-08', dlogl='8.24e-01', energy_flux='3.01e-04', photon_flux2='2.68e-07', job_status='DONE', time_completed='2021-09-03 07:04:58.271988', photon_index_error2='0.18', photon_index2='1.96', ts='104.00', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='7.26e-05', EG='0.76', time_epoch_completed='1630677898.27', return_code='0', job_id='495263', GAL2='0.80', EG2='0.72', return_code2='0', energy_flux_error='6.65e-05', photon_flux_error2='6.71e-08', ts2='103.88', photon_index='1.74' WHERE bin_id='753' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:04:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 495263: <4FGL_J1104.4+3812_daily_bin753> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin753> 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) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:51:18 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:18 2021
Terminated at Fri Sep  3 07:04:59 2021
Results reported at Fri Sep  3 07:04:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin753 166.119 38.207 434505601 434764801 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 :                                   677.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            827 sec.

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

