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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1
RA = 166.688, Dec = 36.3995
tmin = 239587201, tmax = 239846401
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='533492', job_status='RUN', time_executed='2021-09-03 08:53:09.852124', time_epoch_executed='1630684389.85' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/533492

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/533492/ft1_4FGL_J1106.7+3623_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/533492/ft2_4FGL_J1106.7+3623_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/533492/ft1_4FGL_J1106.7+3623_daily_bin1.fits outfile=/scratch/kocevski/533492/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1.fits ra=166.688 dec=36.3995 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.15
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/533492/ft1_filtered_4FGL_J1106.7+3623_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/533492/ft2_4FGL_J1106.7+3623_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/533492/ltcube_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.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/533492/ft2_4FGL_J1106.7+3623_daily_bin1.fits
.....................!
real 17.72
user 16.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/533492/ft1_filtered_4FGL_J1106.7+3623_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/533492/ft2_4FGL_J1106.7+3623_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/533492/ltcube_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.fits outfile=/scratch/kocevski/533492/expmap_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.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/533492/ltcube_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.fits
.....................!
real 192.56
user 187.55
sys 4.38

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/533492/ft1_filtered_4FGL_J1106.7+3623_daily_bin1.fits scfile=/scratch/kocevski/533492/ft2_4FGL_J1106.7+3623_daily_bin1.fits outfile=/scratch/kocevski/533492/cmap_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/533492/ft1_filtered_4FGL_J1106.7+3623_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/533492/ft2_4FGL_J1106.7+3623_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/533492/Model_4FGL_J1106.7+3623_daily_bin1.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/533492/ft1_filtered_4FGL_J1106.7+3623_daily_bin1.fits.....................!
real 38.98
user 37.59
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16974E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31714       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.521       1.0000         .10000E-03   10000.    
    18 'norm      '    .10728E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5556       1.0000         .10000E-03   10000.    
    22 'norm      '    .10596E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .32238E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.3355       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97133       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .66589       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=   3904.404     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4193 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6737        .13483E-06** at limit **
   2  Prefactor     .10000E-03    93.386       -.13094E-05** at limit **
   3  Prefactor     .10000E-03    3.6221        .16406E-06** at limit **
   4  norm          1.6084        19.705        .41533E-05    .11354E-03
   5  Prefactor     16.849        54.561        .18614E-05    .75417E-04
   6  Prefactor     .10000E-03    12.129        .17247E-07** at limit **
   7  Prefactor     .10000E-03    3.4011       -.15135E-06** at limit **
   8  Prefactor     .10000E-03    1.8689        .13109E-07** at limit **
   9  Prefactor     15.892        45.921        .13938E-05    .23065E-04
  10  Prefactor     .10000E-03    12.213        .83426E-07** at limit **
  11  Prefactor     .10000E-03    59.173       -.20430E-06** at limit **
  12  Prefactor     .34420        12.188        .26657E-05   -.50867E-03
  13  norm          1.6310        .40677        .95965E-08    .18213E-03
  14  Prefactor     .55582        3.3604        .11644E-05    .15492E-04
  15  Prefactor     17.647        18.588        .24077E-06    .19617E-04
  16  Prefactor     .10000E-03    5.2660       -.56441E-08** at limit **
  17  norm          29.542        17.488        .19970E-07   -.45961E-05
  18  norm          .10000E-03    9.1321       -.26931E-06** at limit **
  19  Prefactor     .10000E-03    .78422       -.51120E-07** at limit **
  20  Prefactor     .10000E-03    14.179       -.13202E-06** at limit **
  21  Prefactor     8.5608        17.048        .35969E-05    .20936E-03
  22  norm          .10000E-03    1.7764       -.30004E-06** at limit **
  23  Prefactor     .10000E-03    12.191       -.53955E-06** at limit **
  24  Prefactor     .10000E-03    5.3628       -.37218E-06** at limit **
  25  Prefactor     .10000E-03    123.49       -.10167E-05** at limit **
  26  norm          .10000E-03    .40380       -.81649E-07** at limit **
  27  norm          7.3338        7.2718       -.17893E-07   -.31788E-05
  28  Prefactor     .10000E-03    18.666       -.23994E-06** at limit **
  29  Prefactor     .10000E-03    17.327       -.10704E-07** at limit **
  30  Normalizat    .97072        .18046       -.13033E-05    .61724E-04
  31  Prefactor     .66632        .19970        .58447E-06   -.12910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.60838
  Prefactor  = 16.8491
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 15.8918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.344204
  norm       = 1.63098
  Prefactor  = 0.55582
  Prefactor  = 17.6467
  Prefactor  = 0.0001
  norm       = 29.5418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56082
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.33383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.970723
  Prefactor  = 0.666315
 **********
 **   18 **HESSE 
 **********

 FCN=   3904.404     FROM HESSE     STATUS=OK           618 CALLS     4811 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7304        .19901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    94.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1602        .22707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6084        19.583        .33146E-03   -1.5454    
   5  Prefactor     16.849        54.624        .97749E-04   -1.4887    
   6  Prefactor     .10000E-03    12.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.198        .21081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8739        .83375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.892        45.063        .10047E-03   -1.4910    
  10  Prefactor     .10000E-03    12.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .34420        32.244        .33786E-02   -1.5591    
  13  norm          1.6310        .40771        .18776E-04   -1.5453    
  14  Prefactor     .55582        3.4085        .20904E-03   -1.5559    
  15  Prefactor     17.647        18.629        .95296E-04   -1.4868    
  16  Prefactor     .10000E-03    5.2670        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.542        17.481        .73739E-04   -1.4620    
  18  norm          .10000E-03    9.2362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .78800        .54002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.5608        17.175        .68523E-03   -1.5123    
  22  norm          .10000E-03    2.9846        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5920        .28239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    126.06        .21359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .41347        .77343E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.3338        7.2738        .14809E-03   -1.5166    
  28  Prefactor     .10000E-03    18.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97072        .20925        .19723E-03   -.94018    
  31  Prefactor     .66632        .23551        .27648E-03   -1.0486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19924e-09
