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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin1202
RA = 167.409, Dec = 37.5868
tmin = 550886401, tmax = 551145601
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='568617', job_status='RUN', time_executed='2021-09-03 10:44:13.129787', time_epoch_executed='1630691053.13' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568617/ft1_4FGL_J1109.6+3735_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568617/ft2_4FGL_J1109.6+3735_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568617/ft1_4FGL_J1109.6+3735_daily_bin1202.fits outfile=/scratch/kocevski/568617/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin1202.fits ra=167.409 dec=37.5868 rad=12.0 tmin=550886401.0 tmax=551145601.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.88
user 3.57
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568617/ft1_filtered_4FGL_J1109.6+3735_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/568617/ft2_4FGL_J1109.6+3735_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/568617/ltcube_550886401_551145601_4FGL_J1109.6+3735_daily_bin1202.fits outfile=/scratch/kocevski/568617/expmap_550886401_551145601_4FGL_J1109.6+3735_daily_bin1202.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/568617/ltcube_550886401_551145601_4FGL_J1109.6+3735_daily_bin1202.fits
.....................!
real 195.93
user 188.04
sys 5.47

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/568617/ft1_filtered_4FGL_J1109.6+3735_daily_bin1202.fits scfile=/scratch/kocevski/568617/ft2_4FGL_J1109.6+3735_daily_bin1202.fits outfile=/scratch/kocevski/568617/cmap_550886401_551145601_4FGL_J1109.6+3735_daily_bin1202.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.60
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1996       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20822E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.749       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85249E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    119.57       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49133E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .67750       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13085E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.117       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4897       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12326E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48411E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.365       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.010       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2891       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17810E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    184.64       1.0000         .10000E-03   10000.    
    26 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.798       1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.137       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .70899E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3286       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3039.493     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     3181 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.864       -.93591E-05** at limit **
   2  Prefactor     .10000E-03    230.96       -.60015E-04** at limit **
   3  Prefactor     .10000E-03    11.152       -.65192E-05** at limit **
   4  norm          6.2039        17.849       -.61373E-05   -.47966E-05
   5  Prefactor     .10000E-03    52.219        .11566E-04** at limit **
   6  Prefactor     .10000E-03    25.980        .68832E-05** at limit **
   7  Prefactor     7.8741        12.882        .12166E-06   -.25935E-04
   8  Prefactor     .10000E-03    4.4769        .13165E-05** at limit **
   9  Prefactor     26.297        85.034       -.62017E-05    .14770E-03
  10  Prefactor     .10000E-03    14.763       -.31381E-05** at limit **
  11  Prefactor     114.87        126.32       -.24907E-04    .60344E-02
  12  Prefactor     .10000E-03    75.430       -.58987E-04** at limit **
  13  norm          .66911        .66508        .81069E-06   -.32072E-04
  14  Prefactor     .30137E-01    106.42        .32629E-04   -.14499E-03
  15  Prefactor     13.218        40.201       -.50843E-05   -.49515E-04
  16  Prefactor     2.5574        69.789       -.64673E-05   -.59596E-05
  17  Prefactor     .10000E-03    86.704        .57026E-04** at limit **
  18  norm          .10000E-03    12.133        .25378E-05** at limit **
  19  Prefactor     .10000E-03    11.501        .11721E-03** at limit **
  20  Prefactor     62.004        121.09        .81768E-05    .46106E-02
  21  Prefactor     43.184        32.305        .11911E-04    .14394E-04
  22  norm          3.9934        8.7184        .47881E-04   -.28893E-03
  23  Prefactor     .10000E-03    22.247       -.13604E-05** at limit **
  24  Prefactor     .10000E-03    6.6325       -.14539E-05** at limit **
  25  Prefactor     187.78        113.68       -.92709E-04   -.13100E-02
  26  norm          .10000E-03    7.4094        .49934E-04** at limit **
  27  norm          16.879        16.923       -.21754E-05   -.14114E-04
  28  Prefactor     62.296        57.677        .60339E-05   -.61684E-04
  29  Prefactor     .10000E-03    43.504       -.22967E-05** at limit **
  30  Normalizat    1.3249        .37304        .67573E-05   -.11904E-03
  31  Prefactor     1.0091        .39187       -.39210E-05   -.90757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.20385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87409
  Prefactor  = 0.0001
  Prefactor  = 26.297
  Prefactor  = 0.0001
  Prefactor  = 114.867
  Prefactor  = 0.0001
  norm       = 0.669108
  Prefactor  = 0.0301375
  Prefactor  = 13.2176
  Prefactor  = 2.55738
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 62.004
  Prefactor  = 43.1836
  norm       = 3.99339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 187.781
  norm       = 0.000100002
  norm       = 16.879
  Prefactor  = 62.2957
  Prefactor  = 0.0001
  Normalizat = 1.32488
  Prefactor  = 1.0091
 **********
 **   18 **HESSE 
 **********

 FCN=   3039.493     FROM HESSE     STATUS=OK           710 CALLS     3891 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9308        .49542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    228.79        .10566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.903        .10695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2039        17.888        .40307E-02   -1.5210    
   5  Prefactor     .10000E-03    52.399        .10418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.963        .10096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8741        12.929        .35390E-02   -1.5147    
   8  Prefactor     .10000E-03    4.4491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.297        85.512        .20995E-02   -1.4682    
  10  Prefactor     .10000E-03    14.767        .91830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     114.87        181.60        .92005E-03   -1.3560    
  12  Prefactor     .10000E-03    14.146        .96132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66911        .66900        .78980E-02   -1.5544    
  14  Prefactor     .30137E-01    2.5958        .64771E-01   -1.5673    
  15  Prefactor     13.218        40.268        .28770E-02   -1.4981    
  16  Prefactor     2.5574        67.445        .64764E-02   -1.5388    
  17  Prefactor     .10000E-03    86.755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6661        .39702E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.004        191.85        .13242E-02   -1.4131    
  21  Prefactor     43.184        32.375        .15108E-02   -1.4393    
  22  norm          3.9934        10.688        .48633E-02   -1.5308    
  23  Prefactor     .10000E-03    22.142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     187.78        126.51        .74282E-03   -1.2959    
  26  norm          .10000E-03    2.2164        .40979E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.879        16.915        .24431E-02   -1.4886    
  28  Prefactor     62.296        57.569        .12829E-02   -1.4128    
  29  Prefactor     .10000E-03    43.425        .10486E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3249        .30820        .58635E-01   -.82827    
  31  Prefactor     1.0091        .32206        .73937E-01   -.92427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94613e-06
