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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1350
RA = 166.688, Dec = 36.3995
tmin = 589248001, tmax = 589507201
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='547730', job_status='RUN', time_executed='2021-09-03 09:38:53.649155', time_epoch_executed='1630687133.65' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547730/ft1_4FGL_J1106.7+3623_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547730/ft1_4FGL_J1106.7+3623_daily_bin1350.fits outfile=/scratch/kocevski/547730/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1350.fits ra=166.688 dec=36.3995 rad=12.0 tmin=589248001.0 tmax=589507201.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.20
user 2.96
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.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/547730/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/547730/ltcube_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.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/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits
.....................!
real 18.59
user 18.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/547730/ltcube_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.fits outfile=/scratch/kocevski/547730/expmap_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.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/547730/ltcube_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.fits
.....................!
real 192.88
user 187.08
sys 5.06

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 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J1106.7+3623 @ 166.688 36.3995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits scfile=/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits outfile=/scratch/kocevski/547730/cmap_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.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=166.688 yref=36.3995 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits scfile=/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits outfile=/scratch/kocevski/547730/cmap_HighResolution_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.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=166.688 yref=36.3995 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.83
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547730/Model_4FGL_J1106.7+3623_daily_bin1350.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/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits......................!
real 19.31
user 17.59
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits', '/scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits', expMap='/scratch/kocevski/547730/expmap_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.fits', expCube='/scratch/kocevski/547730/ltcube_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547730/Model_4FGL_J1106.7+3623_daily_bin1350.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.7+3623'

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.571e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/547730/ft1_filtered_4FGL_J1106.7+3623_daily_bin1350.fits
Spacecraft file(s): /scratch/kocevski/547730/ft2_4FGL_J1106.7+3623_daily_bin1350.fits
Exposure map: /scratch/kocevski/547730/expmap_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.fits
Exposure cube: /scratch/kocevski/547730/ltcube_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547730/Model_4FGL_J1106.7+3623_daily_bin1350.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) = 718.368585599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .83659E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20658       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13578E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    40.215       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.424       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10917E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.3051       1.0000         .10000E-03   10000.    
    27 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    89.514       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   686.5793     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     5126 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.588        .77436E-05** at limit **
   2  Prefactor     .10000E-03    145.79       -.61547E-04** at limit **
   3  Prefactor     .10000E-03    40.677       -.12523E-04** at limit **
   4  norm          .10000E-03    345.10        .11432E-03** at limit **
   5  Prefactor     .10000E-03    8107.9       -.71109E-02** at limit **
   6  Prefactor    10000.0        8056.5        .17053E-02** at limit **
   7  Prefactor     10000.        625.70       -.10813E-03** at limit **
   8  Prefactor     10000.        928.80       -.11111E-03** at limit **
   9  Prefactor     10000.        6609.6        .69244E-03** at limit **
  10  Prefactor     10000.        2139.4        .14030E-03** at limit **
  11  Prefactor     .10000E-03    720.71        .36069E-03** at limit **
  12  Prefactor     .10000E-03    801.01        .25196E-03** at limit **
  13  norm          .10000E-03    1.2481       -.15588E-09** at limit **
  14  Prefactor     .10000E-03    35.173        .25037E-05** at limit **
  15  Prefactor     .10000E-03    49.165        .10314E-04** at limit **
  16  Prefactor     .10000E-03    48.075        .21779E-04** at limit **
  17  norm          .10000E-03    74.188        .17035E-04** at limit **
  18  norm          40.237        84.968        .78800E-05   -.94963E-05
  19  Prefactor     3.1430        10.220       -.22097E-06   -.13338E-03
  20  Prefactor     .10000E-03    78.274        .36849E-04** at limit **
  21  Prefactor     .10000E-03    40.845       -.75933E-05** at limit **
  22  norm          .10000E-03    4.1284        .45658E-08** at limit **
  23  Prefactor     .10000E-03    22.313       -.44924E-07** at limit **
  24  Prefactor     25.424        21.578       -.22176E-06   -.22830E-04
  25  Prefactor     .10000E-03    105.26        .63742E-05** at limit **
  26  norm          3.3047        2.4388        .10603E-06    .37709E-03
  27  norm          .10000E-03    8.8621        .66330E-08** at limit **
  28  Prefactor     89.542        74.371        .19314E-05    .50379E-05
  29  Prefactor     .10000E-03    60.864       -.58275E-04** at limit **
  30  Normalizat    .10000E-01    .16812       -.48713E-06** at limit **
  31  Prefactor     1.1630        .35929       -.13909E-05    .22943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 40.2367
  Prefactor  = 3.14299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.424
  Prefactor  = 0.0001
  norm       = 3.3047
  norm       = 0.0001
  Prefactor  = 89.5418
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.16301
 **********
 **   18 **HESSE 
 **********

 FCN=   686.5793     FROM HESSE     STATUS=OK           600 CALLS     5726 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.615        .16519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    145.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.677        .16337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    345.10        .20875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8107.8        .20015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        8056.7        .18156E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10000.        625.76        .21310E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10000.        928.90        .20795E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10000.        6609.6        .19534E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10000.        2139.8        .20995E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    720.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    800.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2485        .28596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.173        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.166        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.075        .17763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    74.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          40.237        85.060        .63209E-04   -1.4438    
  19  Prefactor     3.1430        10.155        .13613E-03   -1.5353    
  20  Prefactor     .10000E-03    78.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.890        .16370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1500        .51979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.320        .12095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.424        21.485        .79446E-04   -1.4699    
  25  Prefactor     .10000E-03    105.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.3047        2.4450        .32591E-04   -1.5344    
  27  norm          .10000E-03    8.8653        .76211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     89.542        74.286        .42469E-04   -1.3813    
  29  Prefactor     .10000E-03    60.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .17141        .64565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1630        .35685        .25520E-03   -.87477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14406e-11
