aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 234 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1692
RA = 166.688, Dec = 36.3995
tmin = 677894401, tmax = 678153601
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='405075', job_status='RUN', time_executed='2022-06-29 04:28:12.326032', time_epoch_executed='1656502092.33' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405075

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405075/ft1_4FGL_J1106.7+3623_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405075/ft1_4FGL_J1106.7+3623_daily_bin1692.fits outfile=/scratch/kocevski/405075/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1692.fits ra=166.688 dec=36.3995 rad=12.0 tmin=677894401.0 tmax=678153601.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.21
sys 0.23

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

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

Number of photons that the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405075/ft1_filtered_4FGL_J1106.7+3623_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405075/ltcube_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.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/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits
.....................!
real 15.51
user 15.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405075/ft1_filtered_4FGL_J1106.7+3623_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405075/ltcube_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.fits outfile=/scratch/kocevski/405075/expmap_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.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/405075/ltcube_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.fits
.....................!
real 193.30
user 187.13
sys 5.55

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/405075/ft1_filtered_4FGL_J1106.7+3623_daily_bin1692.fits scfile=/scratch/kocevski/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits outfile=/scratch/kocevski/405075/cmap_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405075/ft1_filtered_4FGL_J1106.7+3623_daily_bin1692.fits scfile=/scratch/kocevski/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits outfile=/scratch/kocevski/405075/cmap_HighResolution_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405075/ft1_filtered_4FGL_J1106.7+3623_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405075/ft2_4FGL_J1106.7+3623_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405075/Model_4FGL_J1106.7+3623_daily_bin1692.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/405075/ft1_filtered_4FGL_J1106.7+3623_daily_bin1692.fits.....................!
real 59.25
user 57.88
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7182       1.0000         .10000E-03   10000.    
     4 'norm      '    9.1557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12870E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.037       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6444       1.0000         .10000E-03   10000.    
    15 'Prefactor '    91.073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.168       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.128       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0456       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.3773       1.0000         .10000E-03   10000.    
    25 'Prefactor '    86.970       1.0000         .10000E-03   10000.    
    26 'norm      '    .65656       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.252       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1214       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92625       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=   6608.169     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     4112 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8927        6.2382       -.33009E-07   -.14352E-03
   2  Prefactor     44.931        37.856       -.12946E-05   -.20232E-04
   3  Prefactor     2.7189        6.6372       -.37098E-08   -.12942E-03
   4  norm          9.1567        11.264        .12917E-05   -.28643E-03
   5  Prefactor     .10000E-03    11.481       -.24275E-06** at limit **
   6  Prefactor     20.721        29.684       -.22093E-05   -.38977E-04
   7  Prefactor     .10000E-03    1.5685       -.14962E-07** at limit **
   8  Prefactor     .10000E-03    4.0610       -.32955E-06** at limit **
   9  Prefactor     .10000E-03    28.667       -.16401E-05** at limit **
  10  Prefactor     .10000E-03    6.5641       -.57605E-07** at limit **
  11  Prefactor     .10000E-03    49.873       -.87598E-06** at limit **
  12  Prefactor     25.038        16.809       -.37817E-06    .24044E-04
  13  norm          1.5719        .43880       -.30935E-07    .20676E-03
  14  Prefactor     2.6439        3.8691        .10847E-06   -.13776E-03
  15  Prefactor     91.085        28.811        .46818E-06    .17393E-03
  16  Prefactor     19.170        21.080       -.18660E-06   -.26975E-06
  17  norm          .10000E-03    14.228        .65263E-06** at limit **
  18  norm          .10000E-03    6.8500        .15121E-06** at limit **
  19  Prefactor     .10000E-03    1.7536       -.63079E-07** at limit **
  20  Prefactor     47.609        42.225       -.20525E-07    .37095E-04
  21  Prefactor     30.129        24.100       -.24201E-06    .53682E-04
  22  norm          2.5989        3.1846        .43027E-06    .22875E-03
  23  Prefactor     3.0390        20.086        .20146E-07   -.25190E-04
  24  Prefactor     6.3757        6.1647        .16045E-05   -.75452E-03
  25  Prefactor     86.923        61.707       -.82630E-06   -.11710E-03
  26  norm          .65775        .98738       -.15333E-05   -.97097E-03
  27  norm          .10000E-03    3.7445        .10816E-07** at limit **
  28  Prefactor     26.232        37.229       -.41288E-05   -.78274E-04
  29  Prefactor     .10000E-03    39.147        .28165E-05** at limit **
  30  Normalizat    1.1215        .19775        .30387E-05   -.81407E-04
  31  Prefactor     .92614        .20933       -.20722E-05    .22243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8927
  Prefactor  = 44.9307
  Prefactor  = 2.71891
  norm       = 9.15668
  Prefactor  = 0.0001
  Prefactor  = 20.7205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0378
  norm       = 1.57186
  Prefactor  = 2.64391
  Prefactor  = 91.0853
  Prefactor  = 19.1703
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6087
  Prefactor  = 30.1294
  norm       = 2.59892
  Prefactor  = 3.03901
  Prefactor  = 6.37568
  Prefactor  = 86.9235
  norm       = 0.65775
  norm       = 0.0001
  Prefactor  = 26.2317
  Prefactor  = 0.000100001
  Normalizat = 1.12152
  Prefactor  = 0.926138
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.169     FROM HESSE     STATUS=OK           626 CALLS     4738 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8927        6.0115        .23319E-03   -1.5368    
   2  Prefactor     44.931        37.813        .59809E-04   -1.4366    
   3  Prefactor     2.7189        6.3798        .24702E-03   -1.5378    
   4  norm          9.1567        11.208        .66227E-03   -1.5103    
   5  Prefactor     .10000E-03    11.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.721        29.524        .87964E-04   -1.4797    
   7  Prefactor     .10000E-03    1.5803        .99397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0742        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.038        16.677        .80057E-04   -1.4707    
  13  norm          1.5719        .44107        .25672E-04   -1.5457    
  14  Prefactor     2.6439        3.8237        .16450E-03   -1.5383    
  15  Prefactor     91.085        28.944        .42107E-04   -1.3796    
  16  Prefactor     19.170        21.155        .91483E-04   -1.4832    
  17  norm          .10000E-03    14.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7878        .20948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     47.609        42.104        .58114E-04   -1.4327    
  21  Prefactor     30.129        23.748        .72995E-04   -1.4610    
  22  norm          2.5989        3.1543        .14145E-03   -1.5386    
  23  Prefactor     3.0390        19.407        .23249E-03   -1.5359    
  24  Prefactor     6.3757        6.1059        .79470E-03   -1.5203    
  25  Prefactor     86.923        61.315        .21540E-03   -1.3841    
  26  norm          .65775        .95649        .99506E-03   -1.5546    
  27  norm          .10000E-03    3.7505        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.232        37.147        .78186E-04   -1.4683    
  29  Prefactor     .10000E-03    39.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1215        .23091        .26649E-03   -.89064    
  31  Prefactor     .92614        .24312        .32896E-03   -.95234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27722e-09
