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


Performing analysis on: 4FGL_J1106.5-3646_daily_bin761
RA = 166.627, Dec = -36.7723
tmin = 436579201, tmax = 436838401
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='529858', job_status='RUN', time_executed='2021-09-03 08:45:25.382288', time_epoch_executed='1630683925.38' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529858/ft1_4FGL_J1106.5-3646_daily_bin761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529858/ft1_4FGL_J1106.5-3646_daily_bin761.fits outfile=/scratch/kocevski/529858/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin761.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=436579201.0 tmax=436838401.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.76
user 4.36
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.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/529858/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin761.fits evtable="EVENTS" outfile="/scratch/kocevski/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.60
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/529858/ltcube_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.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/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits
.....................!
real 12.73
user 12.36
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/529858/ltcube_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.fits outfile=/scratch/kocevski/529858/expmap_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.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/529858/ltcube_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.fits
.....................!
real 156.27
user 152.08
sys 3.75

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/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits scfile=/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits outfile=/scratch/kocevski/529858/cmap_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.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.54
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits scfile=/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits outfile=/scratch/kocevski/529858/cmap_HighResolution_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.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.50
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/529858/ft2_4FGL_J1106.5-3646_daily_bin761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/529858/Model_4FGL_J1106.5-3646_daily_bin761.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/529858/ft1_filtered_4FGL_J1106.5-3646_daily_bin761.fits.....................!
real 70.39
user 69.19
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2160       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23305E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.832       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.032       1.0000         .10000E-03   10000.    
     9 'norm      '    .83961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6385       1.0000         .10000E-03   10000.    
    11 'norm      '    9.4367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1105       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38569       1.0000         .10000E-03   10000.    
    19 'norm      '    36.884       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .36011       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2201       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=   8566.965     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     2342 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2125        9.7075        .14932E-03    .27470E-03
   2  norm          .10000E-03    1.8715        .12356E-02** at limit **
   3  norm          .10000E-03    37.224        .33794E-02** at limit **
   4  Prefactor     26.831        19.141        .77338E-04   -.20580E-05
   5  norm          2.7225        3.3106        .16631E-03    .91735E-04
   6  Prefactor     1.6652        4.2838        .25544E-03   -.90971E-04
   7  Prefactor     .94844        21.124        .44158E-02    .12701E-03
   8  Prefactor     10.033        8.3025        .12651E-03   -.28936E-04
   9  norm          .83966        2.0402        .19347E-03    .34869E-03
  10  Prefactor     5.6406        11.822        .16917E-03    .31853E-04
  11  norm          9.4371        19.071        .13046E-03    .48975E-04
  12  Prefactor     .10000E-03    36.425        .18142E-02** at limit **
  13  Prefactor     13.256        18.270        .11001E-03   -.45469E-05
  14  Prefactor     1.0952        223.01        .92053E-02   -.33370E-04
  15  norm          .10000E-03    10.181        .18142E-02** at limit **
  16  Prefactor     .10000E-03    6.2144        .18142E-02** at limit **
  17  norm          .10000E-03    9.0024        .28383E-02** at limit **
  18  Prefactor     .34711        13.403        .93904E-01    .40332E-03
  19  norm          36.885        27.127        .65991E-04    .22396E-04
  20  Normalizat    .36001        .25246        .58308E-03   -.83918E-04
  21  Prefactor     1.2201        .10692        .14440E-03   -.14974E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.21254
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.8309
  norm       = 2.72245
  Prefactor  = 1.66523
  Prefactor  = 0.948442
  Prefactor  = 10.0327
  norm       = 0.839655
  Prefactor  = 5.64059
  norm       = 9.43705
  Prefactor  = 0.000100001
  Prefactor  = 13.2562
  Prefactor  = 1.0952
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.347111
  norm       = 36.8845
  Normalizat = 0.360014
  Prefactor  = 1.22012
 **********
 **   18 **HESSE 
 **********

 FCN=   8566.965     FROM HESSE     STATUS=OK           309 CALLS     2651 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2125        9.6897        .59728E-05   -1.5171    
   2  norm          .10000E-03    1.8716        .24712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    37.812        .67588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.831        19.129        .30935E-05   -1.4672    
   5  norm          2.7225        3.3090        .66525E-05   -1.5378    
   6  Prefactor     1.6652        4.2502        .10218E-04   -1.5450    
   7  Prefactor     .94844        20.578        .17663E-03   -1.5513    
   8  Prefactor     10.033        8.3013        .50605E-05   -1.5074    
   9  norm          .83966        2.0392        .77390E-05   -1.5525    
  10  Prefactor     5.6406        11.819        .67670E-05   -1.5233    
  11  norm          9.4371        19.069        .52183E-05   -1.5093    
  12  Prefactor     .10000E-03    36.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.256        18.261        .44005E-05   -1.4980    
  14  Prefactor     1.0952        229.64        .36821E-03   -1.5499    
  15  norm          .10000E-03    10.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.1386        .56766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34711        12.831        .96922E-01   -1.5590    
  19  norm          36.885        27.135        .26396E-05   -1.4493    
  20  Normalizat    .36001        .25136        .23323E-04   -1.1942    
  21  Prefactor     1.2201        .10682        .57760E-05   -.85714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56641e-09
