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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin1215
RA = 167.409, Dec = 37.5868
tmin = 554256001, tmax = 554515201
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='568637', job_status='RUN', time_executed='2021-09-03 10:43:39.118456', time_epoch_executed='1630691019.12' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568637/ft1_4FGL_J1109.6+3735_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568637/ft2_4FGL_J1109.6+3735_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568637/ft1_4FGL_J1109.6+3735_daily_bin1215.fits outfile=/scratch/kocevski/568637/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1215.fits ra=167.409 dec=37.5868 rad=12.0 tmin=554256001.0 tmax=554515201.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.13
user 3.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/568637/ft1_filtered_4FGL_J1109.6+3735_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/568637/ft2_4FGL_J1109.6+3735_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/568637/ltcube_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.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/568637/ft2_4FGL_J1109.6+3735_daily_bin1215.fits
.....................!
real 16.47
user 16.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568637/ft1_filtered_4FGL_J1109.6+3735_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/568637/ft2_4FGL_J1109.6+3735_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/568637/ltcube_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.fits outfile=/scratch/kocevski/568637/expmap_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.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/568637/ltcube_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.fits
.....................!
real 192.65
user 187.76
sys 4.31

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/568637/ft1_filtered_4FGL_J1109.6+3735_daily_bin1215.fits scfile=/scratch/kocevski/568637/ft2_4FGL_J1109.6+3735_daily_bin1215.fits outfile=/scratch/kocevski/568637/cmap_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/568637/ft1_filtered_4FGL_J1109.6+3735_daily_bin1215.fits scfile=/scratch/kocevski/568637/ft2_4FGL_J1109.6+3735_daily_bin1215.fits outfile=/scratch/kocevski/568637/cmap_HighResolution_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11191E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.702       1.0000         .10000E-03   10000.    
     4 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    292.26       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8175       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11631E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21792E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11502E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79666E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5973       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.790       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4059       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .32798       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5923       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=   1390.539     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4132 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.901        48.892        .14325E-06   -.22836E-04
   2  Prefactor     .10000E-03    302.45       -.67610E-06** at limit **
   3  Prefactor     13.709        47.458       -.91742E-06   -.21388E-04
   4  norm          .10000E-03    37.136       -.58138E-06** at limit **
   5  Prefactor     292.30        267.39        .20556E-05   -.39681E-06
   6  Prefactor     .10000E-03    93.310       -.51022E-06** at limit **
   7  Prefactor     3.7164        176.79       -.31980E-05   -.14949E-05
   8  Prefactor     .10000E-03    37.402       -.62853E-06** at limit **
   9  Prefactor     .10000E-03    128.22       -.13257E-05** at limit **
  10  Prefactor     .10000E-03    126.15        .82161E-06** at limit **
  11  Prefactor     .10006E-03    2246.4       -.18677E-04** at limit **
  12  Prefactor     .10000E-03    44.567        .10182E-05** at limit **
  13  norm          .10000E-03    1.0003       -.97138E-06** at limit **
  14  Prefactor     .10000E-03    8.6868        .20945E-05** at limit **
  15  Prefactor     .10000E-03    367.90       -.59338E-05** at limit **
  16  Prefactor     .10000E-03    50.665       -.55294E-06** at limit **
  17  Prefactor     .10002E-03    6990.3       -.31426E-05** at limit **
  18  norm          .10000E-03    11.350       -.56724E-07** at limit **
  19  Prefactor     .10000E-03    3.5872       -.76171E-07** at limit **
  20  Prefactor     .10000E-03    44.096       -.73962E-08** at limit **
  21  Prefactor     .10000E-03    29.032        .16356E-06** at limit **
  22  norm          .10000E-03    1.9863       -.37294E-07** at limit **
  23  Prefactor     7.6025        18.205        .88141E-06    .69424E-05
  24  Prefactor     11.793        11.217        .17416E-06   -.17026E-04
  25  Prefactor     .10000E-03    47.328       -.34505E-08** at limit **
  26  norm          2.4059        3.3045        .41441E-06    .19248E-03
  27  norm          .10000E-03    18.840        .45357E-08** at limit **
  28  Prefactor     .10000E-03    35.586       -.12623E-07** at limit **
  29  Prefactor     .10000E-03    177.58        .29917E-06** at limit **
  30  Normalizat    .32747        .43891       -.77495E-05   -.10241E-03
  31  Prefactor     1.5929        .47934        .13201E-05   -.11528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.9009
  Prefactor  = 0.0001
  Prefactor  = 13.709
  norm       = 0.0001
  Prefactor  = 292.303
  Prefactor  = 0.0001
  Prefactor  = 3.71642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.60246
  Prefactor  = 11.7925
  Prefactor  = 0.0001
  norm       = 2.40588
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.327475
  Prefactor  = 1.59293
 **********
 **   18 **HESSE 
 **********

 FCN=   1390.539     FROM HESSE     STATUS=OK           608 CALLS     4740 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.901        48.787        .61202E-04   -1.4397    
   2  Prefactor     .10000E-03    302.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.709        47.163        .10821E-03   -1.4967    
   4  norm          .10000E-03    37.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     292.30        266.51        .11874E-03   -1.2272    
   6  Prefactor     .10000E-03    93.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7164        172.16        .20658E-03   -1.5322    
   8  Prefactor     .10000E-03    37.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    128.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    126.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    2261.0        .20150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0196        .58267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.699        .20097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    369.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    6996.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.353        .12271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6268        .68901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9877        .51322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.6025        18.201        .14549E-03   -1.5156    
  24  Prefactor     11.793        11.151        .11354E-03   -1.5021    
  25  Prefactor     .10000E-03    47.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4059        3.3227        .76454E-04   -1.5398    
  27  norm          .10000E-03    18.842        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    35.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    177.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .32747        .46020        .42557E-03   -1.2123    
  31  Prefactor     1.5929        .51273        .23048E-03   -.74969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72202e-10
