/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 168 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1106.5-3646_daily_bin489
RA = 166.627, Dec = -36.7723
tmin = 366076801, tmax = 366336001
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='527977', job_status='RUN', time_executed='2021-09-03 08:39:34.407527', time_epoch_executed='1630683574.41' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527977

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527977/ft1_4FGL_J1106.5-3646_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527977/ft2_4FGL_J1106.5-3646_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527977/ft1_4FGL_J1106.5-3646_daily_bin489.fits outfile=/scratch/kocevski/527977/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin489.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=366076801.0 tmax=366336001.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.59
user 5.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/527977/ft1_filtered_4FGL_J1106.5-3646_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/527977/ft2_4FGL_J1106.5-3646_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/527977/ltcube_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.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/527977/ft2_4FGL_J1106.5-3646_daily_bin489.fits
.....................!
real 15.72
user 14.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527977/ft1_filtered_4FGL_J1106.5-3646_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/527977/ft2_4FGL_J1106.5-3646_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/527977/ltcube_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.fits outfile=/scratch/kocevski/527977/expmap_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.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/527977/ltcube_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.fits
.....................!
real 199.59
user 187.10
sys 3.94

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/527977/ft1_filtered_4FGL_J1106.5-3646_daily_bin489.fits scfile=/scratch/kocevski/527977/ft2_4FGL_J1106.5-3646_daily_bin489.fits outfile=/scratch/kocevski/527977/cmap_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.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.55
user 0.40
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/527977/ft1_filtered_4FGL_J1106.5-3646_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/527977/ft2_4FGL_J1106.5-3646_daily_bin489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/527977/Model_4FGL_J1106.5-3646_daily_bin489.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/527977/ft1_filtered_4FGL_J1106.5-3646_daily_bin489.fits.....................!
real 87.32
user 85.81
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.2596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8533       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0541       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2152       1.0000         .10000E-03   10000.    
    15 'norm      '    11.101       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.581       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86486       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=   8623.343     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1863 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2570       -.31824E-06** at limit **
   2  norm          .10000E-03    1.8178        .13697E-08** at limit **
   3  norm          9.2603        7.7030        .10197E-05   -.14769E-03
   4  Prefactor     2.8569        19.156       -.36924E-05   -.69257E-04
   5  norm          5.9592        3.6634       -.11836E-06    .81467E-04
   6  Prefactor     .10000E-03    2.7315        .13580E-06** at limit **
   7  Prefactor     4.0465        10.101       -.20142E-05   -.10969E-03
   8  Prefactor     .10000E-03    3.1423       -.38684E-07** at limit **
   9  norm          2.3209        1.9725       -.95313E-07   -.66503E-03
  10  Prefactor     .10000E-03    5.9078        .28463E-05** at limit **
  11  norm          2.8583        39.052       -.39248E-05   -.45518E-04
  12  Prefactor     .10000E-03    63.256        .72395E-06** at limit **
  13  Prefactor     .10000E-03    5.7503       -.27738E-05** at limit **
  14  Prefactor     8.2136        23.553       -.17941E-05    .17753E-05
  15  norm          11.085        22.134       -.91905E-05    .12413E-03
  16  Prefactor     .10000E-03    4.6744        .16100E-06** at limit **
  17  norm          10.125        5.4061       -.83842E-07   -.60418E-04
  18  Prefactor     .10000E-03    23.856        .11254E-06** at limit **
  19  norm          11.580        12.350        .89832E-07    .73460E-06
  20  Normalizat    1.1853        .20600        .45397E-06    .27265E-04
  21  Prefactor     .86481        .83466E-01    .36179E-06   -.76419E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.26033
  Prefactor  = 2.85685
  norm       = 5.95919
  Prefactor  = 0.0001
  Prefactor  = 4.04655
  Prefactor  = 0.0001
  norm       = 2.32095
  Prefactor  = 0.0001
  norm       = 2.85828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.21358
  norm       = 11.0849
  Prefactor  = 0.0001
  norm       = 10.1251
  Prefactor  = 0.0001
  norm       = 11.5805
  Normalizat = 1.18531
  Prefactor  = 0.864813
 **********
 **   18 **HESSE 
 **********

 FCN=   8623.343     FROM HESSE     STATUS=OK           319 CALLS     2182 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8186        .12227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.2603        7.6823        .13171E-03   -1.5099    
   4  Prefactor     2.8569        19.277        .24069E-03   -1.5370    
   5  norm          5.9592        3.6388        .12924E-03   -1.5220    
   6  Prefactor     .10000E-03    2.8024        .29909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0465        10.181        .20026E-03   -1.5306    
   8  Prefactor     .10000E-03    3.1546        .16074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3209        1.9613        .11321E-03   -1.5403    
  10  Prefactor     .10000E-03    5.9155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8583        39.401        .24031E-03   -1.5370    
  12  Prefactor     .10000E-03    63.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.7373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2136        23.566        .13987E-03   -1.5135    
  15  norm          11.085        21.985        .12024E-03   -1.5042    
  16  Prefactor     .10000E-03    4.6970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.125        5.4060        .12594E-03   -1.5071    
  18  Prefactor     .10000E-03    24.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.580        12.351        .11772E-03   -1.5027    
  20  Normalizat    1.1853        .24373        .33895E-03   -.87058    
  21  Prefactor     .86481        .99120E-01    .15992E-03   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03044e-10
