/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 41 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1109.6+3735_daily_bin294
RA = 167.409, Dec = 37.5868
tmin = 315532801, tmax = 315792001
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='561645', job_status='RUN', time_executed='2021-09-03 10:19:48.503277', time_epoch_executed='1630689588.5' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561645/ft1_4FGL_J1109.6+3735_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561645/ft2_4FGL_J1109.6+3735_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561645/ft1_4FGL_J1109.6+3735_daily_bin294.fits outfile=/scratch/kocevski/561645/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin294.fits ra=167.409 dec=37.5868 rad=12.0 tmin=315532801.0 tmax=315792001.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.90
user 3.58
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561645/ft1_filtered_4FGL_J1109.6+3735_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/561645/ft2_4FGL_J1109.6+3735_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/561645/ltcube_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.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/561645/ft2_4FGL_J1109.6+3735_daily_bin294.fits
.....................!
real 15.11
user 14.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561645/ft1_filtered_4FGL_J1109.6+3735_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/561645/ft2_4FGL_J1109.6+3735_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/561645/ltcube_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.fits outfile=/scratch/kocevski/561645/expmap_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.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/561645/ltcube_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.fits
.....................!
real 191.43
user 186.02
sys 4.08

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/561645/ft1_filtered_4FGL_J1109.6+3735_daily_bin294.fits scfile=/scratch/kocevski/561645/ft2_4FGL_J1109.6+3735_daily_bin294.fits outfile=/scratch/kocevski/561645/cmap_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561645/ft1_filtered_4FGL_J1109.6+3735_daily_bin294.fits scfile=/scratch/kocevski/561645/ft2_4FGL_J1109.6+3735_daily_bin294.fits outfile=/scratch/kocevski/561645/cmap_HighResolution_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    38.320       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5308       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    131.88       1.0000         .10000E-03   10000.    
    18 'norm      '    24.467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1642       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0272       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12722       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7806       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .29591E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .62802       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3802       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=   4268.165     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4312 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3902       -.71231E-07** at limit **
   2  Prefactor     38.316        40.728       -.21844E-06   -.16329E-04
   3  Prefactor     7.5302        5.3363       -.35556E-06    .15659E-04
   4  norm          4.7564        10.310       -.86190E-06   -.35365E-04
   5  Prefactor     63.139        58.361       -.27503E-06    .11070E-04
   6  Prefactor     44.733        41.730       -.39437E-05    .80416E-05
   7  Prefactor     .10002E-03    4.2034        .22051E-05** at limit **
   8  Prefactor     .36503        18.811        .80617E-05    .51647E-04
   9  Prefactor     .10000E-03    14.509        .41909E-06** at limit **
  10  Prefactor     .10000E-03    14.175       -.48974E-06** at limit **
  11  Prefactor     65.467        125.54        .74435E-07   -.29852E-05
  12  Prefactor     .10000E-03    38.616       -.56790E-05** at limit **
  13  norm          1.6701        .43040        .35242E-08    .62369E-04
  14  Prefactor     .10000E-03    2.1794       -.11847E-05** at limit **
  15  Prefactor     20.314        21.935       -.28079E-06    .31386E-04
  16  Prefactor     .10000E-03    5.3802       -.62232E-07** at limit **
  17  Prefactor     131.55        147.19        .30047E-05    .23364E-04
  18  norm          24.459        20.960        .13418E-06    .68395E-04
  19  Prefactor     2.1030        2.4558        .56344E-07    .90108E-04
  20  Prefactor     .10000E-03    21.524       -.65826E-07** at limit **
  21  Prefactor     .10000E-03    50.434       -.49960E-05** at limit **
  22  norm          2.1640        2.6897        .24011E-06    .79106E-04
  23  Prefactor     .10000E-03    35.385       -.39484E-05** at limit **
  24  Prefactor     5.0307        8.0828       -.16509E-06    .17919E-03
  25  Prefactor     .10000E-03    18.752       -.89528E-07** at limit **
  26  norm          .12766        1.0414       -.30764E-06   -.19974E-03
  27  norm          5.7813        6.7023        .28366E-06    .38985E-05
  28  Prefactor     .10000E-03    38.639       -.16027E-05** at limit **
  29  Prefactor     .10000E-03    121.56       -.79078E-06** at limit **
  30  Normalizat    .62818        .20745        .95110E-06    .31629E-03
  31  Prefactor     1.3803        .24152        .12485E-05    .18734E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.3158
  Prefactor  = 7.53017
  norm       = 4.75637
  Prefactor  = 63.139
  Prefactor  = 44.7328
  Prefactor  = 0.000100019
  Prefactor  = 0.365032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.4673
  Prefactor  = 0.0001
  norm       = 1.67007
  Prefactor  = 0.0001
  Prefactor  = 20.3138
  Prefactor  = 0.0001
  Prefactor  = 131.547
  norm       = 24.4589
  Prefactor  = 2.10297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16402
  Prefactor  = 0.0001
  Prefactor  = 5.0307
  Prefactor  = 0.0001
  norm       = 0.127658
  norm       = 5.78125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.628178
  Prefactor  = 1.38032
 **********
 **   18 **HESSE 
 **********

 FCN=   4268.165     FROM HESSE     STATUS=OK           626 CALLS     4938 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4043        .98520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.316        40.611        .64747E-04   -1.4469    
   3  Prefactor     7.5302        5.3259        .12200E-03   -1.5159    
   4  norm          4.7564        10.219        .18454E-03   -1.5272    
   5  Prefactor     63.139        58.376        .50500E-04   -1.4117    
   6  Prefactor     44.733        42.757        .29953E-03   -1.4369    
   7  Prefactor     .10002E-03    18.166        .21590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36503        21.192        .23862E-02   -1.5587    
   9  Prefactor     .10000E-03    14.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.467        125.95        .49587E-04   -1.4088    
  12  Prefactor     .10000E-03    39.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6701        .43154        .20692E-04   -1.5450    
  14  Prefactor     .10000E-03    2.2011        .93999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.314        21.947        .88860E-04   -1.4806    
  16  Prefactor     .10000E-03    5.3809        .14800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     131.55        147.12        .17532E-03   -1.3409    
  18  norm          24.459        20.936        .80982E-04   -1.4718    
  19  Prefactor     2.1030        2.4299        .10373E-03   -1.5418    
  20  Prefactor     .10000E-03    21.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1640        2.6539        .11157E-03   -1.5414    
  23  Prefactor     .10000E-03    36.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0307        8.0374        .17934E-03   -1.5259    
  25  Prefactor     .10000E-03    18.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .12766        2.1987        .12263E-02   -1.5637    
  27  norm          5.7813        6.7015        .16705E-03   -1.5227    
  28  Prefactor     .10000E-03    38.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    123.29        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .62818        .23771        .29045E-03   -1.0680    
  31  Prefactor     1.3803        .27877        .25133E-03   -.80949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94862e-08