Minuit parameter uncertainties:
  1  1.81695e-05
  2  4.5832e-07
  3  2.59178e-06
  4  2.553e-06
  5  0.0014935
  6  0.0156127
  7  3.21586e-05
  8  3.7037e-05
  9  4.20231e-05
  10  1.68514e-05
  11  1.06298e-05
  12  0.000318462
  13  1.66893e-08
  14  3.87275e-05
  15  7.417e-07
  16  8.08679e-08
  17  1.82166e-07
  18  85.318
  19  10.161
  20  5.11e-06
  21  2.5598e-05
  22  9.35195e-07
  23  1.53223e-05
  24  21.4912
  25  1.4528e-05
  26  2.44512
  27  1.90833e-06
  28  74.3628
  29  1.48871e-05
  30  6.42271e-07
  31  0.357588
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  7.417e-07  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  1.163e+00  3.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
642   Normalization:  1.000e-02  6.423e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: 7.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547730/likelihoodResults_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.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) = 686.579371749
delta logL = -9.63063323525e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 686.579276181
delta logL = -7.38279823054e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9339       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6460E+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=   686.5793     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      285 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10667E-03    39.908        .14020E-01** at limit **
   2  Index         2.8072        5.7711        .50000        .94396E-05
   3  Normalizat    .10000E-01    .40490E-03    .64565E-02** at limit **
   4  Prefactor     1.1630        .15487E-01    .25520E-03   -.43444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106672
  Index      = 2.80718
  Normalizat = 0.01
  Prefactor  = 1.163
 **********
 **   18 **HESSE 
 **********

 FCN=   686.5793     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10667E-03    351.57        .14938E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8072        5.6860        .50000       -.45400    
   3  Normalizat    .10000E-01    .36728E-02    .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1630        .46641E-01    .51039E-04   -.87477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.18056e-09
Minuit parameter uncertainties:
  1  0.0974421
  2  679.13
  3  7.41758e-08
  4  0.0466426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547730': 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) = 686.579275993
delta logL = -5.50804202248e-07

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.067e-04  9.744e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.807e+00  6.791e+02  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  1.163e+00  4.664e-02  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
642   Normalization:  1.000e-02  7.418e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.688 36.400

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/547730/cmap_HighResolution_589248001_589507201_4FGL_J1106.7+3623_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-02', job_status='DONE', photon_flux_upper_limit='7.49e-07', time_completed='2021-09-03 09:46:44.302191', job_id='547730', GAL2='1.16', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630687604.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-5.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1350' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:46:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 547730: <4FGL_J1106.7+3623_daily_bin1350> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1350> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 09:31:40 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 09:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 09:35:41 2021
Terminated at Fri Sep  3 09:46:45 2021
Results reported at Fri Sep  3 09:46:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1350 166.688 36.3995 589248001 589507201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.7+3623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   429.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             236.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            905 sec.

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