Minuit parameter uncertainties:
  1  6.01274
  2  37.8331
  3  6.38135
  4  11.2101
  5  1.72002e-05
  6  29.5452
  7  3.14977e-06
  8  3.17382e-05
  9  0.000141422
  10  9.0465e-06
  11  0.000150608
  12  16.6803
  13  0.441075
  14  3.82404
  15  28.9482
  16  21.1629
  17  5.78044e-05
  18  9.347e-06
  19  1.13934e-05
  20  42.1302
  21  23.7559
  22  3.15455
  23  15.3665
  24  6.10654
  25  61.3601
  26  0.956513
  27  1.06272e-05
  28  37.1793
  29  0.000421051
  30  0.231117
  31  0.243411
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  9.109e+01  2.895e+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:  9.261e-01  2.434e-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.122e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.06
Ra Dec: 166.688 36.400
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.41e-07 +/- 7.66e-08
Energy Flux (Fixed Index): 6.94e-05 +/- 2.21e-05

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) = 6608.0041099
delta logL = 0.164640674558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6608.0015003
delta logL = 0.167250273292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.34       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3453       1.0000          .0000       10.000    
     3 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90736       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=   6608.002     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      306 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.34        41.224        .38998E-04   -.84949E-04
   2  Index         2.3453        .28541        .36684E-02    .54125E-03
   3  Normalizat    1.1471        .21864        .26419E-03   -.56287E-04
   4  Prefactor     .90725        .24225        .33206E-03   -.60155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.34
  Index      = 2.3453
  Normalizat = 1.14714
  Prefactor  = 0.907245
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.002     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.34        40.418        .77996E-05   -1.3642    
   2  Index         2.3453        .27961        .73368E-03   -.55971    
   3  Normalizat    1.1471        .21868        .10567E-04   -.88252    
   4  Prefactor     .90725        .24236        .13282E-04   -.95888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28069e-11
Minuit parameter uncertainties:
  1  40.4282
  2  0.27981
  3  0.218858
  4  0.242653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405075': 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): 0
logL (Free Index) = 6608.00150016
delta logL = 0.167250415701

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.063e+02  4.043e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.345e+00  2.798e-01  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:  9.072e-01  2.427e-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.147e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.20
Ra Dec: 166.688 36.400
Photon Index (Free Index): 2.35 +/- 0.28
Photon Flux (Free Index): 2.14e-07 +/- 8.22e-08
Energy Flux (Free Index): 7.56e-05 +/- 2.65e-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/405075/cmap_HighResolution_677894401_678153601_4FGL_J1106.7+3623_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-07', energy_flux2='7.56e-05', photon_flux_error='7.66e-08', dlogl='1.67e-01', energy_flux='6.94e-05', photon_flux2='2.14e-07', job_status='DONE', time_completed='2022-06-29 04:42:55.929929', photon_index_error2='0.28', photon_index2='2.35', ts='27.06', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.12', time_epoch_completed='1656502975.93', return_code='0', job_id='405075', GAL2='0.91', EG2='1.15', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='8.22e-08', ts2='28.20', photon_index='2.51' WHERE bin_id='1692' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:42:55 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 405116: <4FGL_J1106.7+3623_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:33 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:24:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:24:43 2022
Terminated at Wed Jun 29 04:39:56 2022
Results reported at Wed Jun 29 04:39:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1692 166.688 36.3995 677894401 678153601 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 :                                   877.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             314.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            16403 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 405075: <4FGL_J1106.7+3623_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:29 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:24:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:24:10 2022
Terminated at Wed Jun 29 04:42:56 2022
Results reported at Wed Jun 29 04:42:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1692 166.688 36.3995 677894401 678153601 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 :                                   882.54 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             270.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1126 sec.
    Turnaround time :                            16587 sec.

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