Minuit parameter uncertainties:
  1  1.46695e-05
  2  0.000643602
  3  1.34484e-05
  4  17.9036
  5  4.5048e-05
  6  2.11219e-05
  7  12.9339
  8  9.11067e-07
  9  85.9148
  10  3.56709e-06
  11  182.488
  12  9.44302e-05
  13  0.669006
  14  0.558492
  15  40.3512
  16  26.299
  17  0.000297709
  18  5.61838e-06
  19  0.000332467
  20  193.809
  21  32.3878
  22  10.693
  23  1.25564e-07
  24  1.83468e-06
  25  126.69
  26  0.000115466
  27  16.9194
  28  57.6208
  29  1.7721e-05
  30  0.308627
  31  0.322675
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  2.557e+00  2.630e+01  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.009e+00  3.227e-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.325e+00  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 167.409 37.587
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/568617/likelihoodResults_550886401_551145601_4FGL_J1109.6+3735_daily_bin1202.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): 0
logL (Free Index) = 3039.4931413
delta logL = 0.000132220476644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3039.49313848
delta logL = 0.000135034720643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5574       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8106       1.0000          .0000       10.000    
     3 'Normalizat'    1.3250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0092       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3039.493     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      262 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7230        61.365        .12765E-02   -.11689E-04
   2  Index         1.8024        2.6732        .22498E-02    .79411E-05
   3  Normalizat    1.3251        .33737        .25928E-03    .82871E-05
   4  Prefactor     1.0089        .37942        .32718E-03    .59939E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72299
  Index      = 1.80237
  Normalizat = 1.32514
  Prefactor  = 1.00894
 **********
 **   18 **HESSE 
 **********

 FCN=   3039.493     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7230        59.479        .51060E-04   -1.5378    
   2  Index         1.8024        2.6402        .89992E-04   -.69388    
   3  Normalizat    1.3251        .33770        .10371E-04   -.82819    
   4  Prefactor     1.0089        .37978        .13087E-04   -.92432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74363e-11
Minuit parameter uncertainties:
  1  25.4812
  2  2.91049
  3  0.338267
  4  0.380794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568617': 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): 0
logL (Free Index) = 3039.49311667
delta logL = 0.000156845586844

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  2.723e+00  2.548e+01  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.802e+00  2.910e+00  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.009e+00  3.808e-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.325e+00  3.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/568617/cmap_HighResolution_550886401_551145601_4FGL_J1109.6+3735_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-03 10:54:50.305885', job_id='568617', GAL2='1.01', fit_tolerance='1e-08', EG2='1.33', EG='1.32', time_epoch_completed='1630691690.31', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.57e-04', ts2='0.01', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1202' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:54:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 568617: <4FGL_J1109.6+3735_daily_bin1202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin1202 167.409 37.5868 550886401 551145601 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 :                                   627.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            813 sec.

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

