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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin1002
RA = 167.409, Dec = 37.5868
tmin = 499046401, tmax = 499305601
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='567125', job_status='RUN', time_executed='2021-09-03 10:36:45.882265', time_epoch_executed='1630690605.88' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567125/ft1_4FGL_J1109.6+3735_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567125/ft2_4FGL_J1109.6+3735_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567125/ft1_4FGL_J1109.6+3735_daily_bin1002.fits outfile=/scratch/kocevski/567125/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1002.fits ra=167.409 dec=37.5868 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.30
user 4.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567125/ft1_filtered_4FGL_J1109.6+3735_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/567125/ft2_4FGL_J1109.6+3735_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/567125/ltcube_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.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/567125/ft2_4FGL_J1109.6+3735_daily_bin1002.fits
.....................!
real 14.17
user 13.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567125/ft1_filtered_4FGL_J1109.6+3735_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/567125/ft2_4FGL_J1109.6+3735_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/567125/ltcube_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.fits outfile=/scratch/kocevski/567125/expmap_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.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/567125/ltcube_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.fits
.....................!
real 191.62
user 186.24
sys 4.95

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/567125/ft1_filtered_4FGL_J1109.6+3735_daily_bin1002.fits scfile=/scratch/kocevski/567125/ft2_4FGL_J1109.6+3735_daily_bin1002.fits outfile=/scratch/kocevski/567125/cmap_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567125/ft1_filtered_4FGL_J1109.6+3735_daily_bin1002.fits scfile=/scratch/kocevski/567125/ft2_4FGL_J1109.6+3735_daily_bin1002.fits outfile=/scratch/kocevski/567125/cmap_HighResolution_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.014       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10684E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.246       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13310E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3130       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72300       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.7584       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.291       1.0000         .10000E-03   10000.    
    22 'norm      '    .62357E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5667       1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.052       1.0000         .10000E-03   10000.    
    26 'norm      '    .71590       1.0000         .10000E-03   10000.    
    27 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12197E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .66087       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1318       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=   4018.309     FROM MIGRAD    STATUS=CONVERGED   1464 CALLS     4794 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0484        3.3815        .20475E-03    .27207E-05
   2  Prefactor     41.054        37.557        .62592E-04   -.77339E-04
   3  Prefactor     .10000E-03    4.9577        .27131E-03** at limit **
   4  norm          .10000E-03    5.5569        .14563E-02** at limit **
   5  Prefactor     28.288        42.698        .75381E-04    .15836E-05
   6  Prefactor     .10000E-03    29.519        .10507    ** at limit **
   7  Prefactor     .10000E-03    4.8587        .20313E-02** at limit **
   8  Prefactor     .10000E-03    2.6608        .10064E-02** at limit **
   9  Prefactor     .10000E-03    17.947        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.4270        .18142E-02** at limit **
  11  Prefactor     .10000E-03    21.800        .18142E-02** at limit **
  12  Prefactor     2.3155        10.298        .26976E-03   -.71687E-04
  13  norm          1.1486        .34694        .19496E-04   -.10030E-03
  14  Prefactor     .72269        2.5763        .18193E-03   -.41492E-04
  15  Prefactor     10.227        17.351        .12528E-03   -.18920E-04
  16  Prefactor     .10000E-03    8.0815        .17588E-02** at limit **
  17  Prefactor     .10000E-03    41.966        .18142E-02** at limit **
  18  norm          9.7712        17.005        .12828E-03   -.32570E-04
  19  Prefactor     2.7944        2.6548        .92566E-04   -.16341E-03
  20  Prefactor     .10000E-03    25.692        .18142E-02** at limit **
  21  Prefactor     17.288        15.786        .96319E-04   -.60196E-05
  22  norm          .71891E-01    24.041        .14800E-02    .93029E-03
  23  Prefactor     .10000E-03    4.9197        .13725E-02** at limit **
  24  Prefactor     8.5653        6.6640        .13573E-03   -.43053E-04
  25  Prefactor     41.130        37.223        .62563E-04   -.38051E-04
  26  norm          .71470        .78981        .57795E-04    .28680E-03
  27  norm          .10000E-03    4.5284        .13169E-02** at limit **
  28  Prefactor     .10000E-03    36.911        .18142E-02** at limit **
  29  Prefactor     .10000E-03    26.409        .18142E-02** at limit **
  30  Normalizat    .66101        .21296        .24705E-03   -.10667E-03
  31  Prefactor     1.1316        .25810        .24037E-03   -.16357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04838
  Prefactor  = 41.0536
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.2885
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31551
  norm       = 1.14859
  Prefactor  = 0.722692
  Prefactor  = 10.2266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.77118
  Prefactor  = 2.79443
  Prefactor  = 0.0001
  Prefactor  = 17.2878
  norm       = 0.0718909
  Prefactor  = 0.0001
  Prefactor  = 8.56533
  Prefactor  = 41.1302
  norm       = 0.714702
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.661007
  Prefactor  = 1.13157
 **********
 **   18 **HESSE 
 **********

 FCN=   4018.309     FROM HESSE     STATUS=OK           602 CALLS     5396 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0484        3.3811        .81900E-05   -1.5503    
   2  Prefactor     41.054        37.553        .12518E-04   -1.4426    
   3  Prefactor     .10000E-03    4.9578        .54261E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.5573        .29127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.288        42.699        .30152E-05   -1.4644    
   6  Prefactor     .10000E-03    28.823        .10715       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8704        .40626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6609        .20128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3155        10.288        .10790E-04   -1.5404    
  13  norm          1.1486        .34693        .77984E-06   -1.5494    
  14  Prefactor     .72269        2.5749        .72773E-05   -1.5538    
  15  Prefactor     10.227        17.348        .50113E-05   -1.5068    
  16  Prefactor     .10000E-03    8.0817        .35176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.7712        17.002        .51312E-05   -1.5083    
  19  Prefactor     2.7944        2.6424        .37026E-05   -1.5374    
  20  Prefactor     .10000E-03    25.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.288        15.785        .38528E-05   -1.4876    
  22  norm          .71891E-01    23.858        .29600E-03   -1.5654    
  23  Prefactor     .10000E-03    4.9198        .27450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5653        6.6632        .54292E-05   -1.5123    
  25  Prefactor     41.130        37.171        .12513E-04   -1.4424    
  26  norm          .71470        .78971        .23118E-05   -1.5539    
  27  norm          .10000E-03    4.5285        .26338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    36.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    26.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .66101        .21312        .98819E-05   -1.0545    
  31  Prefactor     1.1316        .25808        .48074E-04   -.88464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14098e-10
