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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin325
RA = 166.502, Dec = 28.2254
tmin = 323568001, tmax = 323827201
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='511989', job_status='RUN', time_executed='2021-09-03 07:49:55.413196', time_epoch_executed='1630680595.41' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511989/ft1_4FGL_J1106.0+2813_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511989/ft1_4FGL_J1106.0+2813_daily_bin325.fits outfile=/scratch/kocevski/511989/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin325.fits ra=166.502 dec=28.2254 rad=12.0 tmin=323568001.0 tmax=323827201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.30
user 3.09
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.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/511989/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/511989/ltcube_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.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/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits
.....................!
real 13.87
user 13.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/511989/ltcube_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.fits outfile=/scratch/kocevski/511989/expmap_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.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/511989/ltcube_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.fits
.....................!
real 191.80
user 186.06
sys 5.40

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

Setting source of interest to:
4FGL J1106.0+2813 @ 166.502 28.2254

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits scfile=/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits outfile=/scratch/kocevski/511989/cmap_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.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.502 yref=28.2254 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits scfile=/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits outfile=/scratch/kocevski/511989/cmap_HighResolution_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.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.502 yref=28.2254 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511989/Model_4FGL_J1106.0+2813_daily_bin325.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/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits.....................!
real 51.85
user 50.50
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits', '/scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits', expMap='/scratch/kocevski/511989/expmap_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.fits', expCube='/scratch/kocevski/511989/ltcube_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511989/Model_4FGL_J1106.0+2813_daily_bin325.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.0+2813'

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.558e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/511989/ft1_filtered_4FGL_J1106.0+2813_daily_bin325.fits
Spacecraft file(s): /scratch/kocevski/511989/ft2_4FGL_J1106.0+2813_daily_bin325.fits
Exposure map: /scratch/kocevski/511989/expmap_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.fits
Exposure cube: /scratch/kocevski/511989/ltcube_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511989/Model_4FGL_J1106.0+2813_daily_bin325.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) = 5672.99927823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1312       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9545       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9362       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9890       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.6254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.096       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.927       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.400       1.0000         .10000E-03   10000.    
    22 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11313E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5110       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0575       1.0000         .10000E-03   10000.    
    27 'Prefactor '    49.448       1.0000         .10000E-03   10000.    
    28 'norm      '    4.7426       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82469       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5672.993     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3977 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.855        .20243E-07** at limit **
   2  Prefactor     8.1292        18.776        .30721E-06   -.21294E-04
   3  Prefactor     .10000E-03    1.5248        .10935E-07** at limit **
   4  Prefactor     1.4970        7.5103        .60089E-06   -.16392E-03
   5  Prefactor     .25875        1.4766       -.82435E-06   -.68915E-03
   6  Prefactor     7.9560        8.9212       -.13167E-06   -.23409E-03
   7  Prefactor     .10000E-03    9.0582       -.19487E-08** at limit **
   8  Prefactor     7.9363        8.5494       -.20916E-07   -.10407E-03
   9  Prefactor     .10000E-03    3.8011        .31348E-07** at limit **
  10  Prefactor     4.9887        12.264        .20978E-06   -.52751E-04
  11  norm          1.6502        .35428       -.17487E-08   -.10713E-02
  12  Prefactor     .53828        1.7231        .30104E-06   -.91076E-04
  13  Prefactor     .10000E-03    10.658        .80288E-07** at limit **
  14  Prefactor     .10000E-03    5.7246        .40572E-07** at limit **
  15  norm          9.6270        10.006       -.14181E-06   -.12064E-03
  16  Prefactor     .10000E-03    3.0818       -.79025E-08** at limit **
  17  norm          10.098        14.690       -.88936E-08   -.21544E-04
  18  Prefactor     4.1634        13.318        .75437E-06   -.22879E-04
  19  Prefactor     1.9868        3.3270       -.98360E-08   -.57077E-03
  20  Prefactor     27.947        59.888       -.19154E-05   -.14825E-04
  21  Prefactor     18.383        18.459        .44369E-06   -.10325E-03
  22  norm          .10000E-03    1.6824        .17713E-05** at limit **
  23  Prefactor     .10002E-03    25.993       -.48144E-05** at limit **
  24  Prefactor     2.5119        4.8628        .38893E-05   -.11477E-02
  25  Prefactor     .10000E-03    9.9329        .26650E-07** at limit **
  26  Prefactor     2.0578        1.8582        .60418E-07   -.10754E-03
  27  Prefactor     49.444        34.507       -.93579E-06   -.10860E-03
  28  norm          4.7426        1.7954        .77453E-08   -.93354E-04
  29  Normalizat    .82463        .18399       -.30436E-06   -.18168E-03
  30  Prefactor     1.0230        .19374       -.11784E-05   -.29338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.1292
  Prefactor  = 0.0001
  Prefactor  = 1.49697
  Prefactor  = 0.258745
  Prefactor  = 7.95597
  Prefactor  = 0.0001
  Prefactor  = 7.93633
  Prefactor  = 0.0001
  Prefactor  = 4.98869
  norm       = 1.65016
  Prefactor  = 0.538285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.62696
  Prefactor  = 0.0001
  norm       = 10.0978
  Prefactor  = 4.16345
  Prefactor  = 1.98676
  Prefactor  = 27.9468
  Prefactor  = 18.3829
  norm       = 0.000100002
  Prefactor  = 0.000100018
  Prefactor  = 2.51195
  Prefactor  = 0.0001
  Prefactor  = 2.05777
  Prefactor  = 49.4436
  norm       = 4.74259
  Normalizat = 0.824632
  Prefactor  = 1.02296
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.993     FROM HESSE     STATUS=OK           594 CALLS     4571 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1292        18.763        .14060E-03   -1.5138    
   3  Prefactor     .10000E-03    1.5270        .90802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4970        7.1457        .34994E-03   -1.5463    
   5  Prefactor     .25875        2.3650        .16415E-02   -1.5606    
   6  Prefactor     7.9560        8.8294        .14217E-03   -1.5144    
   7  Prefactor     .10000E-03    9.0655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9363        8.5274        .14233E-03   -1.5144    
   9  Prefactor     .10000E-03    3.8099        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9887        12.210        .18004E-03   -1.5261    
  11  norm          1.6502        .35482        .20054E-04   -1.5451    
  12  Prefactor     .53828        1.6986        .16934E-03   -1.5561    
  13  Prefactor     .10000E-03    10.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7308        .17599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6270        10.005        .12917E-03   -1.5087    
  16  Prefactor     .10000E-03    3.0864        .12908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.098        14.791        .12611E-03   -1.5072    
  18  Prefactor     4.1634        13.319        .19743E-03   -1.5300    
  19  Prefactor     1.9868        3.3216        .11504E-03   -1.5426    
  20  Prefactor     27.947        60.116        .75810E-04   -1.4650    
  21  Prefactor     18.383        18.461        .93372E-04   -1.4850    
  22  norm          .10000E-03    1.8825        .19702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    27.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.5119        5.1081        .11148E-02   -1.5391    
  25  Prefactor     .10000E-03    9.9673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0578        1.8476        .93562E-04   -1.5421    
  27  Prefactor     49.444        34.567        .57027E-04   -1.4300    
  28  norm          4.7426        1.7953        .59626E-04   -1.5272    
  29  Normalizat    .82463        .21146        .24803E-03   -.99161    
  30  Prefactor     1.0230        .22232        .26283E-03   -.91968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6832e-09
