/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 41 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1203
RA = 211.665, Dec = -39.5727
tmin = 551145601, tmax = 551404801
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='199410', job_status='RUN', time_executed='2021-09-09 01:41:43.049780', time_epoch_executed='1631176903.05' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199410/ft1_4FGL_J1406.6-3934_daily_bin1203.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199410/ft1_4FGL_J1406.6-3934_daily_bin1203.fits outfile=/scratch/kocevski/199410/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1203.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=551145601.0 tmax=551404801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.21
user 3.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.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/199410/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1203.fits evtable="EVENTS" outfile="/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits" evtable="EVENTS" scfile=/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits sctable="SC_DATA" outfile=/scratch/kocevski/199410/ltcube_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.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/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits
.....................!
real 11.91
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits sctable="SC_DATA" expcube=/scratch/kocevski/199410/ltcube_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.fits outfile=/scratch/kocevski/199410/expmap_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.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/199410/ltcube_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.fits
.....................!
real 193.77
user 185.16
sys 4.51

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 261 point sources and 3 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 J1406.6-3934 @ 211.665 -39.5727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits scfile=/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits outfile=/scratch/kocevski/199410/cmap_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.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=211.665 yref=-39.5727 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.82
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits scfile=/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits outfile=/scratch/kocevski/199410/cmap_HighResolution_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.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=211.665 yref=-39.5727 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.30
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/199410/Model_4FGL_J1406.6-3934_daily_bin1203.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source GAL_V02
adding source HESS J1420-607
Working on...
/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits...............................!
real 20.46
user 18.21
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits', '/scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits', expMap='/scratch/kocevski/199410/expmap_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.fits', expCube='/scratch/kocevski/199410/ltcube_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/199410/Model_4FGL_J1406.6-3934_daily_bin1203.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1406.6-3934'

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  8.843e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/199410/ft1_filtered_4FGL_J1406.6-3934_daily_bin1203.fits
Spacecraft file(s): /scratch/kocevski/199410/ft2_4FGL_J1406.6-3934_daily_bin1203.fits
Exposure map: /scratch/kocevski/199410/expmap_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.fits
Exposure cube: /scratch/kocevski/199410/ltcube_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/199410/Model_4FGL_J1406.6-3934_daily_bin1203.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 402.755949792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 400.752192915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7207       1.0000         .10000E-03   10000.    
     2 'norm      '    .11191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6849       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0142       1.0000         .10000E-03   10000.    
     6 'norm      '    60.826       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81608E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    90.708       1.0000         .10000E-03   10000.    
    12 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91731E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7937       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    123.84       1.0000         .10000E-03   10000.    
    18 'norm      '    16.026       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36784E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .99581E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .49193E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .59053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   400.7301     FROM MIGRAD    STATUS=CONVERGED    341 CALLS      617 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7207        1.0180         .0000         .0000    
   2  norm          .10000E-03    .22886        .50808E-05** at limit **
   3  Prefactor     3.6499        .61496        .25407E-04    .43165E-02
   4  Prefactor     .10000E-03    .16446       -.10983E-04** at limit **
   5  norm          .10000E-03    .42278       -.74792E-05** at limit **
   6  norm          61.067        1.0020       -.27166E-05    .72793E-02
   7  Prefactor     .10057E-03    .55836E-01   -.42401E-05** at limit **
   8  Prefactor     .10000E-03    .22199       -.70730E-05** at limit **
   9  Prefactor     .31818E-01    .61573E-01    .56038E-04   -.13177E-02
  10  Prefactor     .60625E-03    .34938E-01   -.34539E-05** at limit **
  11  Prefactor     91.410        1.0038        .11981E-05    .10556E-01
  12  norm          .10000E-03    .20571        .28334E-05** at limit **
  13  Prefactor     .10000E-03    .22428        .20386E-05** at limit **
  14  norm          .10000E-03    .20571        .17822E-07** at limit **
  15  Prefactor     .68707E-03    .32236E-01   -.82744E-05** at limit **
  16  Prefactor     .10000E-03    .31017       -.50110E-05** at limit **
  17  Prefactor     124.04        1.0008       -.70002E-06    .42855E-01
  18  norm          17.280        1.0388       -.21825E-05    .22207E-02
  19  Prefactor     .10000E-03    .21185        .17143E-05** at limit **
  20  Prefactor     .10000E-03    .22606       -.87878E-05** at limit **
  21  norm          .10000E-03    .20571       -.63862E-06** at limit **
  22  Normalizat    .51114E-01    .26318       -.11081E-04   -.14422E-04
  23  Prefactor     .58856        .93652        .14011E-04    .16898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72073
  norm       = 0.0001
  Prefactor  = 3.64992
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 61.0674
  Prefactor  = 0.000100565
  Prefactor  = 0.000100001
  Prefactor  = 0.0318179
  Prefactor  = 0.000606253
  Prefactor  = 91.4096
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000687068
  Prefactor  = 0.0001
  Prefactor  = 124.036
  norm       = 17.2797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.0511141
  Prefactor  = 0.588563
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   400.7301     FROM HESSE     STATUS=FAILED         9 CALLS      626 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     558.14        555.33         .0000       -1.5378    
   2  norm          .10000E-03    .22886        .50808E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6499        .61496        .25407E-04   -1.5326    
   4  Prefactor     .10000E-03    .16446       -.10983E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .42278       -.74792E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          61.067        1.0020       -.27166E-05   -1.4143    
   7  Prefactor     .10057E-03    .55836E-01   -.42401E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .22199       -.70730E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31818E-01    .61573E-01    .56038E-04   -1.5744    
  10  Prefactor     .60625E-03    .34938E-01   -.34539E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     91.410        1.0038        .11981E-05   -1.3793    
  12  norm          .10000E-03    .20571        .28334E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .22428        .20386E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20571        .17822E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .68707E-03    .32236E-01   -.82744E-05   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .31017       -.50110E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     124.04        1.0008       -.70002E-06   -1.3476    
  18  norm          17.280        1.0388       -.21825E-05   -1.4876    
  19  Prefactor     .10000E-03    .21185        .17143E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .22606       -.87878E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571       -.63862E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .51114E-01    .26318       -.11081E-04   -1.6992    
  23  Prefactor     .58856        .93652        .14011E-04   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.42945e-09
