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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin1403
RA = 167.409, Dec = 37.5868
tmin = 602985601, tmax = 603244801
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='568926', job_status='RUN', time_executed='2021-09-03 10:45:11.505046', time_epoch_executed='1630691111.51' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568926/ft1_4FGL_J1109.6+3735_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568926/ft1_4FGL_J1109.6+3735_daily_bin1403.fits outfile=/scratch/kocevski/568926/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1403.fits ra=167.409 dec=37.5868 rad=12.0 tmin=602985601.0 tmax=603244801.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.06
user 2.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/568926/ft1_filtered_4FGL_J1109.6+3735_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/568926/ltcube_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.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/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits
.....................!
real 18.39
user 17.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568926/ft1_filtered_4FGL_J1109.6+3735_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/568926/ltcube_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.fits outfile=/scratch/kocevski/568926/expmap_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.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/568926/ltcube_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.fits
.....................!
real 192.33
user 187.48
sys 4.37

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/568926/ft1_filtered_4FGL_J1109.6+3735_daily_bin1403.fits scfile=/scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits outfile=/scratch/kocevski/568926/cmap_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/568926/ft1_filtered_4FGL_J1109.6+3735_daily_bin1403.fits scfile=/scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits outfile=/scratch/kocevski/568926/cmap_HighResolution_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/568926/ft1_filtered_4FGL_J1109.6+3735_daily_bin1403.fits', '/scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits', expMap='/scratch/kocevski/568926/expmap_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.fits', expCube='/scratch/kocevski/568926/ltcube_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/568926/Model_4FGL_J1109.6+3735_daily_bin1403.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/568926/ft1_filtered_4FGL_J1109.6+3735_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/568926/ft2_4FGL_J1109.6+3735_daily_bin1403.fits
Exposure map: /scratch/kocevski/568926/expmap_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.fits
Exposure cube: /scratch/kocevski/568926/ltcube_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/568926/Model_4FGL_J1109.6+3735_daily_bin1403.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) = 933.146111024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'norm      '    .13049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30908E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52337E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13789E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11652E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13460E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    372.07       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.824       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14579E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25621E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4722       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13900E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.9216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13404E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.961       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16462E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4145       1.0000         .10000E-03   10000.    
    27 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .44801E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12382E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3407       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   923.9960     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     4851 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6294.9        .30192E-03** at limit **
   2  Prefactor    10000.0        7071.3        .48639E-03** at limit **
   3  Prefactor    10000.0        2006.1        .14282E-02** at limit **
   4  norm          .10000E-03    785.17       -.77504E-03** at limit **
   5  Prefactor     .10000E-03    6629.2       -.88267E-03** at limit **
   6  Prefactor     .10000E-03    599.04       -.54816E-04** at limit **
   7  Prefactor     .10000E-03    91.981       -.60661E-04** at limit **
   8  Prefactor     .10000E-03    101.55       -.44203E-04** at limit **
   9  Prefactor     .10000E-03    244.16        .12109E-03** at limit **
  10  Prefactor     .10000E-03    117.87        .36225E-05** at limit **
  11  Prefactor     371.68        464.05       -.20362E-03   -.55175E-07
  12  Prefactor     .10000E-03    60.928        .20145E-04** at limit **
  13  norm          1.1323        .97540        .67148E-07    .48241E-03
  14  Prefactor     14.828        20.639       -.56111E-06   -.96540E-04
  15  Prefactor     .10000E-03    24.483       -.29908E-05** at limit **
  16  Prefactor     .10000E-03    37.369       -.19671E-04** at limit **
  17  Prefactor     .10000E-03    169.51        .20541E-05** at limit **
  18  norm          .10000E-03    19.417        .50222E-06** at limit **
  19  Prefactor     9.4880        9.8105        .25384E-05   -.58399E-03
  20  Prefactor     .10000E-03    189.33        .14909E-03** at limit **
  21  Prefactor     .10000E-03    30.427        .17737E-04** at limit **
  22  norm          6.9272        8.0014       -.24319E-05   -.66514E-03
  23  Prefactor     .10000E-03    36.706       -.22485E-04** at limit **
  24  Prefactor     37.949        22.348       -.90023E-06   -.20740E-03
  25  Prefactor     .10000E-03    43.701        .26972E-04** at limit **
  26  norm          2.4142        2.0045       -.24729E-06   -.72349E-03
  27  norm          .10000E-03    13.678       -.88455E-07** at limit **
  28  Prefactor     .10000E-03    125.84       -.11940E-04** at limit **
  29  Prefactor     .10000E-03    62.343        .12633E-04** at limit **
  30  Normalizat    .10000E-01    .28429        .89362E-05** at limit **
  31  Prefactor     1.3406        .31663        .81247E-05   -.26497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 371.676
  Prefactor  = 0.0001
  norm       = 1.13231
  Prefactor  = 14.828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.48799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.92722
  Prefactor  = 0.0001
  Prefactor  = 37.9493
  Prefactor  = 0.0001
  norm       = 2.41425
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.34061
 **********
 **   18 **HESSE 
 **********

 FCN=   923.9960     FROM HESSE     STATUS=OK           596 CALLS     5447 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6294.8        .21125E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        7071.2        .20799E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        2006.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    785.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6629.2        .19796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    599.04        .21135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    91.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    101.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    244.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    117.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     371.68        464.27        .10567E-03   -1.1828    
  12  Prefactor     .10000E-03    60.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1323        .97431        .27149E-04   -1.5495    
  14  Prefactor     14.828        20.596        .10403E-03   -1.4938    
  15  Prefactor     .10000E-03    24.487        .14698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    169.52        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.417        .13088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4880        9.8065        .84431E-04   -1.5092    
  20  Prefactor     .10000E-03    189.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.435        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.9272        7.9955        .81331E-04   -1.5182    
  23  Prefactor     .10000E-03    36.771        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.949        22.320        .65052E-04   -1.4475    
  25  Prefactor     .10000E-03    43.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4142        1.9999        .36642E-04   -1.5397    
  27  norm          .10000E-03    13.704        .10981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    126.79        .21211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    62.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .32462        .89030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.3406        .29557        .23019E-03   -.82107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77934e-10