Minuit parameter uncertainties:
  1  9.23684e-06
  2  18.7771
  3  5.9232e-07
  4  6.54227
  5  1.5643
  6  8.8308
  7  2.74206e-05
  8  8.52871
  9  4.22156e-06
  10  12.2166
  11  0.354824
  12  1.69876
  13  1.06976e-05
  14  5.92005e-06
  15  10.0067
  16  1.16366e-07
  17  14.7967
  18  13.3284
  19  3.32194
  20  60.2462
  21  18.4669
  22  0.000137078
  23  0.00141342
  24  5.10899
  25  2.64195e-05
  26  1.84764
  27  34.5809
  28  1.79527
  29  0.211666
  30  0.222517
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  5.383e-01  1.699e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.023e+00  2.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  8.246e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 166.502 28.225
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511989/likelihoodResults_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.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) = 5672.92178592
delta logL = 0.0713854683563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5672.88863115
delta logL = 0.104540235461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0536       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8390       1.0000          .0000       10.000    
     3 'Normalizat'    .83040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5672.889     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0525        2.1362        .17119E-02    .17110E-03
   2  Index         1.8381        .93783        .14304E-01    .91896E-05
   3  Normalizat    .83000        .18667        .24727E-03    .72643E-05
   4  Prefactor     1.0153        .21976        .26364E-03   -.32667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05253
  Index      = 1.83807
  Normalizat = 0.829997
  Prefactor  = 1.01532
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.889     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0525        2.1328        .68477E-04   -1.5503    
   2  Index         1.8381        .93749        .57214E-03   -.68463    
   3  Normalizat    .83000        .18682        .98909E-05   -.98965    
   4  Prefactor     1.0153        .21995        .52728E-04   -.92220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96261e-10
Minuit parameter uncertainties:
  1  2.13298
  2  0.946899
  3  0.186966
  4  0.220142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511989': 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) = 5672.88862809
delta logL = 0.104543291874

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.053e+00  2.133e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.838e+00  9.469e-01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.015e+00  2.201e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  8.300e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 166.502 28.225

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/511989/cmap_HighResolution_323568001_323827201_4FGL_J1106.0+2813_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-03 08:03:42.568312', job_id='511989', GAL2='1.02', fit_tolerance='1e-08', EG2='0.83', EG='0.82', time_epoch_completed='1630681422.57', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.05e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='325' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:03:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 511989: <4FGL_J1106.0+2813_daily_bin325> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin325> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:47:35 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:49:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 07:49:42 2021
Terminated at Fri Sep  3 08:03:43 2021
Results reported at Fri Sep  3 08:03:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin325 166.502 28.2254 323568001 323827201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.0+2813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            968 sec.

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