Minuit parameter uncertainties:
  1  3.38171
  2  37.575
  3  5.66334e-06
  4  8.17439e-06
  5  42.745
  6  0.000408866
  7  0.000103067
  8  8.09993e-07
  9  6.99845e-06
  10  9.87756e-07
  11  1.26231e-06
  12  9.76396
  13  0.346927
  14  2.57528
  15  17.3567
  16  8.80531e-06
  17  3.04629e-06
  18  17.0107
  19  2.64252
  20  9.66936e-06
  21  15.7891
  22  2.61854
  23  1.28042e-06
  24  6.66376
  25  37.1922
  26  0.789718
  27  3.88351e-06
  28  3.84981e-05
  29  1.95333e-05
  30  0.213384
  31  0.258367
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  8.805e-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.132e+00  2.584e-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.610e-01  2.134e-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: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567125/likelihoodResults_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.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) = 4018.30940083
delta logL = -0.000585690872867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4018.30881558
delta logL = -4.43992121291e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8243       1.0000          .0000       10.000    
     3 'Normalizat'    .66099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1316       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=   4018.309     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    34.530        .18142E-02** at limit **
   2  Index         1.7787        5.3690        .50000        .24050E-04
   3  Normalizat    .66101        .87202E-02    .24704E-03    .36516E-04
   4  Prefactor     1.1316        .10901E-01    .24037E-03    .27266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100872
  Index      = 1.77871
  Normalizat = 0.661007
  Prefactor  = 1.13157
 **********
 **   18 **HESSE 
 **********

 FCN=   4018.309     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10087E-03    190.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7787        5.1185        .50000       -.70005    
   3  Normalizat    .66101        .20929E-01    .98818E-05   -1.0545    
   4  Prefactor     1.1316        .26160E-01    .96148E-05   -.88464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.91366e-09
Minuit parameter uncertainties:
  1  0.0258526
  2  240.04
  3  0.0209296
  4  0.0261601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567125': 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) = 4018.30881466
delta logL = 4.82172708871e-07

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.009e-04  2.585e-02  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.779e+00  2.400e+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.132e+00  2.616e-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.610e-01  2.093e-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/567125/cmap_HighResolution_499046401_499305601_4FGL_J1109.6+3735_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-03 10:50:03.440708', job_id='567125', GAL2='1.13', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630691403.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1002' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:50:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 567125: <4FGL_J1109.6+3735_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin1002> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 10:36:23 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:36:30 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:30 2021
Terminated at Fri Sep  3 10:50:04 2021
Results reported at Fri Sep  3 10:50:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin1002 167.409 37.5868 499046401 499305601 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 :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            821 sec.

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