Minuit parameter uncertainties:
  1  9.69177
  2  9.06077e-07
  3  0.000124681
  4  19.1339
  5  3.30921
  6  4.25101
  7  8.83871
  8  8.30227
  9  2.03932
  10  11.8237
  11  19.0811
  12  0.00034496
  13  18.2691
  14  31.8408
  15  4.04783e-06
  16  1.06588e-05
  17  0.000101789
  18  4.22119
  19  27.1438
  20  0.252153
  21  0.10684
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.003e+01  8.302e+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

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.220e+00  1.068e-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:  3.600e-01  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 166.627 -36.772
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.86e-05

TS (Fixed Index): 3.22
Ra Dec: 166.627 -36.772
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/529858/likelihoodResults_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8566.78039863
delta logL = 0.184546568411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8566.76282409
delta logL = 0.20212110839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6017       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6198       1.0000          .0000       10.000    
     3 'Normalizat'    .31878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2298       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=   8566.763     FROM MIGRAD    STATUS=FAILED        90 CALLS      335 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6000        18.712        .14012E-03   -.46605E-03
   2  Index         2.6202        1.7996        .57987E-02    .90751E-03
   3  Normalizat    .31876        .27266        .61815E-03    .23140E-03
   4  Prefactor     1.2298        .11098        .14388E-03    .44483E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8566.763     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      418 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6000        18.712        .23107E-03   -1.5235    
   2  Index         2.6202        1.7996        .12524E-02   -.49604    
   3  Normalizat    .31876        .27266        .44556E-03   -1.2173    
   4  Prefactor     1.2298        .11098        .82019E-04   -.85420    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8566.763     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      448 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6000        9.4293        .56047E-05   -.14199E-03
   2  Index         2.6203        .92494        .11597E-02    .79795E-05
   3  Normalizat    .31876        .24756        .24726E-04    .14897E-04
   4  Prefactor     1.2298        .10577        .28776E-04    .27498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.59996
  Index      = 2.62025
  Normalizat = 0.31876
  Prefactor  = 1.22977
 **********
 **   18 **HESSE 
 **********

 FCN=   8566.763     FROM HESSE     STATUS=OK            23 CALLS      471 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6000        8.7573        .11209E-05   -1.5235    
   2  Index         2.6203        .85963        .46389E-04   -.49604    
   3  Normalizat    .31876        .24648        .49452E-05   -1.2174    
   4  Prefactor     1.2298        .10559        .57551E-05   -.85420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01538e-11
Minuit parameter uncertainties:
  1  8.75932
  2  0.865203
  3  0.247319
  4  0.105606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529858': 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) = 8566.76282382
delta logL = 0.202121379238

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.230e+00  1.056e-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:  3.188e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 166.627 -36.772
Photon Index (Free Index): 2.62 +/- 0.87
Photon Flux (Free Index): 7.07e-08 +/- 6.25e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.28e-05

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/529858/cmap_HighResolution_436579201_436838401_4FGL_J1106.5-3646_daily_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.82e-05', photon_flux_error='3.42e-08', dlogl='2.02e-01', energy_flux='2.25e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-09-03 08:57:18.150648', photon_index_error2='0.87', photon_index2='2.62', ts='3.22', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.28e-05', EG='0.36', time_epoch_completed='1630684638.15', return_code='0', job_id='529858', GAL2='1.23', EG2='0.32', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='6.25e-08', ts2='3.67', photon_index='2.10' WHERE bin_id='761' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:57:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 529858: <4FGL_J1106.5-3646_daily_bin761> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin761 166.627 -36.7723 436579201 436838401 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 :                                   708.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            921 sec.

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

