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


Performing analysis on: 4FGL_J1106.5-3646_daily_bin765
RA = 166.627, Dec = -36.7723
tmin = 437616001, tmax = 437875201
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='529862', job_status='RUN', time_executed='2021-09-03 08:45:15.820050', time_epoch_executed='1630683915.82' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529862/ft1_4FGL_J1106.5-3646_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529862/ft1_4FGL_J1106.5-3646_daily_bin765.fits outfile=/scratch/kocevski/529862/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin765.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=437616001.0 tmax=437875201.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 6.12
user 5.53
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.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/529862/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin765.fits evtable="EVENTS" outfile="/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.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.60
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/529862/ltcube_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.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/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits
.....................!
real 17.00
user 16.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/529862/ltcube_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.fits outfile=/scratch/kocevski/529862/expmap_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.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/529862/ltcube_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.fits
.....................!
real 191.93
user 186.41
sys 4.56

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1106.5-3646 @ 166.627 -36.7723

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits scfile=/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits outfile=/scratch/kocevski/529862/cmap_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.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.627 yref=-36.7723 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits scfile=/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits outfile=/scratch/kocevski/529862/cmap_HighResolution_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.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.627 yref=-36.7723 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/529862/Model_4FGL_J1106.5-3646_daily_bin765.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 G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits.....................!
real 65.51
user 62.26
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits', '/scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits', expMap='/scratch/kocevski/529862/expmap_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.fits', expCube='/scratch/kocevski/529862/ltcube_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/529862/Model_4FGL_J1106.5-3646_daily_bin765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.5-3646'

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.758e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.104e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  1.833e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/529862/ft1_filtered_4FGL_J1106.5-3646_daily_bin765.fits
Spacecraft file(s): /scratch/kocevski/529862/ft2_4FGL_J1106.5-3646_daily_bin765.fits
Exposure map: /scratch/kocevski/529862/expmap_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.fits
Exposure cube: /scratch/kocevski/529862/ltcube_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/529862/Model_4FGL_J1106.5-3646_daily_bin765.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) = 5668.7055318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.656       1.0000         .10000E-03   10000.    
     2 'norm      '    9.0030       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6883       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58996E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.090       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.084       1.0000         .10000E-03   10000.    
    15 'norm      '    25.847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.745       1.0000         .10000E-03   10000.    
    19 'norm      '    30.417       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82679       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0997       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+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=   5668.692     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     2555 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.656        16.179        .76180E-04   -.71633E-05
   2  norm          9.0015        6.3237        .13358E-03   -.57448E-04
   3  norm          .10000E-03    5.6318        .17409E-02** at limit **
   4  Prefactor     .10000E-03    19.455        .18142E-02** at limit **
   5  norm          .10000E-03    3.3920        .13376E-02** at limit **
   6  Prefactor     3.6909        7.1238        .21030E-03   -.59466E-04
   7  Prefactor     .10000E-03    104.40        .46617E-02** at limit **
   8  Prefactor     22.089        16.738        .85222E-04    .61364E-05
   9  norm          1.9448        2.6043        .13512E-03    .18730E-03
  10  Prefactor     .10000E-03    16.335        .18142E-02** at limit **
  11  norm          .10000E-03    7.7459        .18142E-02** at limit **
  12  Prefactor     .31391        46.658        .15703        .83708E-04
  13  Prefactor     .10000E-03    12.467        .18142E-02** at limit **
  14  Prefactor     18.006        51.379        .94182E-04    .41403E-04
  15  norm          25.859        30.925        .39397E-03   -.40399E-06
  16  Prefactor     .10000E-03    4.7604        .16039E-02** at limit **
  17  norm          3.0136        5.4924        .23064E-03    .11998E-03
  18  Prefactor     14.737        22.302        .10431E-03    .36295E-04
  19  norm          30.413        24.848        .72648E-04    .34428E-05
  20  Normalizat    .82646        .35928        .44918E-03    .10673E-03
  21  Prefactor     1.0999        .14038        .15887E-03    .24810E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.6559
  norm       = 9.00147
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.69091
  Prefactor  = 0.000100001
  Prefactor  = 22.0893
  norm       = 1.94481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.313914
  Prefactor  = 0.0001
  Prefactor  = 18.0058
  norm       = 25.8595
  Prefactor  = 0.0001
  norm       = 3.01363
  Prefactor  = 14.7369
  norm       = 30.4125
  Normalizat = 0.826464
  Prefactor  = 1.09988
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.692     FROM HESSE     STATUS=OK           305 CALLS     2860 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.656        16.180        .30472E-05   -1.4656    
   2  norm          9.0015        6.3238        .53431E-05   -1.5108    
   3  norm          .10000E-03    5.6324        .34818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3936        .26752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6909        7.1121        .84119E-05   -1.5324    
   7  Prefactor     .10000E-03    106.41        .18647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.089        16.739        .34089E-05   -1.4768    
   9  norm          1.9448        2.6042        .54046E-05   -1.5429    
  10  Prefactor     .10000E-03    16.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.7459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31391        46.242        .15814       -1.5596    
  13  Prefactor     .10000E-03    12.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.006        51.422        .37673E-05   -1.4859    
  15  norm          25.859        30.925        .15759E-04   -1.4690    
  16  Prefactor     .10000E-03    4.7605        .32077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0136        5.4921        .92255E-05   -1.5361    
  18  Prefactor     14.737        22.301        .41722E-05   -1.4940    
  19  norm          30.413        24.848        .14530E-04   -1.4604    
  20  Normalizat    .82646        .35921        .17967E-04   -.99094    
  21  Prefactor     1.0999        .14043        .31773E-04   -.89470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44467e-10
