/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7445
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1109.6+3735_daily_bin740
RA = 167.409, Dec = 37.5868
tmin = 431136001, tmax = 431395201
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='565540', job_status='RUN', time_executed='2021-09-03 10:33:02.472307', time_epoch_executed='1630690382.47' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/565540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/565540/ft1_4FGL_J1109.6+3735_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/565540/ft2_4FGL_J1109.6+3735_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/565540/ft1_4FGL_J1109.6+3735_daily_bin740.fits outfile=/scratch/kocevski/565540/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin740.fits ra=167.409 dec=37.5868 rad=12.0 tmin=431136001.0 tmax=431395201.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.66
user 5.37
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/565540/ft2_4FGL_J1109.6+3735_daily_bin740.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/565540/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/565540/ft1_filtered_4FGL_J1109.6+3735_daily_bin740.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.55
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/565540/ft1_filtered_4FGL_J1109.6+3735_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/565540/ft2_4FGL_J1109.6+3735_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/565540/ltcube_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.fits outfile=/scratch/kocevski/565540/expmap_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.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/565540/ltcube_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.fits
.....................!
real 192.10
user 186.69
sys 4.96

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/565540/ft1_filtered_4FGL_J1109.6+3735_daily_bin740.fits scfile=/scratch/kocevski/565540/ft2_4FGL_J1109.6+3735_daily_bin740.fits outfile=/scratch/kocevski/565540/cmap_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/565540/ft1_filtered_4FGL_J1109.6+3735_daily_bin740.fits scfile=/scratch/kocevski/565540/ft2_4FGL_J1109.6+3735_daily_bin740.fits outfile=/scratch/kocevski/565540/cmap_HighResolution_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20149E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7163       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.492       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    140.35       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.585       1.0000         .10000E-03   10000.    
    13 'norm      '    .86580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15354E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    33.487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0264       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.7275       1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.866       1.0000         .10000E-03   10000.    
    26 'norm      '    8.6971       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97820       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90939       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=   4893.637     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4084 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9123       -.79913E-07** at limit **
   2  Prefactor     62.913        47.997        .27364E-06    .28698E-04
   3  Prefactor     .10001E-03    6.3471        .24371E-05** at limit **
   4  norm          3.7013        13.575       -.37490E-05    .83082E-04
   5  Prefactor     .10000E-03    48.149       -.21611E-05** at limit **
   6  Prefactor     .10000E-03    37.427        .39123E-06** at limit **
   7  Prefactor     .10000E-03    2.7733        .39160E-07** at limit **
   8  Prefactor     11.495        7.0950        .53754E-06    .23994E-03
   9  Prefactor     .10000E-03    40.699       -.15040E-06** at limit **
  10  Prefactor     .10000E-03    25.521       -.68555E-06** at limit **
  11  Prefactor     140.35        113.99       -.40305E-06    .14069E-04
  12  Prefactor     26.586        14.432       -.11794E-06    .36139E-04
  13  norm          .86561        .32886        .61912E-07    .22254E-02
  14  Prefactor     .10000E-03    .98100       -.66437E-07** at limit **
  15  Prefactor     .10006E-03    80.377       -.13667E-04** at limit **
  16  Prefactor     .10000E-03    13.000        .61948E-06** at limit **
  17  Prefactor     .10000E-03    63.524        .34673E-06** at limit **
  18  norm          33.466        19.227        .36725E-06    .38128E-03
  19  Prefactor     .10000E-03    1.3344        .15478E-06** at limit **
  20  Prefactor     .10000E-03    28.160        .16055E-05** at limit **
  21  Prefactor     15.971        15.655       -.15958E-06    .25022E-04
  22  norm          4.0276        3.9537       -.14378E-06    .48439E-04
  23  Prefactor     .10000E-03    7.1581       -.15547E-06** at limit **
  24  Prefactor     6.7274        5.1908       -.92972E-07    .44480E-04
  25  Prefactor     41.830        84.631        .56975E-05    .10397E-04
  26  norm          8.6966        2.4571       -.30324E-06    .29064E-03
  27  norm          .10000E-03    6.5906        .98451E-07** at limit **
  28  Prefactor     .10000E-03    25.260       -.79195E-06** at limit **
  29  Prefactor     .10000E-03    60.183       -.58276E-06** at limit **
  30  Normalizat    .97801        .20953        .53699E-06    .36145E-03
  31  Prefactor     .90960        .23399        .10557E-05    .20847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.9126
  Prefactor  = 0.000100013
  norm       = 3.70134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.347
  Prefactor  = 26.5857
  norm       = 0.865606
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.4664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9713
  norm       = 4.02757
  Prefactor  = 0.0001
  Prefactor  = 6.72736
  Prefactor  = 41.83
  norm       = 8.69657
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.978015
  Prefactor  = 0.909603
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.637     FROM HESSE     STATUS=OK           606 CALLS     4690 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9449        .11629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.913        48.119        .50602E-04   -1.4120    
   3  Prefactor     .10001E-03    13.191        .22405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7013        13.489        .20948E-03   -1.5323    
   5  Prefactor     .10000E-03    48.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8001        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.495        7.0481        .11818E-03   -1.5030    
   9  Prefactor     .10000E-03    40.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     140.35        114.29        .34004E-04   -1.3333    
  12  Prefactor     26.586        14.443        .77696E-04   -1.4676    
  13  norm          .86561        .32417        .23468E-04   -1.5522    
  14  Prefactor     .10000E-03    .98447        .67648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    108.93        .51713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          33.466        18.497        .69247E-04   -1.4550    
  19  Prefactor     .10000E-03    1.3458        .78628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.971        15.659        .10022E-03   -1.4908    
  22  norm          4.0276        3.9214        .12353E-03   -1.5307    
  23  Prefactor     .10000E-03    7.1732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.7274        5.1887        .13511E-03   -1.5189    
  25  Prefactor     41.830        84.302        .61954E-04   -1.4414    
  26  norm          8.6966        2.4557        .49145E-04   -1.5118    
  27  norm          .10000E-03    6.6031        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    25.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    60.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97801        .24707        .25554E-03   -.93771    
  31  Prefactor     .90960        .27476        .30734E-03   -.95806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84481e-09