Minuit parameter uncertainties:
  1  1.01797
  2  1.18911e-05
  3  0.614964
  4  1.741e-05
  5  7.45417e-05
  6  1.002
  7  0.000355265
  8  2.28465e-05
  9  0.0615734
  10  0.00841128
  11  1.00384
  12  6.27683e-06
  13  1.6114e-05
  14  2.22787e-08
  15  0.00870049
  16  1.51647e-06
  17  1.00079
  18  1.03883
  19  3.31682e-06
  20  1.3419e-05
  21  2.98484e-07
  22  0.209406
  23  0.963186
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 400.730106454

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  3.182e-02  6.157e-02  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  5.886e-01  9.632e-01  0.000e+00  1.000e+01 ( 1.000e+00)
908        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
909        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
902   Normalization:  5.111e-02  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.798078641886

TS (Fixed Index): -0.00
Ra Dec: 211.665 -39.573
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.19e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/199410/likelihoodResults_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.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) = 400.730614323
delta logL = -0.0005078687538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 400.730614306
delta logL = -0.000507851493353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.5460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   400.7306     FROM MIGRAD    STATUS=CONVERGED     20 CALLS       83 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.5417        3.0386        .50000        .14005E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 1.54166
 **********
 **   18 **HESSE 
 **********

 FCN=   400.7306     FROM HESSE     STATUS=OK             9 CALLS       92 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.5417        5.9047        .20000       -.76380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71457e-06
Minuit parameter uncertainties:
  1  338.791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199410': 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) = 400.730614289
delta logL = -0.000507834529799

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  3.180e-02  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-16) fixed
364        Index:  1.542e+00  3.388e+02  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  5.889e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
908        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
909        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
902   Normalization:  5.113e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): -0.00
Ra Dec: 211.665 -39.573

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/199410/cmap_HighResolution_551145601_551404801_4FGL_J1406.6-3934_daily_bin1203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.19e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-09 01:47:55.560514', job_id='199410', GAL2='0.59', fit_tolerance='1e-08', EG2='0.05', EG='0.05', time_epoch_completed='1631177275.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.59', dlogl='-5.08e-04', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1203' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:47:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 199410: <4FGL_J1406.6-3934_daily_bin1203> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1203> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 01:40:31 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 01:40:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 01:40:33 2021
Terminated at Thu Sep  9 01:47:56 2021
Results reported at Thu Sep  9 01:47:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1203 211.665 -39.5727 551145601 551404801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1406.6-3934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   351.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             225.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   443 sec.
    Turnaround time :                            445 sec.

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

