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


Performing analysis on: 4FGL_J1109.6+3735_daily_bin741
RA = 167.409, Dec = 37.5868
tmin = 431395201, tmax = 431654401
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='565541', job_status='RUN', time_executed='2021-09-03 10:31:35.472002', time_epoch_executed='1630690295.47' WHERE source_name='4FGL J1109.6+3735' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/565541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/565541/ft1_4FGL_J1109.6+3735_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/565541/ft2_4FGL_J1109.6+3735_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/565541/ft1_4FGL_J1109.6+3735_daily_bin741.fits outfile=/scratch/kocevski/565541/ft1_filteredMKT_4FGL_J1109.6+3735_daily_bin741.fits ra=167.409 dec=37.5868 rad=12.0 tmin=431395201.0 tmax=431654401.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 5.67
user 5.39
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/565541/ft1_filtered_4FGL_J1109.6+3735_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/565541/ft2_4FGL_J1109.6+3735_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/565541/ltcube_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.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/565541/ft2_4FGL_J1109.6+3735_daily_bin741.fits
.....................!
real 16.57
user 16.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/565541/ft1_filtered_4FGL_J1109.6+3735_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/565541/ft2_4FGL_J1109.6+3735_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/565541/ltcube_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.fits outfile=/scratch/kocevski/565541/expmap_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.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/565541/ltcube_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.fits
.....................!
real 193.52
user 188.34
sys 4.74

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/565541/ft1_filtered_4FGL_J1109.6+3735_daily_bin741.fits scfile=/scratch/kocevski/565541/ft2_4FGL_J1109.6+3735_daily_bin741.fits outfile=/scratch/kocevski/565541/cmap_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/565541/ft1_filtered_4FGL_J1109.6+3735_daily_bin741.fits scfile=/scratch/kocevski/565541/ft2_4FGL_J1109.6+3735_daily_bin741.fits outfile=/scratch/kocevski/565541/cmap_HighResolution_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=167.409 yref=37.5868 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5062       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    304.62       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.592       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.683       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6906       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .62849E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    7.0245       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5356       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0929       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74760       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=   4869.749     FROM MIGRAD    STATUS=CONVERGED   1438 CALLS     5463 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1954        6.3972        .13309E-03    .12352E-03
   2  Prefactor     7.9096        58.102        .14264E-03    .24787E-04
   3  Prefactor     3.5062        5.5586        .17618E-03    .56461E-04
   4  norm          .10000E-03    5.8493        .16447E-02** at limit **
   5  Prefactor     .10000E-03    32.750        .18142E-02** at limit **
   6  Prefactor     .10000E-03    12.387        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.9139        .13384E-02** at limit **
   8  Prefactor     2.5678        3.3705        .71118E-03   -.16077E-03
   9  Prefactor     36.878        48.092        .66001E-04    .63870E-04
  10  Prefactor     .10000E-03    8.3576        .18142E-02** at limit **
  11  Prefactor     304.64        172.49        .11638E-03    .37102E-04
  12  Prefactor     11.593        9.6900        .11766E-03    .14677E-03
  13  norm          1.1815        .37982        .22250E-04    .35204E-03
  14  Prefactor     .40849        1.8874        .18772E-03   -.45936E-03
  15  Prefactor     11.083        22.522        .60169E-03   -.11148E-05
  16  Prefactor     .10000E-03    23.446        .18142E-02** at limit **
  17  Prefactor     12.674        99.497        .11248E-03    .37398E-05
  18  norm          .10000E-03    6.1242        .16850E-02** at limit **
  19  Prefactor     3.8931        3.0842        .10344E-03    .21420E-03
  20  Prefactor     .10000E-03    68.639        .18142E-02** at limit **
  21  Prefactor     .10000E-03    11.294        .18142E-02** at limit **
  22  norm          .10000E-03    1.6578        .86898E-03** at limit **
  23  Prefactor     9.6889        17.763        .12873E-03    .27466E-04
  24  Prefactor     .10000E-03    2.8027        .11374E-02** at limit **
  25  Prefactor     .10009E-03    81.949        .14331    ** at limit **
  26  norm          7.0254        2.3811        .47408E-04    .47866E-03
  27  norm          .10000E-03    4.7374        .14823E-02** at limit **
  28  Prefactor     13.630        33.915        .10845E-03    .42559E-04
  29  Prefactor     2.4210        668.01        .25648E-02    .80184E-05
  30  Normalizat    1.0930        .25145        .23619E-03   -.16785E-03
  31  Prefactor     .74757        .25546        .31760E-03    .41993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.19535
  Prefactor  = 7.90963
  Prefactor  = 3.50625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56783
  Prefactor  = 36.8782
  Prefactor  = 0.0001
  Prefactor  = 304.642
  Prefactor  = 11.5927
  norm       = 1.18152
  Prefactor  = 0.408491
  Prefactor  = 11.0832
  Prefactor  = 0.000100001
  Prefactor  = 12.6744
  norm       = 0.0001
  Prefactor  = 3.89306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.68893
  Prefactor  = 0.0001
  Prefactor  = 0.000100092
  norm       = 7.02544
  norm       = 0.0001
  Prefactor  = 13.6298
  Prefactor  = 2.42098
  Normalizat = 1.09297
  Prefactor  = 0.747575
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.749     FROM HESSE     STATUS=OK           602 CALLS     6065 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1954        6.3967        .53236E-05   -1.5135    
   2  Prefactor     7.9096        58.051        .57057E-05   -1.5145    
   3  Prefactor     3.5062        5.5579        .70474E-05   -1.5333    
   4  norm          .10000E-03    5.8499        .32895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9148        .26769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5678        3.3699        .28447E-04   -1.5387    
   9  Prefactor     36.878        48.087        .13200E-04   -1.4493    
  10  Prefactor     .10000E-03    8.3577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     304.64        172.50        .23275E-04   -1.2199    
  12  Prefactor     11.593        9.6897        .47064E-05   -1.5027    
  13  norm          1.1815        .37971        .89001E-06   -1.5491    
  14  Prefactor     .40849        1.8868        .75089E-05   -1.5580    
  15  Prefactor     11.083        22.506        .24068E-04   -1.5042    
  16  Prefactor     .10000E-03    23.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.674        99.815        .44991E-05   -1.4996    
  18  norm          .10000E-03    6.1244        .33699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8931        3.0836        .41377E-05   -1.5313    
  20  Prefactor     .10000E-03    68.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6579        .17380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.6889        17.762        .51492E-05   -1.5085    
  24  Prefactor     .10000E-03    2.8029        .22749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10009E-03    87.301        .13800       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.0254        2.3647        .18963E-05   -1.5178    
  27  norm          .10000E-03    4.7375        .29647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.630        33.913        .43381E-05   -1.4969    
  29  Prefactor     2.4210        654.86        .10259E-03   -1.5397    
  30  Normalizat    1.0930        .25160        .47239E-04   -.89978    
  31  Prefactor     .74757        .25559        .63521E-04   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48433e-09