Minuit parameter uncertainties:
  1  16.1821
  2  6.32423
  3  3.19645e-05
  4  7.62633e-05
  5  1.7496e-05
  6  7.1137
  7  0.00051813
  8  16.7423
  9  2.60432
  10  2.14945e-05
  11  7.60662e-06
  12  7.62473
  13  2.18594e-05
  14  51.5491
  15  30.9445
  16  3.58208e-05
  17  5.49302
  18  22.3134
  19  24.8569
  20  0.360247
  21  0.140481
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  2.209e+01  1.674e+01  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.104e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  1.833e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.100e+00  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  8.265e-01  3.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 166.627 -36.772
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 9.10e-08 +/- 6.89e-08
Energy Flux (Fixed Index): 4.95e-05 +/- 3.75e-05

TS (Fixed Index): 2.87
Ra Dec: 166.627 -36.772
Photon Flux Upper Limit: 2.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/529862/likelihoodResults_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.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) = 5668.46749478
delta logL = 0.224391184875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.45415906
delta logL = 0.237726902365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.976       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5165       1.0000          .0000       10.000    
     3 'Normalizat'    .76698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+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=   5668.454     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.970        19.978        .10714E-03   -.52812E-03
   2  Index         2.5172        .75111        .41924E-02   -.20503E-03
   3  Normalizat    .76721        .35603        .46455E-03    .31949E-03
   4  Prefactor     1.1134        .13996        .15798E-03    .44662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9702
  Index      = 2.51722
  Normalizat = 0.767213
  Prefactor  = 1.11339
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.454     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.970        16.940        .42856E-05   -1.4960    
   2  Index         2.5172        .63628        .16770E-03   -.51963    
   3  Normalizat    .76721        .35275        .18582E-04   -1.0130    
   4  Prefactor     1.1134        .13913        .31596E-04   -.89040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46343e-09
Minuit parameter uncertainties:
  1  16.9461
  2  0.638583
  3  0.353809
  4  0.139177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529862': 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) = 5668.45415688
delta logL = 0.237729084816

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.397e+01  1.695e+01  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.517e+00  6.386e-01  0.000e+00  1.000e+01 (-1.000e+00)
329        Scale:  1.833e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.113e+00  1.392e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  7.672e-01  3.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 166.627 -36.772
Photon Index (Free Index): 2.52 +/- 0.64
Photon Flux (Free Index): 1.39e-07 +/- 1.10e-07
Energy Flux (Free Index): 3.97e-05 +/- 2.84e-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/529862/cmap_HighResolution_437616001_437875201_4FGL_J1106.5-3646_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', photon_flux='9.10e-08', energy_flux2='3.97e-05', photon_flux_error='6.89e-08', dlogl='2.38e-01', energy_flux='4.95e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-03 08:56:40.686734', photon_index_error2='0.64', photon_index2='2.52', ts='2.87', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='2.84e-05', EG='0.83', time_epoch_completed='1630684600.69', return_code='0', job_id='529862', GAL2='1.11', EG2='0.77', return_code2='0', energy_flux_error='3.75e-05', photon_flux_error2='1.10e-07', ts2='3.39', photon_index='2.10' WHERE bin_id='765' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:56:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 529862: <4FGL_J1106.5-3646_daily_bin765> in cluster <slac> Done

Job <4FGL_J1106.5-3646_daily_bin765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 08:41:58 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:42:03 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:42:03 2021
Terminated at Fri Sep  3 08:56:41 2021
Results reported at Fri Sep  3 08:56:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin765 166.627 -36.7723 437616001 437875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.5-3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            883 sec.

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

