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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1230
RA = 166.688, Dec = 36.3995
tmin = 558144001, tmax = 558403201
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='544742', job_status='RUN', time_executed='2021-09-03 09:29:29.856925', time_epoch_executed='1630686569.86' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544742

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544742/ft1_4FGL_J1106.7+3623_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544742/ft1_4FGL_J1106.7+3623_daily_bin1230.fits outfile=/scratch/kocevski/544742/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1230.fits ra=166.688 dec=36.3995 rad=12.0 tmin=558144001.0 tmax=558403201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.46
user 4.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.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/544742/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1230.fits evtable="EVENTS" outfile="/scratch/kocevski/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.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.56
user 0.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/544742/ltcube_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.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/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits
.....................!
real 16.16
user 15.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/544742/ltcube_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.fits outfile=/scratch/kocevski/544742/expmap_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.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/544742/ltcube_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.fits
.....................!
real 196.31
user 191.63
sys 4.07

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/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits scfile=/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits outfile=/scratch/kocevski/544742/cmap_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits scfile=/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits outfile=/scratch/kocevski/544742/cmap_HighResolution_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.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.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544742/Model_4FGL_J1106.7+3623_daily_bin1230.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/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits.!
real 13.61
user 12.38
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits', '/scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits', expMap='/scratch/kocevski/544742/expmap_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.fits', expCube='/scratch/kocevski/544742/ltcube_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/544742/Model_4FGL_J1106.7+3623_daily_bin1230.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/544742/ft1_filtered_4FGL_J1106.7+3623_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/544742/ft2_4FGL_J1106.7+3623_daily_bin1230.fits
Exposure map: /scratch/kocevski/544742/expmap_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.fits
Exposure cube: /scratch/kocevski/544742/ltcube_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/544742/Model_4FGL_J1106.7+3623_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 13.7792878582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 12.6643146162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8976       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7987       1.0000         .10000E-03   10000.    
     4 'norm      '    9.8877       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9052       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2770       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5909       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97485       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8795       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82484       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5710       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0008       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2038       1.0000         .10000E-03   10000.    
    18 'norm      '    127.96       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7869       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1795       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26423       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .84458       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.7364       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7046       1.0000         .10000E-03   10000.    
    27 'norm      '    5.2032       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1734       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.1470       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .11588E-06   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12.65498     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1622        1.1510         .0000         .0000    
   2  Prefactor     5.8976        1.0036         .0000         .0000    
   3  Prefactor     1.7987        1.0451         .0000         .0000    
   4  norm          9.8877        1.0013         .0000         .0000    
   5  Prefactor     4.5719        1.0061         .0000         .0000    
   6  Prefactor     7.9052        1.0020         .0000         .0000    
   7  Prefactor     3.4951        1.0106         .0000         .0000    
   8  Prefactor     1.2770        1.1104         .0000         .0000    
   9  Prefactor     1.5909        1.0607         .0000         .0000    
  10  Prefactor     1.0915        1.1950         .0000         .0000    
  11  Prefactor     7.0918        1.0025         .0000         .0000    
  12  Prefactor     .47702E-03    .42748        .52704E-06** at limit **
  13  norm          1.8795        1.0407         .0000         .0000    
  14  Prefactor     .11825E-03    .39263        .17565E-04** at limit **
  15  Prefactor     2.5710        1.0203         .0000         .0000    
  16  Prefactor     1.0008        1.3884         .0000         .0000    
  17  norm          9.2038        1.0015         .0000         .0000    
  18  norm          130.34        1.0091        .15326E-05   -.13526E-02
  19  Prefactor     1.7869        1.0458         .0000         .0000    
  20  Prefactor     7.1795        1.0024         .0000         .0000    
  21  Prefactor     .35086E-03    .26353       -.70194E-05** at limit **
  22  norm          1.6993        1.0516         .0000         .0000    
  23  Prefactor     .10996E-03    .13877        .36712E-05** at limit **
  24  Prefactor     .31095E-03    .39721        .73350E-05** at limit **
  25  Prefactor     9.7364        1.0013         .0000         .0000    
  26  norm          2.7046        1.0182         .0000         .0000    
  27  norm          5.2032        1.0047         .0000         .0000    
  28  Prefactor     .10941E-03    .12189        .67857E-04** at limit **
  29  Prefactor     8.1470        1.0019         .0000         .0000    
  30  Normalizat    .10000E-01    .25716        .52684E-05** at limit **
  31  Prefactor     .38858E-14    .25504       -.18756E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16222
  Prefactor  = 5.89762
  Prefactor  = 1.79868
  norm       = 9.88767
  Prefactor  = 4.57191
  Prefactor  = 7.9052
  Prefactor  = 3.49515
  Prefactor  = 1.27704
  Prefactor  = 1.59091
  Prefactor  = 1.09146
  Prefactor  = 7.09184
  Prefactor  = 0.000477023
  norm       = 1.87947
  Prefactor  = 0.000118252
  Prefactor  = 2.57096
  Prefactor  = 1.0008
  norm       = 9.20378
  norm       = 130.34
  Prefactor  = 1.78687
  Prefactor  = 7.17949
  Prefactor  = 0.000350859
  norm       = 1.6993
  Prefactor  = 0.000109962
  Prefactor  = 0.000310951
  Prefactor  = 9.73637
  norm       = 2.70459
  norm       = 5.20316
  Prefactor  = 0.000109407
  Prefactor  = 8.14703
  Normalizat = 0.01
  Prefactor  = 3.88578e-15
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12.65498     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     584.67        583.22         .0000       -1.5492    
   2  Prefactor     5.8976        1.0036         .0000       -1.5222    
   3  Prefactor     1.7987        1.0451         .0000       -1.5440    
   4  norm          9.8877        1.0013         .0000       -1.5079    
   5  Prefactor     4.5719        1.0061         .0000       -1.5280    
   6  Prefactor     7.9052        1.0020         .0000       -1.5146    
   7  Prefactor     3.4951        1.0106         .0000       -1.5334    
   8  Prefactor     1.2770        1.1104         .0000       -1.5482    
   9  Prefactor     1.5909        1.0607         .0000       -1.5456    
  10  Prefactor     1.0915        1.1950         .0000       -1.5499    
  11  Prefactor     7.0918        1.0025         .0000       -1.5175    
  12  Prefactor     .47702E-03    .42748        .52704E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8795        1.0407         .0000       -1.5434    
  14  Prefactor     .11825E-03    .39263        .17565E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5710        1.0203         .0000       -1.5387    
  16  Prefactor     1.0008        1.3884         .0000       -1.5508    
  17  norm          9.2038        1.0015         .0000       -1.5101    
  18  norm          130.34        1.0091        .15326E-05   -1.3420    
  19  Prefactor     1.7869        1.0458         .0000       -1.5441    
  20  Prefactor     7.1795        1.0024         .0000       -1.5172    
  21  Prefactor     .35086E-03    .26353       -.70194E-05   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6993        1.0516         .0000       -1.5447    
  23  Prefactor     .10996E-03    .13877        .36712E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .31095E-03    .39721        .73350E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.7364        1.0013         .0000       -1.5084    
  26  norm          2.7046        1.0182         .0000       -1.5379    
  27  norm          5.2032        1.0047         .0000       -1.5252    
  28  Prefactor     .10941E-03    .12189        .67857E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.1470        1.0019         .0000       -1.5137    
  30  Normalizat    .10000E-01    .25716        .52684E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .38858E-14    .25504       -.18756E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.11531e-10