Minuit parameter uncertainties:
  1  6.39726
  2  42.9146
  3  5.55874
  4  2.31503e-06
  5  0.000125624
  6  4.06528e-06
  7  4.26638e-07
  8  3.37015
  9  48.1373
  10  1.22624e-05
  11  172.787
  12  9.69099
  13  0.379714
  14  1.75573
  15  22.5234
  16  0.000351179
  17  71.3005
  18  7.51252e-05
  19  3.08374
  20  0.000204659
  21  2.36885e-05
  22  1.69574e-05
  23  17.7719
  24  2.0187e-06
  25  0.00567079
  26  2.36468
  27  2.74027e-05
  28  33.961
  29  80.5387
  30  0.251877
  31  0.255993
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  3.512e-04  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.476e-01  2.560e-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.093e+00  2.519e-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: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/565541/likelihoodResults_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.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) = 4869.74916672
delta logL = -0.000203188464184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4869.74896274
delta logL = 7.87516000855e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9376       1.0000          .0000       10.000    
     3 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74757       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=   4868.255     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85112E-01    .82019        .28151E-02    .24988E-02
   2  Index         3.9497        1.4986        .54285E-01    .20699E-03
   3  Normalizat    .97935        .53801E-01    .55697E-01   -.34579E-03
   4  Prefactor     .82075        .61041E-01    .68598E-01   -.18035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0851121
  Index      = 3.9497
  Normalizat = 0.979351
  Prefactor  = 0.820748
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.255     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      318 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85112E-01    1.7241        .12636E-04   -1.5650    
   2  Index         3.9497        2.4489        .21726E-02   -.21164    
   3  Normalizat    .97935        .19706        .24630E-03   -.93725    
   4  Prefactor     .82075        .22070        .30351E-03   -.98968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.38437e-07
Minuit parameter uncertainties:
  1  0.765722
  2  2.56502
  3  0.197207
  4  0.220943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/565541': 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) = 4868.25540037
delta logL = 1.49356316052

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  8.511e-02  7.657e-01  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  3.950e+00  2.565e+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:  8.207e-01  2.209e-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:  9.794e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 167.409 37.587
Photon Index (Free Index): 3.95 +/- 2.57
Photon Flux (Free Index): 1.27e-07 +/- 8.14e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.40e-05

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/565541/cmap_HighResolution_431395201_431654401_4FGL_J1109.6+3735_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', comment='SUCCESS', energy_flux2='1.91e-05', dlogl='1.49e+00', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-03 10:47:34.173835', photon_index_error2='2.57', photon_index2='3.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='7.47e-08', energy_flux_error2='1.40e-05', EG='1.09', time_epoch_completed='1630691254.17', return_code='0', job_id='565541', GAL2='0.82', EG2='0.98', return_code2='102', photon_flux_error2='8.14e-08', ts2='3.15', photon_index='1.85' WHERE bin_id='741' AND source_name='4FGL J1109.6+3735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 10:47:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 565541: <4FGL_J1109.6+3735_daily_bin741> in cluster <slac> Done

Job <4FGL_J1109.6+3735_daily_bin741> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 10:31:14 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 10:31:18 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:31:18 2021
Terminated at Fri Sep  3 10:47:34 2021
Results reported at Fri Sep  3 10:47:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_daily_bin741 167.409 37.5868 431395201 431654401 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 :                                   953.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            980 sec.

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

