/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 113 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1106.7+3623_daily_bin39
RA = 166.688, Dec = 36.3995
tmin = 249436801, tmax = 249696001
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='534898', job_status='RUN', time_executed='2021-09-03 08:59:27.795705', time_epoch_executed='1630684767.8' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534898/ft1_4FGL_J1106.7+3623_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534898/ft1_4FGL_J1106.7+3623_daily_bin39.fits outfile=/scratch/kocevski/534898/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin39.fits ra=166.688 dec=36.3995 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.85
user 1.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.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/534898/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.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 1.78
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/534898/ltcube_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.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/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits
.....................!
real 16.63
user 14.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/534898/ltcube_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.fits outfile=/scratch/kocevski/534898/expmap_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.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/534898/ltcube_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.fits
.....................!
real 193.71
user 186.26
sys 4.04

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/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits scfile=/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits outfile=/scratch/kocevski/534898/cmap_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.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 1.24
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits scfile=/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits outfile=/scratch/kocevski/534898/cmap_HighResolution_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.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 1.03
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534898/Model_4FGL_J1106.7+3623_daily_bin39.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/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits.....................!
real 44.03
user 41.78
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits', '/scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits', expMap='/scratch/kocevski/534898/expmap_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.fits', expCube='/scratch/kocevski/534898/ltcube_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/534898/Model_4FGL_J1106.7+3623_daily_bin39.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/534898/ft1_filtered_4FGL_J1106.7+3623_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/534898/ft2_4FGL_J1106.7+3623_daily_bin39.fits
Exposure map: /scratch/kocevski/534898/expmap_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.fits
Exposure cube: /scratch/kocevski/534898/ltcube_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/534898/Model_4FGL_J1106.7+3623_daily_bin39.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) = 4658.53014212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9834       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1651       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85378       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.8243       1.0000         .10000E-03   10000.    
    18 'norm      '    16.990       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12987E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.026       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .34986       1.0000         .10000E-03   10000.    
    27 'norm      '    .13033E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    29.979       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77475       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1409       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=   4658.427     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     3633 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7854        .69350E-06** at limit **
   2  Prefactor     .10000E-03    11.546       -.74477E-07** at limit **
   3  Prefactor     6.9842        6.6704        .33398E-06   -.47108E-03
   4  norm          .10000E-03    2.7744       -.99900E-07** at limit **
   5  Prefactor     .10000E-03    25.683       -.25298E-06** at limit **
   6  Prefactor     .10000E-03    23.483        .13539E-06** at limit **
   7  Prefactor     1.1657        6.4291        .39142E-05    .15478E-03
   8  Prefactor     .85717        6.9081        .12717E-05   -.34673E-03
   9  Prefactor     .10000E-03    75.840        .99358E-06** at limit **
  10  Prefactor     .10000E-03    9.0408       -.10011E-06** at limit **
  11  Prefactor     14.992        105.58        .12586E-05    .20482E-04
  12  Prefactor     .10000E-03    10.332        .24100E-06** at limit **
  13  norm          1.6149        .37734        .33609E-08   -.43708E-03
  14  Prefactor     .10000E-03    .85907        .18131E-07** at limit **
  15  Prefactor     .10000E-03    4.7171       -.53965E-08** at limit **
  16  Prefactor     .10000E-03    4.8008        .21283E-07** at limit **
  17  norm          8.8239        9.2741        .95227E-07    .76964E-05
  18  norm          16.994        15.180        .33944E-06    .13975E-04
  19  Prefactor     .10000E-03    1.6050       -.82122E-07** at limit **
  20  Prefactor     .10000E-03    136.34       -.20521E-05** at limit **
  21  Prefactor     39.027        20.094        .20113E-06    .37302E-04
  22  norm          .10000E-03    1.4745       -.90570E-07** at limit **
  23  Prefactor     .10000E-03    4.0876        .54970E-08** at limit **
  24  Prefactor     .10002E-03    3.2179       -.67825E-06** at limit **
  25  Prefactor     .10000E-03    56.516       -.10782E-05** at limit **
  26  norm          .34968        .85648        .33156E-06    .47512E-03
  27  norm          .10000E-03    5.8491       -.60137E-06** at limit **
  28  Prefactor     .10000E-03    6.6928       -.56246E-07** at limit **
  29  Prefactor     29.988        30.442       -.15800E-06    .10723E-04
  30  Normalizat    .77471        .18879       -.18562E-05   -.18145E-03
  31  Prefactor     1.1409        .21123        .22042E-07   -.18912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.98424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16575
  Prefactor  = 0.857166
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.9923
  Prefactor  = 0.0001
  norm       = 1.61493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82392
  norm       = 16.9938
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 39.0275
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  norm       = 0.349682
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.9881
  Normalizat = 0.774715
  Prefactor  = 1.14088
 **********
 **   18 **HESSE 
 **********

 FCN=   4658.427     FROM HESSE     STATUS=OK           622 CALLS     4255 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9630        .24356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9842        5.7509        .13507E-03   -1.5179    
   4  norm          .10000E-03    2.7786        .11107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1657        6.7586        .32305E-03   -1.5492    
   8  Prefactor     .85717        11.030        .29654E-02   -1.5523    
   9  Prefactor     .10000E-03    76.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.992        105.33        .10353E-03   -1.4933    
  12  Prefactor     .10000E-03    10.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6149        .37793        .19579E-04   -1.5454    
  14  Prefactor     .10000E-03    .86323        .61767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7229        .14476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8027        .14605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.8239        9.2647        .13493E-03   -1.5114    
  18  norm          16.994        15.177        .97168E-04   -1.4883    
  19  Prefactor     .10000E-03    2.5394        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    138.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.027        20.061        .64160E-04   -1.4458    
  22  norm          .10000E-03    1.5194        .16141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0903        .13473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    12.468        .22125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    56.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .34968        .83559        .94008E-04   -1.5590    
  27  norm          .10000E-03    14.861        .31724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.6964        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     29.988        30.354        .73176E-04   -1.4612    
  30  Normalizat    .77471        .21937        .24466E-03   -1.0101    
  31  Prefactor     1.1409        .25095        .25044E-03   -.88170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36113e-09
