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


Performing analysis on: 4FGL_J1106.5-3646_daily_bin270
RA = 166.627, Dec = -36.7723
tmin = 309312001, tmax = 309571201
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='525294', job_status='RUN', time_executed='2021-09-03 08:30:08.528275', time_epoch_executed='1630683008.53' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525294/ft1_4FGL_J1106.5-3646_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525294/ft1_4FGL_J1106.5-3646_daily_bin270.fits outfile=/scratch/kocevski/525294/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin270.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=309312001.0 tmax=309571201.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.07
user 3.84
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.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/525294/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/525294/ltcube_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.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/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits
.....................!
real 16.51
user 16.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/525294/ltcube_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.fits outfile=/scratch/kocevski/525294/expmap_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.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/525294/ltcube_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.fits
.....................!
real 192.79
user 187.08
sys 5.36

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/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.fits scfile=/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits outfile=/scratch/kocevski/525294/cmap_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.fits scfile=/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits outfile=/scratch/kocevski/525294/cmap_HighResolution_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/525294/ft2_4FGL_J1106.5-3646_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/525294/Model_4FGL_J1106.5-3646_daily_bin270.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/525294/ft1_filtered_4FGL_J1106.5-3646_daily_bin270.fits.....................!
real 73.69
user 72.17
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1572       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11373E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    42.341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31204E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    17.337       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2593       1.0000         .10000E-03   10000.    
    19 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3900       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95001       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=   6622.369     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2172 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1657        .69329E-07** at limit **
   2  norm          .10000E-03    3.2983       -.21667E-07** at limit **
   3  norm          6.6788        11.090       -.34043E-05   -.81154E-04
   4  Prefactor     .10000E-03    6.2742        .22216E-05** at limit **
   5  norm          .10000E-03    2.0958       -.15498E-07** at limit **
   6  Prefactor     7.6428        5.2409        .12257E-05    .20386E-04
   7  Prefactor     4.1625        11.623       -.89928E-05   -.13141E-03
   8  Prefactor     .10000E-03    6.6735       -.37376E-06** at limit **
   9  norm          1.3128        2.2076        .32550E-06   -.51737E-03
  10  Prefactor     .10000E-03    20.340        .30667E-06** at limit **
  11  norm          42.369        32.807       -.15204E-04   -.28190E-05
  12  Prefactor     41.457        43.193        .98060E-05    .14767E-04
  13  Prefactor     .10000E-03    10.343       -.18560E-05** at limit **
  14  Prefactor     .10000E-03    392.70       -.37421E-04** at limit **
  15  norm          17.336        24.538        .27244E-05    .15912E-05
  16  Prefactor     .10000E-03    6.1984       -.18141E-05** at limit **
  17  norm          10.292        10.199       -.17667E-05   -.35519E-04
  18  Prefactor     4.2598        46.600        .33351E-05   -.12306E-04
  19  norm          .10000E-03    10.598        .17258E-05** at limit **
  20  Normalizat    1.3900        .28516        .14339E-05    .10242E-03
  21  Prefactor     .95001        .10795        .94391E-06    .12600E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.67877
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.64275
  Prefactor  = 4.16247
  Prefactor  = 0.0001
  norm       = 1.3128
  Prefactor  = 0.000100002
  norm       = 42.3694
  Prefactor  = 41.4567
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 17.3358
  Prefactor  = 0.0001
  norm       = 10.2917
  Prefactor  = 4.25977
  norm       = 0.0001
  Normalizat = 1.39005
  Prefactor  = 0.950005
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.369     FROM HESSE     STATUS=OK           313 CALLS     2485 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1701        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.3045        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6788        11.115        .15532E-03   -1.5191    
   4  Prefactor     .10000E-03    6.2784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1241        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6428        5.2362        .14502E-03   -1.5155    
   7  Prefactor     4.1625        11.717        .19768E-03   -1.5300    
   8  Prefactor     .10000E-03    6.6978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3128        2.1691        .14893E-03   -1.5479    
  10  Prefactor     .10000E-03    20.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          42.369        32.675        .61607E-04   -1.4405    
  12  Prefactor     41.457        43.170        .62297E-04   -1.4419    
  13  Prefactor     .10000E-03    10.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    404.20        .39571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.336        24.541        .96191E-04   -1.4875    
  16  Prefactor     .10000E-03    6.2047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.292        10.141        .12489E-03   -1.5066    
  18  Prefactor     4.2598        45.908        .19523E-03   -1.5295    
  19  norm          .10000E-03    10.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3900        .34026        .37821E-03   -.80917    
  21  Prefactor     .95001        .12923        .17272E-03   -.94415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53064e-10
Minuit parameter uncertainties:
  1  1.90978e-05
  2  2.91367e-06
  3  11.1184
  4  3.46313e-06
  5  3.52445e-06
  6  5.23656
  7  11.7237
  8  2.92612e-06
  9  2.16918
  10  0.0003544
  11  32.6887
  12  43.2027
  13  7.78557e-05
  14  0.00149007
  15  24.5552
  16  9.36508e-07
  17  10.1431
  18  27.9954
  19  4.59014e-06
  20  0.340813
  21  0.129273
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  2.926e-06  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.500e-01  1.293e-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.390e+00  3.408e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/525294/likelihoodResults_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.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) = 6622.37019334
delta logL = -0.000711501277692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6622.36948193
delta logL = -8.54097379488e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1077       1.0000          .0000       10.000    
     3 'Normalizat'    1.3900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95004       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=   6622.369     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    302.34        .90712E-02** at limit **
   2  Index         2.1117        5.7879        .50000       -.50593E-05
   3  Normalizat    1.3900        .52219E-01    .85422E-01   -.86752E-05
   4  Prefactor     .95001        .20300E-01    .45640E-01   -.51630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11169
  Normalizat = 1.39005
  Prefactor  = 0.950005
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.369     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    568.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1117        7.6350        .50000       -.61586    
   3  Normalizat    1.3900        .76013E-01    .37821E-03   -.80917    
   4  Prefactor     .95001        .29600E-01    .17272E-03   -.94415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6615e-09
Minuit parameter uncertainties:
  1  8.47335e-05
  2  37.9789
  3  0.0760192
  4  0.029601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525294': 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) = 6622.36948183
delta logL = 9.67611413216e-09

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  8.473e-05  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.112e+00  3.798e+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:  9.500e-01  2.960e-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.390e+00  7.602e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/525294/cmap_HighResolution_309312001_309571201_4FGL_J1106.5-3646_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-03 08:41:46.457121', job_id='525294', GAL2='0.95', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630683706.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='270' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:41:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 525294: <4FGL_J1106.5-3646_daily_bin270> in cluster <slac> Done

Job <4FGL_J1106.5-3646_daily_bin270> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 08:26:24 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:26:59 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:26:59 2021
Terminated at Fri Sep  3 08:41:47 2021
Results reported at Fri Sep  3 08:41:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin270 166.627 -36.7723 309312001 309571201 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 :                                   695.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            923 sec.

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