Minuit parameter uncertainties:
  1  6.26206e-06
  2  40.6402
  3  5.32622
  4  10.2226
  5  58.4295
  6  42.7867
  7  0.00116054
  8  5.56391
  9  4.06541e-06
  10  2.15696e-06
  11  126.463
  12  0.000202214
  13  0.431543
  14  5.48433e-06
  15  21.9554
  16  2.21752e-06
  17  147.533
  18  20.942
  19  2.43005
  20  2.42892e-05
  21  0.00012631
  22  2.65408
  23  9.5223e-05
  24  8.03917
  25  2.18371e-05
  26  1.05922
  27  6.7024
  28  2.39029e-06
  29  0.000231207
  30  0.238099
  31  0.279072
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  2.218e-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.380e+00  2.791e-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:  6.282e-01  2.381e-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: 4.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561645/likelihoodResults_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.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) = 4268.16586783
delta logL = -0.000838548050524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4268.16502895
delta logL = 3.3839205571e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8202       1.0000          .0000       10.000    
     3 'Normalizat'    .62817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3803       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=   4268.165     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    37.455        .15579E-02** at limit **
   2  Index         1.7573        5.8702        .50000        .42187E-04
   3  Normalizat    .62817        .12108E-01    .29043E-03   -.23956E-03
   4  Prefactor     1.3803        .15037E-01    .25133E-03   -.27414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101752
  Index      = 1.75726
  Normalizat = 0.628173
  Prefactor  = 1.38032
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10175E-03    170.90        .31159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7573        5.2963        .50000       -.70568    
   3  Normalizat    .62817        .26548E-01    .11617E-04   -1.0680    
   4  Prefactor     1.3803        .32965E-01    .50266E-04   -.80949    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07924e-08
Minuit parameter uncertainties:
  1  0.0347078
  2  263.684
  3  0.0265485
  4  0.0329657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561645': 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) = 4268.16502822
delta logL = 1.06096740637e-06

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.018e-04  3.471e-02  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.757e+00  2.637e+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.380e+00  3.297e-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:  6.282e-01  2.655e-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/561645/cmap_HighResolution_315532801_315792001_4FGL_J1109.6+3735_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-09-03 10:32:54.541814', job_id='561645', GAL2='1.38', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630690374.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='294' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:32:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 561645: <4FGL_J1109.6+3735_daily_bin294> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin294> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep  3 10:16:20 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:18:54 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:18:54 2021
Terminated at Fri Sep  3 10:32:55 2021
Results reported at Fri Sep  3 10:32:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin294 167.409 37.5868 315532801 315792001 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 :                                   778.46 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            995 sec.

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