Minuit parameter uncertainties:
  1  6.61839e-06
  2  48.1492
  3  0.000840211
  4  13.4997
  5  3.28509e-05
  6  3.43323e-05
  7  1.69627e-05
  8  7.04862
  9  1.07802e-05
  10  2.94502e-05
  11  114.473
  12  14.4449
  13  0.324168
  14  8.68368e-07
  15  0.0051186
  16  2.37194e-05
  17  1.42366e-05
  18  18.5003
  19  6.33405e-06
  20  3.09981e-05
  21  15.6627
  22  3.92161
  23  4.44669e-06
  24  5.189
  25  84.5438
  26  2.45576
  27  5.50951e-06
  28  2.60931e-05
  29  2.2431e-06
  30  0.24736
  31  0.275182
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  2.372e-05  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:  9.096e-01  2.752e-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:  9.780e-01  2.474e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/565540/likelihoodResults_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.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) = 4893.63710072
delta logL = -0.000365640685231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4893.63673509
delta logL = -1.64891389431e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8545       1.0000          .0000       10.000    
     3 'Normalizat'    .97802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90961       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=   4893.637     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .39E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.481        .90712E-02** at limit **
   2  Index         1.8542        5.4210        .50000        .11994E-06
   3  Normalizat    .97801        .76094E-02    .45891E-01    .93018E-05
   4  Prefactor     .90960        .89023E-02    .69471E-01    .12429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85424
  Normalizat = 0.978012
  Prefactor  = 0.909605
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.637     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1887.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8542        5.1718        .50000       -.68046    
   3  Normalizat    .97801        .80791E-01    .25554E-03   -.93771    
   4  Prefactor     .90960        .94421E-01    .30734E-03   -.95806    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26994e-13
Minuit parameter uncertainties:
  1  4.80083e-05
  2  48.5056
  3  0.0808011
  4  0.0944382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/565540': 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) = 4893.63673508
delta logL = 1.26419763546e-10

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  4.801e-05  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.854e+00  4.851e+01  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:  9.096e-01  9.444e-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:  9.780e-01  8.080e-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/565540/cmap_HighResolution_431136001_431395201_4FGL_J1109.6+3735_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-03 10:47:13.460681', job_id='565540', GAL2='0.91', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630691233.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.26e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='740' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 565540: <4FGL_J1109.6+3735_daily_bin740> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin740> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 10:31:14 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:31: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 10:31:18 2021
Terminated at Fri Sep  3 10:47:14 2021
Results reported at Fri Sep  3 10:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin740 167.409 37.5868 431136001 431395201 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            960 sec.

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