Minuit parameter uncertainties:
  1  0.000720968
  2  0.00187175
  3  0.000748379
  4  0.000660429
  5  3.84784e-05
  6  0.000129932
  7  0.000236094
  8  4.78735e-05
  9  9.8243e-05
  10  2.66957e-07
  11  469.066
  12  1.35595e-05
  13  0.974323
  14  20.6061
  15  3.75126e-06
  16  1.53523e-06
  17  0.000158055
  18  3.04662e-06
  19  9.80814
  20  0.000390966
  21  3.3809e-05
  22  7.9967
  23  7.92106e-05
  24  22.3246
  25  2.08774e-05
  26  1.99995
  27  4.52106e-05
  28  0.000557196
  29  7.76642e-05
  30  7.00325e-06
  31  0.295946
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.535e-06  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.341e+00  2.959e-01  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:  1.000e-02  7.003e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/568926/likelihoodResults_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.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) = 923.996085336
delta logL = -0.000125534762446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 923.995960248
delta logL = -4.47405113846e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9411       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3406       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   923.9960     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      280 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    90.974        .17776E-02** at limit **
   2  Index         1.8579        6.5123        .50000        .15417E-04
   3  Normalizat    .10000E-01    .16187E-02    .89031E-02** at limit **
   4  Prefactor     1.3406        .18556E-01    .23019E-03   -.66056E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101559
  Index      = 1.8579
  Normalizat = 0.01
  Prefactor  = 1.34062
 **********
 **   18 **HESSE 
 **********

 FCN=   923.9960     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10156E-03    399.80        .35552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8579        5.9288        .50000       -.67952    
   3  Normalizat    .10000E-01    .73193E-02    .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3406        .39441E-01    .92077E-05   -.82107    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15393e-09
Minuit parameter uncertainties:
  1  0.0502675
  2  174.483
  3  5.26856e-08
  4  0.0394417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568926': 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) = 923.995959834
delta logL = -3.27603402184e-08

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.016e-04  5.027e-02  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.858e+00  1.745e+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.341e+00  3.944e-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:  1.000e-02  5.269e-08  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/568926/cmap_HighResolution_602985601_603244801_4FGL_J1109.6+3735_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', job_status='DONE', photon_flux_upper_limit='2.52e-07', time_completed='2021-09-03 10:54:47.742280', job_id='568926', GAL2='1.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630691687.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='-3.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1403' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:54:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 568926: <4FGL_J1109.6+3735_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin1403> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 10:41:45 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:43:07 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:43:07 2021
Terminated at Fri Sep  3 10:54:48 2021
Results reported at Fri Sep  3 10:54:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin1403 167.409 37.5868 602985601 603244801 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 :                                   440.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            783 sec.

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