Minuit parameter uncertainties:
  1  0.000237006
  2  8.1975e-06
  3  5.75133
  4  1.01724e-05
  5  0.000126864
  6  7.28505e-05
  7  5.61458
  8  6.15058
  9  0.000777777
  10  2.8393e-05
  11  79.6787
  12  6.36977e-05
  13  0.377927
  14  1.29383e-06
  15  7.06518e-07
  16  4.57533e-06
  17  9.26623
  18  15.1807
  19  4.9005e-05
  20  0.00126814
  21  20.0648
  22  2.45781e-06
  23  1.73902e-06
  24  0.000908491
  25  0.000568832
  26  0.835622
  27  0.000262407
  28  1.06321e-05
  29  30.3697
  30  0.219623
  31  0.251211
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  7.065e-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.141e+00  2.512e-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:  7.747e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: 6.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534898/likelihoodResults_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.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) = 4658.42791163
delta logL = -0.00100053576261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4658.42691097
delta logL = 1.19561264e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4887       1.0000          .0000       10.000    
     3 'Normalizat'    .77476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       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=   4658.427     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10333E-03    5.1435        .14714E-01** at limit **
   2  Index         2.3812        5.8515        .50000        .30481E-04
   3  Normalizat    .77472        .43334E-02    .24466E-03    .10548E-04
   4  Prefactor     1.1409        .53091E-02    .25044E-03   -.90790E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103335
  Index      = 2.38116
  Normalizat = 0.774715
  Prefactor  = 1.14088
 **********
 **   18 **HESSE 
 **********

 FCN=   4658.427     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10333E-03    81.894        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3812        5.8596        .50000       -.55127    
   3  Normalizat    .77472        .17557E-01    .97864E-05   -1.0101    
   4  Prefactor     1.1409        .21510E-01    .10018E-04   -.88170    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63984e-08
Minuit parameter uncertainties:
  1  0.0330955
  2  453.377
  3  0.0175569
  4  0.02151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534898': 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) = 4658.42691042
delta logL = 6.78804099152e-07

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.033e-04  3.310e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.381e+00  4.534e+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.141e+00  2.151e-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:  7.747e-01  1.756e-02  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/534898/cmap_HighResolution_249436801_249696001_4FGL_J1106.7+3623_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-03 09:12:25.719445', job_id='534898', GAL2='1.14', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630685545.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='39' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 534898: <4FGL_J1106.7+3623_daily_bin39> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin39> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 08:56:26 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:56:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 08:56:31 2021
Terminated at Fri Sep  3 09:12:27 2021
Results reported at Fri Sep  3 09:12:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin39 166.688 36.3995 249436801 249696001 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 :                                   764.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            961 sec.

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