Minuit parameter uncertainties:
  1  48.832
  2  0.000330318
  3  47.2912
  4  7.10419e-05
  5  267.636
  6  0.000206592
  7  50.7439
  8  1.6606e-05
  9  0.000201457
  10  0.00048905
  11  0.0238038
  12  0.000188822
  13  3.71479e-05
  14  5.81603e-05
  15  0.00231867
  16  2.85768e-05
  17  0.0215604
  18  7.48105e-06
  19  5.68537e-06
  20  3.65296e-05
  21  3.41767e-05
  22  6.1096e-07
  23  18.2145
  24  11.1528
  25  1.36505e-05
  26  3.32294
  27  1.91646e-08
  28  1.85762e-05
  29  0.000355036
  30  0.465658
  31  0.514419
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  2.858e-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:  1.593e+00  5.144e-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:  3.275e-01  4.657e-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: 2.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/568637/likelihoodResults_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.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) = 1390.53938538
delta logL = -9.36022061069e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1390.53929191
delta logL = -1.2990722098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9300       1.0000          .0000       10.000    
     3 'Normalizat'    .32751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5930       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=   1390.539     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    15.817        .90712E-02** at limit **
   2  Index         1.9225        5.7738        .50000        .11559E-05
   3  Normalizat    .32748        .51509E-02    .96064E-01    .78017E-04
   4  Prefactor     1.5929        .58255E-02    .52139E-01    .14322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 1.92251
  Normalizat = 0.32748
  Prefactor  = 1.59293
 **********
 **   18 **HESSE 
 **********

 FCN=   1390.539     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    92.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9225        9.0078        .50000       -.66302    
   3  Normalizat    .32748        .12449E-01    .42557E-03   -1.2123    
   4  Prefactor     1.5929        .14114E-01    .23048E-03   -.74969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.28435e-12
Minuit parameter uncertainties:
  1  0.00218834
  2  64.8572
  3  0.0124486
  4  0.0141145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568637': 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) = 1390.53929179
delta logL = -1.31574324769e-08

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  2.188e-03  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.923e+00  6.486e+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:  1.593e+00  1.411e-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:  3.275e-01  1.245e-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/568637/cmap_HighResolution_554256001_554515201_4FGL_J1109.6+3735_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', job_status='DONE', photon_flux_upper_limit='2.14e-07', time_completed='2021-09-03 10:51:37.083329', job_id='568637', GAL2='1.59', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1630691497.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.59', dlogl='-1.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1215' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 568637: <4FGL_J1109.6+3735_daily_bin1215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin1215 167.409 37.5868 554256001 554515201 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 :                                   473.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            617 sec.

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

