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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin1208
RA = 167.409, Dec = 37.5868
tmin = 552441601, tmax = 552700801
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='568626', job_status='RUN', time_executed='2021-09-03 10:44:31.587078', time_epoch_executed='1630691071.59' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='1208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568626/ft1_4FGL_J1109.6+3735_daily_bin1208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568626/ft1_4FGL_J1109.6+3735_daily_bin1208.fits outfile=/scratch/kocevski/568626/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1208.fits ra=167.409 dec=37.5868 rad=12.0 tmin=552441601.0 tmax=552700801.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 2.53
user 2.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.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/568626/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1208.fits evtable="EVENTS" outfile="/scratch/kocevski/568626/ft1_filtered_4FGL_J1109.6+3735_daily_bin1208.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/568626/ft1_filtered_4FGL_J1109.6+3735_daily_bin1208.fits" evtable="EVENTS" scfile=/scratch/kocevski/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.fits sctable="SC_DATA" outfile=/scratch/kocevski/568626/ltcube_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.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/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.fits
.....................!
real 13.74
user 13.43
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568626/ft1_filtered_4FGL_J1109.6+3735_daily_bin1208.fits evtable="EVENTS" scfile=/scratch/kocevski/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.fits sctable="SC_DATA" expcube=/scratch/kocevski/568626/ltcube_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.fits outfile=/scratch/kocevski/568626/expmap_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.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/568626/ltcube_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.fits
.....................!
real 157.74
user 153.19
sys 4.21

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/568626/ft1_filtered_4FGL_J1109.6+3735_daily_bin1208.fits scfile=/scratch/kocevski/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.fits outfile=/scratch/kocevski/568626/cmap_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.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.49
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/568626/ft1_filtered_4FGL_J1109.6+3735_daily_bin1208.fits scfile=/scratch/kocevski/568626/ft2_4FGL_J1109.6+3735_daily_bin1208.fits outfile=/scratch/kocevski/568626/cmap_HighResolution_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.633       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11995E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6528       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3167       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8045       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4147       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10836E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.412       1.0000         .10000E-03   10000.    
    25 'Prefactor '    43.426       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8660       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7222       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2341       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71147       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=   2935.490     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4197 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.632        14.843        .28925E-06   -.29400E-03
   2  Prefactor     .10000E-03    107.74        .67019E-04** at limit **
   3  Prefactor     .10000E-03    18.845       -.81424E-05** at limit **
   4  norm          .10000E-03    50.196        .10586E-04** at limit **
   5  Prefactor     .10000E-03    66.425       -.51798E-04** at limit **
   6  Prefactor     .10000E-03    43.698        .32793E-04** at limit **
   7  Prefactor     .10000E-03    2.7408        .51884E-07** at limit **
   8  Prefactor     .10000E-03    21.813        .26932E-04** at limit **
   9  Prefactor     .10000E-03    25.793       -.28590E-04** at limit **
  10  Prefactor     .10000E-03    12.008        .22440E-05** at limit **
  11  Prefactor     .10000E-03    380.95       -.93519E-04** at limit **
  12  Prefactor     .10000E-03    53.819       -.53051E-05** at limit **
  13  norm          1.6528        .61096        .39518E-07    .84635E-04
  14  Prefactor     3.3149        4.9482        .50935E-06   -.95608E-04
  15  Prefactor     5.7058        21.670        .43999E-06   -.17519E-04
  16  Prefactor     .10000E-03    11.706       -.18276E-05** at limit **
  17  Prefactor     28.441        109.21        .14298E-03    .36626E-05
  18  norm          4.8026        13.251        .28292E-06   -.44083E-04
  19  Prefactor     1.4157        4.4542       -.34075E-05   -.52141E-03
  20  Prefactor     56.774        74.862        .13635E-04    .67153E-04
  21  Prefactor     .10000E-03    7.0519        .65148E-07** at limit **
  22  norm          .10000E-03    2.1043       -.32070E-06** at limit **
  23  Prefactor     .10000E-03    5.4208        .63101E-07** at limit **
  24  Prefactor     22.412        9.2116        .40857E-06    .15782E-03
  25  Prefactor     43.425        41.816        .86962E-07    .40438E-04
  26  norm          1.8661        1.3479        .79739E-07    .26101E-03
  27  norm          .10000E-03    8.6246        .11963E-06** at limit **
  28  Prefactor     4.7210        64.457        .38111E-05   -.41815E-05
  29  Prefactor     .10000E-03    56.474       -.15169E-04** at limit **
  30  Normalizat    1.2342        .26351       -.85028E-06   -.12703E-03
  31  Prefactor     .71142        .29107       -.47153E-05   -.33284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65281
  Prefactor  = 3.31489
  Prefactor  = 5.70576
  Prefactor  = 0.0001
  Prefactor  = 28.4413
  norm       = 4.80262
  Prefactor  = 1.41569
  Prefactor  = 56.7737
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4123
  Prefactor  = 43.425
  norm       = 1.86611
  norm       = 0.0001
  Prefactor  = 4.72095
  Prefactor  = 0.0001
  Normalizat = 1.23416
  Prefactor  = 0.711416
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.490     FROM HESSE     STATUS=OK           612 CALLS     4809 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.632        14.794        .98205E-04   -1.4892    
   2  Prefactor     .10000E-03    107.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    51.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7423        .87603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    381.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6528        .61264        .23639E-04   -1.5451    
  14  Prefactor     3.3149        4.9226        .13795E-03   -1.5344    
  15  Prefactor     5.7058        21.705        .16816E-03   -1.5230    
  16  Prefactor     .10000E-03    11.708        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.441        109.10        .75254E-04   -1.4641    
  18  norm          4.8026        13.196        .18354E-03   -1.5270    
  19  Prefactor     1.4157        4.2860        .14539E-03   -1.5470    
  20  Prefactor     56.774        72.562        .53249E-04   -1.4200    
  21  Prefactor     .10000E-03    7.0563        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.3433        .14950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.4279        .12320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.412        9.1962        .84609E-04   -1.4761    
  25  Prefactor     43.425        41.908        .60836E-04   -1.4389    
  26  norm          1.8661        1.3458        .50153E-04   -1.5435    
  27  norm          .10000E-03    8.6823        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.7210        64.379        .18517E-03   -1.5273    
  29  Prefactor     .10000E-03    56.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2342        .31419        .22717E-03   -.85554    
  31  Prefactor     .71142        .34289        .33477E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0472e-10
