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


Performing analysis on: 4FGL_J1106.5-3646_daily_bin1000
RA = 166.627, Dec = -36.7723
tmin = 498528001, tmax = 498787201
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='530205', job_status='RUN', time_executed='2021-09-03 08:45:37.383832', time_epoch_executed='1630683937.38' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530205/ft1_4FGL_J1106.5-3646_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530205/ft1_4FGL_J1106.5-3646_daily_bin1000.fits outfile=/scratch/kocevski/530205/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin1000.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=498528001.0 tmax=498787201.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 5.14
user 4.66
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.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/530205/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/530205/ltcube_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.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/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits
.....................!
real 13.53
user 13.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/530205/ltcube_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.fits outfile=/scratch/kocevski/530205/expmap_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.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/530205/ltcube_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.fits
.....................!
real 191.23
user 186.01
sys 4.04

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/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits scfile=/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits outfile=/scratch/kocevski/530205/cmap_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.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 1.06
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits scfile=/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits outfile=/scratch/kocevski/530205/cmap_HighResolution_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.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 1.05
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530205/Model_4FGL_J1106.5-3646_daily_bin1000.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/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits.....................!
real 47.49
user 45.02
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits', '/scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits', expMap='/scratch/kocevski/530205/expmap_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.fits', expCube='/scratch/kocevski/530205/ltcube_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530205/Model_4FGL_J1106.5-3646_daily_bin1000.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/530205/ft1_filtered_4FGL_J1106.5-3646_daily_bin1000.fits
Spacecraft file(s): /scratch/kocevski/530205/ft2_4FGL_J1106.5-3646_daily_bin1000.fits
Exposure map: /scratch/kocevski/530205/expmap_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.fits
Exposure cube: /scratch/kocevski/530205/ltcube_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530205/Model_4FGL_J1106.5-3646_daily_bin1000.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) = 3592.08866391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.742       1.0000         .10000E-03   10000.    
     2 'norm      '    12.317       1.0000         .10000E-03   10000.    
     3 'norm      '    .10952E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29375E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8941       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5346       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12189E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7597       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6232       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74406       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.

 FCN=   3592.084     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2179 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.754        24.288        .16530E-02    .44142E-03
   2  norm          12.317        14.603        .28535E-02   -.34345E-04
   3  norm          .10002E-03    26.560        .90712E-02** at limit **
   4  Prefactor     .10000E-03    16.577        .90712E-02** at limit **
   5  norm          .10000E-03    3.2539        .90712E-02** at limit **
   6  Prefactor     .10000E-03    3.9208        .90712E-02** at limit **
   7  Prefactor     .10001E-03    25.570        .90712E-02** at limit **
   8  Prefactor     .10013E-03    13.823        .91689E-01** at limit **
   9  norm          3.6522        3.1966        .52845E-02    .11501E-03
  10  Prefactor     6.8944        12.897        .38200E-02    .91119E-03
  11  norm          .10000E-03    10.501        .90712E-02** at limit **
  12  Prefactor     .10004E-03    37.901        .90712E-02** at limit **
  13  Prefactor     7.5361        16.473        .36526E-02    .61906E-04
  14  Prefactor     .10040E-03    135.31        .90712E-02** at limit **
  15  norm          .10000E-03    32.290        .90712E-02** at limit **
  16  Prefactor     .10000E-03    38.984        .90712E-02** at limit **
  17  norm          10.559        12.970        .30826E-02    .14595E-02
  18  Prefactor     8.7619        28.080        .33858E-02    .57992E-04
  19  norm          .10003E-03    41.230        .90712E-02** at limit **
  20  Normalizat    1.6230        .35611        .73861E-01   -.46400E-04
  21  Prefactor     .74410        .13746        .42985E-01   -.85712E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.7535
  norm       = 12.3166
  norm       = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100129
  norm       = 3.65219
  Prefactor  = 6.89443
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 7.5361
  Prefactor  = 0.0001004
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 10.5586
  Prefactor  = 8.7619
  norm       = 0.000100029
  Normalizat = 1.62303
  Prefactor  = 0.744098
 **********
 **   18 **HESSE 
 **********

 FCN=   3592.084     FROM HESSE     STATUS=OK           315 CALLS     2494 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.754        24.301        .66118E-04   -1.4495    
   2  norm          12.317        14.616        .11414E-03   -1.5006    
   3  norm          .10002E-03    26.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2703        .10557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9346        .11587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    25.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10013E-03    133.02        .42618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6522        3.1922        .96034E-04   -1.5326    
  10  Prefactor     6.8944        12.894        .76400E-03   -1.5183    
  11  norm          .10000E-03    10.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    37.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5361        16.478        .14610E-03   -1.5159    
  14  Prefactor     .10040E-03    135.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    32.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.559        12.931        .61652E-03   -1.5058    
  18  Prefactor     8.7619        27.991        .13543E-03   -1.5116    
  19  norm          .10003E-03    41.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6230        .42720        .32680E-03   -.74378    
  21  Prefactor     .74410        .16542        .17808E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05436e-09
Minuit parameter uncertainties:
  1  24.3079
  2  14.6203
  3  0.00137904
  4  9.40461e-06
  5  6.46779e-06
  6  3.11232e-06
  7  0.00115941
  8  0.00830377
  9  3.19236
  10  12.8989
  11  5.65223e-06
  12  0.00232215
  13  16.4877
  14  0.0147742
  15  0.000371191
  16  0.00045143
  17  12.9346
  18  28.033
  19  0.00219039
  20  0.428172
  21  0.165526
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.001e-04  8.304e-03  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:  7.441e-01  1.655e-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:  1.623e+00  4.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/530205/likelihoodResults_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.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): 102
logL (Free Index) = 3592.08430534
delta logL = -3.49176689269e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3592.08430533
delta logL = -3.49064871443e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96341E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1037       1.0000          .0000       10.000    
     3 'Normalizat'    1.6230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74410       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.

 FCN=   3592.083     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      328 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47296        14.580        .59456E-01    .27998E-03
   2  Index         2.4958        .45373        .50000        .35323E-06
   3  Normalizat    1.6203        .12005E-01    .73913E-01    .31572E-05
   4  Prefactor     .74391        .46703E-02    .42985E-01    .72826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.472964
  Index      = 2.49577
  Normalizat = 1.6203
  Prefactor  = 0.743915
 **********
 **   18 **HESSE 
 **********

 FCN=   3592.083     FROM HESSE     STATUS=OK            35 CALLS      363 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47296        71.290        .34221E-02   -1.5570    
   2  Index         2.4958        6.2289        .47054E-02   -.52458    
   3  Normalizat    1.6203        .42190        .32704E-03   -.74452    
   4  Prefactor     .74391        .16331        .17811E-03   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81193e-08
Minuit parameter uncertainties:
  1  11.6263
  2  5.06184
  3  0.422829
  4  0.163413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530205': 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) = 3592.08268455
delta logL = 0.00158587031501

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  4.730e-01  1.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.496e+00  5.062e+00  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:  7.439e-01  1.634e-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:  1.620e+00  4.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.627 -36.772

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/530205/cmap_HighResolution_498528001_498787201_4FGL_J1106.5-3646_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-03 08:54:45.426067', job_id='530205', GAL2='0.74', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1630684485.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.59e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1000' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:54:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 530205: <4FGL_J1106.5-3646_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1106.5-3646_daily_bin1000> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 08:42:24 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:44:30 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:44:30 2021
Terminated at Fri Sep  3 08:54:46 2021
Results reported at Fri Sep  3 08:54:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin1000 166.627 -36.7723 498528001 498787201 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 :                                   534.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            742 sec.

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

