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


Performing analysis on: 4FGL_J1106.5-3646_daily_bin858
RA = 166.627, Dec = -36.7723
tmin = 461721601, tmax = 461980801
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='529986', job_status='RUN', time_executed='2021-09-03 08:45:07.566292', time_epoch_executed='1630683907.57' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529986/ft1_4FGL_J1106.5-3646_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529986/ft1_4FGL_J1106.5-3646_daily_bin858.fits outfile=/scratch/kocevski/529986/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin858.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=461721601.0 tmax=461980801.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.12
user 3.86
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.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/529986/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin858.fits evtable="EVENTS" outfile="/scratch/kocevski/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.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/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/529986/ltcube_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.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/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits
.....................!
real 15.17
user 14.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/529986/ltcube_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.fits outfile=/scratch/kocevski/529986/expmap_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.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/529986/ltcube_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.fits
.....................!
real 193.55
user 187.81
sys 5.34

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/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.fits scfile=/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits outfile=/scratch/kocevski/529986/cmap_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.fits scfile=/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits outfile=/scratch/kocevski/529986/cmap_HighResolution_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/529986/ft2_4FGL_J1106.5-3646_daily_bin858.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/529986/Model_4FGL_J1106.5-3646_daily_bin858.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/529986/ft1_filtered_4FGL_J1106.5-3646_daily_bin858.fits.....................!
real 78.98
user 77.46
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5217       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9797       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.8538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1705       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0981       1.0000         .10000E-03   10000.    
    17 'norm      '    14.431       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3732       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92535       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.

 FCN=   7272.349     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1864 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.390        .43296E-06** at limit **
   2  norm          .10000E-03    2.6334        .41241E-07** at limit **
   3  norm          .10000E-03    15.655        .16323E-05** at limit **
   4  Prefactor     .10000E-03    6.6466       -.23651E-06** at limit **
   5  norm          2.5215        3.0502       -.41009E-08   -.77421E-05
   6  Prefactor     2.9791        5.0671        .50892E-06   -.68926E-04
   7  Prefactor     .10000E-03    10.115       -.74463E-06** at limit **
   8  Prefactor     .10000E-03    3.5131       -.95800E-07** at limit **
   9  norm          .10000E-03    1.4186        .39095E-06** at limit **
  10  Prefactor     .10000E-03    3.8195        .70771E-07** at limit **
  11  norm          9.8461        17.833       -.33518E-06   -.14569E-03
  12  Prefactor     .10000E-03    13.755       -.55121E-06** at limit **
  13  Prefactor     1.5003        44.319        .22523E-05   -.24920E-04
  14  Prefactor     4.1217        165.78       -.21753E-04   -.20058E-03
  15  norm          .10000E-03    14.507       -.17749E-08** at limit **
  16  Prefactor     3.0961        11.639        .14178E-04   -.35991E-03
  17  norm          14.430        7.6182       -.38411E-06   -.98413E-04
  18  Prefactor     .10000E-03    8.2367        .55356E-06** at limit **
  19  norm          .10000E-03    8.5001        .36459E-06** at limit **
  20  Normalizat    1.3734        .24808       -.14011E-05   -.97617E-04
  21  Prefactor     .92525        .96937E-01   -.14320E-06   -.26918E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.52148
  Prefactor  = 2.97908
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.84608
  Prefactor  = 0.000100001
  Prefactor  = 1.50029
  Prefactor  = 4.12166
  norm       = 0.0001
  Prefactor  = 3.09615
  norm       = 14.4302
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.37344
  Prefactor  = 0.925247
 **********
 **   18 **HESSE 
 **********

 FCN=   7272.349     FROM HESSE     STATUS=OK           311 CALLS     2175 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6357        .13515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5215        3.0365        .15684E-03   -1.5390    
   6  Prefactor     2.9791        5.0522        .23477E-03   -1.5363    
   7  Prefactor     .10000E-03    10.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5214        .15609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4318        .19436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8250        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.8461        17.836        .12765E-03   -1.5080    
  12  Prefactor     .10000E-03    13.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5003        44.999        .34918E-03   -1.5463    
  14  Prefactor     4.1217        179.82        .19736E-03   -1.5302    
  15  norm          .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0961        11.702        .11520E-02   -1.5356    
  17  norm          14.430        7.6164        .10544E-03   -1.4948    
  18  Prefactor     .10000E-03    8.2698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.5137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3734        .29265        .35804E-03   -.81400    
  21  Prefactor     .92525        .11488        .16744E-03   -.95264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67288e-09
Minuit parameter uncertainties:
  1  0.000149326
  2  1.52085e-06
  3  0.000419557
  4  6.42966e-05
  5  3.0367
  6  5.05294
  7  0.000242052
  8  6.59274e-07
  9  6.63266e-06
  10  1.03712e-05
  11  17.8461
  12  0.000190726
  13  16.4462
  14  54.6229
  15  1.26412e-05
  16  11.7109
  17  7.61693
  18  0.000140032
  19  0.000101072
  20  0.29301
  21  0.114908
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  6.593e-07  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:  9.252e-01  1.149e-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.373e+00  2.930e-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: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/529986/likelihoodResults_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.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) = 7272.35005562
delta logL = -0.0013513211934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7272.34870426
delta logL = 3.09646566166e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0904       1.0000          .0000       10.000    
     3 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92522       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7272.349     FROM MIGRAD    STATUS=FAILED        85 CALLS      238 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    75.595        .15719E-02** at limit **
   2  Index         2.0015        8.9445        .50000        .22603E-04
   3  Normalizat    1.3734        .30423E-01    .35804E-03   -.57440E-04
   4  Prefactor     .92525        .12036E-01    .16744E-03   -.57658E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7272.349     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      370 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    75.595        .25125E-03** at limit **
   2  Index         2.0015        8.9445        .56849E-03    .22603E-04
   3  Normalizat    1.3734        .30423E-01    .67503E-05   -.57440E-04
   4  Prefactor     .92525        .12036E-01    .16308E-05   -.57658E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7272.349     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      413 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.321        .31438E-02** at limit **
   2  Index         1.7369        5.9247        .50000        .55184E-07
   3  Normalizat    1.3734        .26488E-01    .14322E-04    .30530E-03
   4  Prefactor     .92525        .10480E-01    .33488E-04    .67557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73686
  Normalizat = 1.37344
  Prefactor  = 0.925248
 **********
 **   18 **HESSE 
 **********

 FCN=   7272.349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    310.55        .62877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7369        8.8695        .50000       -.71105    
   3  Normalizat    1.3734        .65173E-01    .28643E-05   -.81400    
   4  Prefactor     .92525        .25773E-01    .66976E-05   -.95264    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33315e-10
Minuit parameter uncertainties:
  1  1.93274e-05
  2  1179.76
  3  0.0651768
  4  0.0257729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529986': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7272.34870288
delta logL = 1.42033604789e-06

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  1.933e-05  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  1.737e+00  1.180e+03  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:  9.252e-01  2.577e-02  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.373e+00  6.518e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/529986/cmap_HighResolution_461721601_461980801_4FGL_J1106.5-3646_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-03 08:57:11.211435', job_id='529986', GAL2='0.93', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630684631.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='858' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 529986: <4FGL_J1106.5-3646_daily_bin858> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin858 166.627 -36.7723 461721601 461980801 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 :                                   717.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            904 sec.

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