Minuit parameter uncertainties:
  1  1.15107
  2  1.00364
  3  1.04507
  4  1.00128
  5  1.00611
  6  1.00201
  7  1.01062
  8  1.11046
  9  1.06067
  10  1.19499
  11  1.00251
  12  0.0253907
  13  1.04068
  14  0.00535407
  15  1.02029
  16  1.38847
  17  1.00148
  18  1.00915
  19  1.04578
  20  1.00244
  21  0.0162615
  22  1.05161
  23  0.00235152
  24  0.0183077
  25  1.00132
  26  1.0182
  27  1.00469
  28  0.00214162
  29  1.00189
  30  1.78228e-07
  31  6.28437e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 12.654984594

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.571e+00  1.020e+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

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  3.886e-15  6.284e-08  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  1.782e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.78e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544742/likelihoodResults_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.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): 101
logL (Free Index) = 12.6550278953
delta logL = -4.3301282231e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 12.6550278953
delta logL = -4.3301282231e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.5088       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12.65503     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.5088        1.0096        .23504         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.50877
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12.65503     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .70946        1.8678        .23504       -.52157    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.01896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544742': 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): 101
logL (Free Index) = 12.6550278953
delta logL = -4.3301282231e-05

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.571e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
332        Index:  2.509e+00  1.019e+00  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:  5.285e-08  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/544742/cmap_HighResolution_558144001_558403201_4FGL_J1106.7+3623_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.78e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-03 09:35:15.927159', job_id='544742', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630686915.93', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-4.33e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1230' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:35:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 544742: <4FGL_J1106.7+3623_daily_bin1230> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1230> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 09:22:48 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 09:25:37 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:25:37 2021
Terminated at Fri Sep  3 09:35:16 2021
Results reported at Fri Sep  3 09:35:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1230 166.688 36.3995 558144001 558403201 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 :                                   340.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            748 sec.

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

