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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin1185
RA = 167.409, Dec = 37.5868
tmin = 546480001, tmax = 546739201
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='567413', job_status='RUN', time_executed='2021-09-03 10:40:18.599853', time_epoch_executed='1630690818.6' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567413/ft1_4FGL_J1109.6+3735_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567413/ft1_4FGL_J1109.6+3735_daily_bin1185.fits outfile=/scratch/kocevski/567413/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1185.fits ra=167.409 dec=37.5868 rad=12.0 tmin=546480001.0 tmax=546739201.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.94
user 3.70
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.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/567413/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1185.fits evtable="EVENTS" outfile="/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/567413/ltcube_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.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/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits
.....................!
real 17.22
user 16.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/567413/ltcube_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.fits outfile=/scratch/kocevski/567413/expmap_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.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/567413/ltcube_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.fits
.....................!
real 193.21
user 188.12
sys 4.32

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1109.6+3735 @ 167.409 37.5868

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits scfile=/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits outfile=/scratch/kocevski/567413/cmap_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.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=167.409 yref=37.5868 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits scfile=/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits outfile=/scratch/kocevski/567413/cmap_HighResolution_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.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=167.409 yref=37.5868 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/567413/Model_4FGL_J1109.6+3735_daily_bin1185.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/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits.......................!
real 20.43
user 19.06
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits', '/scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits', expMap='/scratch/kocevski/567413/expmap_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.fits', expCube='/scratch/kocevski/567413/ltcube_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/567413/Model_4FGL_J1109.6+3735_daily_bin1185.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1109.6+3735'

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.001e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.855e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  4.801e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/567413/ft1_filtered_4FGL_J1109.6+3735_daily_bin1185.fits
Spacecraft file(s): /scratch/kocevski/567413/ft2_4FGL_J1109.6+3735_daily_bin1185.fits
Exposure map: /scratch/kocevski/567413/expmap_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.fits
Exposure cube: /scratch/kocevski/567413/ltcube_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/567413/Model_4FGL_J1109.6+3735_daily_bin1185.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 877.607750596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 874.452220002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62961       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43385E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28872E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    219.94       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47791E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16371E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11281E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99141E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65104E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2386       1.0000         .10000E-03   10000.    
    18 'norm      '    .61695E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .86366E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21882       1.0000         .10000E-03   10000.    
    22 'norm      '    .11090E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    73.029       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15470E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9995       1.0000         .10000E-03   10000.    
    26 'norm      '    .25080E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .17811       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3175       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8284       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .34063       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   874.4413     FROM MIGRAD    STATUS=CONVERGED    231 CALLS      674 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66869        56.873        .25657E-03   -.45325E-04
   2  Prefactor     .10114E-03    218.94       -.31359E-03** at limit **
   3  Prefactor     .10000E-03    9.0601        .22292E-05** at limit **
   4  norm          .10000E-03    30.661        .92869E-06** at limit **
   5  Prefactor     219.18        27.460       -.28428E-05    .11963E-01
   6  Prefactor     37.867        20.327        .70461E-06    .40341E-02
   7  Prefactor     .10000E-03    19.384       -.14630E-04** at limit **
   8  Prefactor     .10000E-03    20.711        .17930E-04** at limit **
   9  Prefactor     .10000E-03    82.521       -.42675E-05** at limit **
  10  Prefactor     33.571        3.9499        .33821E-05   -.37919E-02
  11  Prefactor     .11956E-03    743.63        .64855E-04** at limit **
  12  Prefactor     .10000E-03    15.416       -.93288E-06** at limit **
  13  norm          1.7612        1.2274        .15599E-05    .32255E-03
  14  Prefactor     4.5102        8.1846        .39970E-05   -.16401E-03
  15  Prefactor     .10000E-03    34.223        .11240E-04** at limit **
  16  Prefactor     .10000E-03    61.742        .44760E-05** at limit **
  17  Prefactor     2.2386        1.0274         .0000         .0000    
  18  norm          .10000E-03    21.603       -.55435E-05** at limit **
  19  Prefactor     .10000E-03    5.2423        .20351E-05** at limit **
  20  Prefactor     .10000E-03    111.65       -.72299E-05** at limit **
  21  Prefactor     .10002E-03    212.19        .36690E-05** at limit **
  22  norm          .10000E-03    7.6781        .80721E-06** at limit **
  23  Prefactor     73.054        2.4185       -.14625E-05    .12348E-02
  24  Prefactor     .10000E-03    13.821       -.45749E-06** at limit **
  25  Prefactor     .10000E-03    277.31        .25206E-04** at limit **
  26  norm          .10000E-03    7.8151       -.19481E-05** at limit **
  27  norm          .10028E-03    285.02        .13680E-03** at limit **
  28  Prefactor     .60658E-03    230.88        .38363E-04** at limit **
  29  Prefactor     .10025E-03    845.48       -.74779E-05** at limit **
  30  Normalizat    .34265        .62889       -.50172E-06   -.87730E-04
  31  Prefactor     1.3313        .66531       -.48775E-04   -.15424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.668685
  Prefactor  = 0.000101141
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 219.177
  Prefactor  = 37.8674
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 33.571
  Prefactor  = 0.000119555
  Prefactor  = 0.0001
  norm       = 1.76118
  Prefactor  = 4.51024
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.2386
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 73.0543
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100278
  Prefactor  = 0.000606581
  Prefactor  = 0.000100253
  Normalizat = 0.342649
  Prefactor  = 1.3313
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   874.4413     FROM HESSE     STATUS=FAILED        79 CALLS      753 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66869        15.427        .63488E-01   -1.5544    
   2  Prefactor     .10114E-03    219.21        .92377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    30.636        .91665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     219.18        163.61        .68184E-03   -1.2736    
   6  Prefactor     37.867        95.401        .16144E-02   -1.4476    
   7  Prefactor     .10000E-03    19.339        .10590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.495        .10519E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    82.651        .91046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.571        57.370        .17282E-02   -1.4549    
  11  Prefactor     .11956E-03    860.18        .52423E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7612        1.2095        .59500E-02   -1.5443    
  14  Prefactor     4.5102        6.8819        .47275E-02   -1.5283    
  15  Prefactor     .10000E-03    34.206        .90726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    61.727        .94074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     565.20        562.84         .0000       -1.5409    
  18  norm          .10000E-03    .22320       -.55435E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571        .20351E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .21029       -.72299E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    .25317        .36690E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571        .80721E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     73.054        1.0002       -.14625E-05   -1.3996    
  24  Prefactor     .10000E-03    .20571       -.45749E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .13404        .25206E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .28793       -.19481E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10028E-03    .24390        .13680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .60658E-03    .11346        .38363E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10025E-03    .52370E-01   -.74779E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .34265        .65251       -.50172E-06   -1.2038    
  31  Prefactor     1.3313        1.0715       -.48775E-04   -.82381    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75101e-09