Minuit parameter uncertainties:
  1  14.7973
  2  0.000133634
  3  7.93758e-05
  4  0.000239496
  5  5.54146e-05
  6  9.6293e-05
  7  4.81874e-07
  8  0.000323216
  9  3.48227e-07
  10  3.35745e-06
  11  0.000857193
  12  0.000248102
  13  0.612637
  14  4.92318
  15  21.7347
  16  3.31037e-06
  17  109.882
  18  13.2041
  19  4.28691
  20  72.6753
  21  5.56001e-06
  22  6.16559e-05
  23  4.71269e-06
  24  9.19678
  25  41.9362
  26  1.3458
  27  2.00514e-05
  28  34.9126
  29  8.44705e-05
  30  0.31467
  31  0.343914
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  3.310e-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:  7.114e-01  3.439e-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.234e+00  3.147e-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: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/568626/likelihoodResults_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.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) = 2935.48993967
delta logL = -0.000399281028876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2935.48954033
delta logL = 6.05241439189e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8319       1.0000          .0000       10.000    
     3 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71143       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=   2935.490     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7042        .90712E-02** at limit **
   2  Index         1.8091        5.4376        .50000        .13823E-04
   3  Normalizat    1.2342        .34641E-02    .51383E-01   -.33630E-06
   4  Prefactor     .71141        .40059E-02    .75625E-01    .22968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80907
  Normalizat = 1.23416
  Prefactor  = 0.711415
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.490     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8091        7.6108        .50000       -.69214    
   3  Normalizat    1.2342        .12499E-01    .22717E-03   -.85554    
   4  Prefactor     .71141        .14430E-01    .33477E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43661e-07
Minuit parameter uncertainties:
  1  0.000196075
  2  107.785
  3  0.0124993
  4  0.0144297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568626': 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) = 2935.48954022
delta logL = 1.73333774001e-07

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.961e-04  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.809e+00  1.078e+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:  7.114e-01  1.443e-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.234e+00  1.250e-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/568626/cmap_HighResolution_552441601_552700801_4FGL_J1109.6+3735_daily_bin1208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-03 10:53:28.906478', job_id='568626', GAL2='0.71', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630691608.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1208' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:53:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 568626: <4FGL_J1109.6+3735_daily_bin1208> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin1208> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 10:41:19 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:41:24 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:41:24 2021
Terminated at Fri Sep  3 10:53:29 2021
Results reported at Fri Sep  3 10:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin1208 167.409 37.5868 552441601 552700801 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 :                                   533.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            730 sec.

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