Minuit parameter uncertainties:
  1  2.75572e-06
  2  0.000638609
  3  7.39643e-05
  4  11.2286
  5  54.7863
  6  2.75195e-06
  7  0.000432623
  8  1.74864e-06
  9  45.1595
  10  9.51484e-06
  11  4.99981e-05
  12  6.66562
  13  0.407712
  14  2.75281
  15  18.6351
  16  3.1697e-07
  17  17.4843
  18  2.90779e-05
  19  4.83202e-07
  20  3.35e-05
  21  17.1844
  22  3.77592e-05
  23  8.95594e-05
  24  1.8705e-05
  25  7.17949e-05
  26  1.10756e-07
  27  7.27471
  28  1.63404e-05
  29  1.4336e-05
  30  0.209423
  31  0.235864
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.765e+01  1.864e+01  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:  6.663e-01  2.359e-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:  9.707e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 166.688 36.400
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/533492/likelihoodResults_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.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) = 3903.21910164
delta logL = 1.18513645305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3903.19389938
delta logL = 1.21033871048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34852       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9663       1.0000          .0000       10.000    
     3 'Normalizat'    .87659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74844       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.

 FCN=   3903.194     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34462        3.1835        .44784E-02    .87317E-03
   2  Index         4.9715        2.4740        .70586E-01    .13107E-03
   3  Normalizat    .87654        .55862E-01    .44602E-01    .62032E-05
   4  Prefactor     .74866        .65973E-01    .43042E-01    .10605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.344623
  Index      = 4.9715
  Normalizat = 0.876545
  Prefactor  = 0.748657
 **********
 **   18 **HESSE 
 **********

 FCN=   3903.194     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34462        5.5245        .20037E-04   -1.5591    
   2  Index         4.9715        3.3979        .29043E-02   -.57007E-02
   3  Normalizat    .87654        .18212        .20537E-03   -.97289    
   4  Prefactor     .74866        .21335        .26210E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78914e-10
Minuit parameter uncertainties:
  1  2.75952
  2  3.73598
  3  0.18225
  4  0.21358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/533492': 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) = 3903.19389677
delta logL = 1.21034131905

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  3.446e-01  2.760e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  4.971e+00  3.736e+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:  7.487e-01  2.136e-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:  8.765e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 166.688 36.400
Photon Index (Free Index): 4.97 +/- 3.74
Photon Flux (Free Index): 1.25e-07 +/- 7.03e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.08e-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/533492/cmap_HighResolution_239587201_239846401_4FGL_J1106.7+3623_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='1.66e-05', photon_flux_error='4.93e-08', dlogl='1.21e+00', energy_flux='1.34e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-03 09:05:38.245432', photon_index_error2='3.74', photon_index2='4.97', ts='1.59', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.08e-05', EG='0.97', time_epoch_completed='1630685138.25', return_code='0', job_id='533492', GAL2='0.75', EG2='0.88', return_code2='102', energy_flux_error='1.42e-05', photon_flux_error2='7.03e-08', ts2='4.30', photon_index='2.51' WHERE bin_id='1' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:05:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 533492: <4FGL_J1106.7+3623_daily_bin1> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 08:51:25 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:52: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 08:52:41 2021
Terminated at Fri Sep  3 09:05:53 2021
Results reported at Fri Sep  3 09:05:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1 166.688 36.3995 239587201 239846401 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            868 sec.

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