Minuit parameter uncertainties:
  1  6.4251
  2  0.0317511
  3  3.62165e-05
  4  6.41972e-05
  5  163.955
  6  95.7885
  7  0.000355399
  8  0.000634923
  9  0.00017654
  10  57.4641
  11  0.263263
  12  6.57373e-06
  13  1.20956
  14  6.8831
  15  0.000446684
  16  0.000100448
  17  1.02742
  18  1.61817e-05
  19  6.02815e-06
  20  2.53056e-05
  21  0.000126439
  22  1.35336e-06
  23  1.00019
  24  2.67942e-06
  25  2.70808e-05
  26  5.16889e-06
  27  0.000521161
  28  0.0151624
  29  0.000230373
  30  0.667853
  31  1.09007
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 874.441318248

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.004e-04  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.855e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  4.801e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.331e+00  1.090e+00  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.426e-01  6.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 167.409 37.587
Photon Flux Upper Limit: 3.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567413/likelihoodResults_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.txt

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): 102
logL (Free Index) = 874.441334113
delta logL = -1.58650371986e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 874.441322149
delta logL = -3.90180787235e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57680E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8273       1.0000          .0000       10.000    
     3 'Normalizat'    .34304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   874.4413     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.604        .10542E-01** at limit **
   2  Index         1.8258        8.6069        .50000        .40559E-05
   3  Normalizat    .34263        .81042E-02    .97182E-01   -.10599E-03
   4  Prefactor     1.3313        .89913E-02    .56999E-01   -.66258E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.8258
  Normalizat = 0.342629
  Prefactor  = 1.33132
 **********
 **   18 **HESSE 
 **********

 FCN=   874.4413     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.22        .21085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8258        6.0103        .50000       -.68780    
   3  Normalizat    .34263        .20475E-01    .43056E-03   -1.2038    
   4  Prefactor     1.3313        .22767E-01    .25202E-03   -.82380    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92439e-08
Minuit parameter uncertainties:
  1  0.000714076
  2  168.156
  3  0.0204751
  4  0.0227672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567413': 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): 102
logL (Free Index) = 874.441318217
delta logL = 3.09803454002e-08

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  7.141e-04  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.826e+00  1.682e+02  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  4.801e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.331e+00  2.277e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.426e-01  2.048e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 167.409 37.587

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/567413/cmap_HighResolution_546480001_546739201_4FGL_J1109.6+3735_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-02', job_status='DONE', photon_flux_upper_limit='3.68e-07', time_completed='2021-09-03 10:46:26.071976', job_id='567413', GAL2='1.33', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1630691186.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.33', dlogl='3.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1185' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 567413: <4FGL_J1109.6+3735_daily_bin1185> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin1185> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 10:36:43 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:36:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 10:36:58 2021
Terminated at Fri Sep  3 10:46:26 2021
Results reported at Fri Sep  3 10:46:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin1185 167.409 37.5868 546480001 546739201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1109.6+3735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   360.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             175.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            583 sec.

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