Minuit parameter uncertainties:
  1  1.18695e-05
  2  5.08457e-07
  3  7.68313
  4  14.8489
  5  3.63891
  6  2.13347e-05
  7  10.1855
  8  5.308e-07
  9  1.96138
  10  4.34976e-05
  11  21.241
  12  7.12221e-05
  13  4.23524e-05
  14  23.5925
  15  22.0014
  16  4.27395e-06
  17  5.40627
  18  2.35422e-05
  19  12.3539
  20  0.243959
  21  0.0991402
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  5.308e-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:  8.648e-01  9.914e-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.185e+00  2.440e-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: 5.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/527977/likelihoodResults_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.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) = 8623.34447433
delta logL = -0.00151123686192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8623.34296331
delta logL = -2.10704456549e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0933       1.0000          .0000       10.000    
     3 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86481       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=   8623.343     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    33.094        .16144E-02** at limit **
   2  Index         2.0618        5.4714        .50000        .22908E-04
   3  Normalizat    1.1853        .17430E-01    .33895E-03   -.28174E-05
   4  Prefactor     .86481        .71910E-02    .15992E-03   -.16492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100377
  Index      = 2.06181
  Normalizat = 1.18531
  Prefactor  = 0.864814
 **********
 **   18 **HESSE 
 **********

 FCN=   8623.343     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    155.46        .32287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0618        7.4398        .50000       -.62814    
   3  Normalizat    1.1853        .39614E-01    .13558E-04   -.87058    
   4  Prefactor     .86481        .16336E-01    .63970E-05   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8195e-08
Minuit parameter uncertainties:
  1  0.0153414
  2  443.912
  3  0.0396149
  4  0.0163364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527977': 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) = 8623.3429629
delta logL = 1.98284396902e-07

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.004e-04  1.534e-02  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.062e+00  4.439e+02  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:  8.648e-01  1.634e-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.185e+00  3.961e-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/527977/cmap_HighResolution_366076801_366336001_4FGL_J1106.5-3646_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-03 08:52:57.643494', job_id='527977', GAL2='0.86', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630684377.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='489' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:52:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 527977: <4FGL_J1106.5-3646_daily_bin489> in cluster <slac> Done

Job <4FGL_J1106.5-3646_daily_bin489> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 08:36:23 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:36:36 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:36:36 2021
Terminated at Fri Sep  3 08:52:58 2021
Results reported at Fri Sep  3 08:52:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin489 166.627 -36.7723 366076801 366336001 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            995 sec.

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

