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


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1621
RA = 211.665, Dec = -39.5727
tmin = 659491201, tmax = 659750401
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='362276', job_status='RUN', time_executed='2021-12-08 00:58:00.344056', time_epoch_executed='1638953880.34' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362276/ft1_4FGL_J1406.6-3934_daily_bin1621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362276/ft1_4FGL_J1406.6-3934_daily_bin1621.fits outfile=/scratch/kocevski/362276/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1621.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=659491201.0 tmax=659750401.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 2.60
user 2.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.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/362276/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1621.fits evtable="EVENTS" outfile="/scratch/kocevski/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits" evtable="EVENTS" scfile=/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits sctable="SC_DATA" outfile=/scratch/kocevski/362276/ltcube_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.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/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits
.....................!
real 17.57
user 17.15
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits sctable="SC_DATA" expcube=/scratch/kocevski/362276/ltcube_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.fits outfile=/scratch/kocevski/362276/expmap_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.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/362276/ltcube_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.fits
.....................!
real 193.82
user 186.74
sys 6.72

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/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits scfile=/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits outfile=/scratch/kocevski/362276/cmap_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits scfile=/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits outfile=/scratch/kocevski/362276/cmap_HighResolution_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.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 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362276/Model_4FGL_J1406.6-3934_daily_bin1621.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/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits.....................!
real 85.76
user 84.28
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits', '/scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits', expMap='/scratch/kocevski/362276/expmap_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.fits', expCube='/scratch/kocevski/362276/ltcube_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362276/Model_4FGL_J1406.6-3934_daily_bin1621.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/362276/ft1_filtered_4FGL_J1406.6-3934_daily_bin1621.fits
Spacecraft file(s): /scratch/kocevski/362276/ft2_4FGL_J1406.6-3934_daily_bin1621.fits
Exposure map: /scratch/kocevski/362276/expmap_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.fits
Exposure cube: /scratch/kocevski/362276/ltcube_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362276/Model_4FGL_J1406.6-3934_daily_bin1621.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) = 4321.22143397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2097       1.0000         .10000E-03   10000.    
     2 'norm      '    10.495       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    103.24       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    144.90       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    33.168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .52871       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99137       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4321.084     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2511 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2101        4.9526       -.44998E-06   -.24025E-03
   2  norm          10.496        8.7642       -.77343E-05   -.11025E-03
   3  Prefactor     .10000E-03    201.92        .10596E-03** at limit **
   4  Prefactor     103.24        105.34       -.30924E-05   -.63494E-05
   5  norm          .10000E-03    13.226       -.16331E-06** at limit **
   6  norm          12.425        15.814       -.71561E-06   -.40127E-04
   7  Prefactor     .10000E-03    23.088        .91751E-06** at limit **
   8  Prefactor     144.93        141.53        .17818E-04   -.16859E-04
   9  Prefactor     .10000E-03    311.95       -.10872E-03** at limit **
  10  Prefactor     39.011        160.96       -.81367E-04    .86669E-06
  11  Prefactor     .10000E-03    27.749        .96296E-06** at limit **
  12  norm          33.169        15.504       -.52787E-06   -.37209E-03
  13  Prefactor     .10000E-03    202.65        .10453E-03** at limit **
  14  norm          1.2144        .50321        .24844E-06    .75506E-03
  15  Prefactor     .10000E-03    92.337       -.23818E-04** at limit **
  16  Prefactor     .10000E-03    80.727       -.40497E-04** at limit **
  17  Prefactor     .10000E-03    35.655       -.75488E-05** at limit **
  18  norm          .10000E-03    17.839       -.31198E-06** at limit **
  19  Prefactor     .10000E-03    55.180        .29093E-04** at limit **
  20  Prefactor    10000.0        1107.6        .11566E-02** at limit **
  21  norm          .10000E-03    3.9622       -.12979E-06** at limit **
  22  Normalizat    .52866        .47715        .10121E-04    .27829E-04
  23  Prefactor     .99139        .14685        .26117E-06   -.20328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21011
  norm       = 10.4964
  Prefactor  = 0.0001
  Prefactor  = 103.24
  norm       = 0.0001
  norm       = 12.4255
  Prefactor  = 0.0001
  Prefactor  = 144.928
  Prefactor  = 0.0001
  Prefactor  = 39.0106
  Prefactor  = 0.0001
  norm       = 33.1688
  Prefactor  = 0.0001
  norm       = 1.2144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Normalizat = 0.528656
  Prefactor  = 0.991387
 **********
 **   18 **HESSE 
 **********

 FCN=   4321.084     FROM HESSE     STATUS=OK           358 CALLS     2869 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2101        4.9444        .17624E-03   -1.5350    
   2  norm          10.496        8.6983        .12368E-03   -1.5060    
   3  Prefactor     .10000E-03    201.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     103.24        104.59        .39572E-04   -1.3672    
   5  norm          .10000E-03    13.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.425        15.766        .11365E-03   -1.5003    
   7  Prefactor     .10000E-03    23.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     144.93        140.62        .16736E-03   -1.3294    
   9  Prefactor     .10000E-03    311.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.011        160.52        .64127E-04   -1.4458    
  11  Prefactor     .10000E-03    27.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          33.169        15.457        .69578E-04   -1.4555    
  13  Prefactor     .10000E-03    202.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2144        .50161        .28689E-04   -1.5488    
  15  Prefactor     .10000E-03    92.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    55.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        1107.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0511        .12779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .52866        .46181        .66102E-03   -1.1110    
  23  Prefactor     .99139        .14678        .16185E-03   -.93017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3553e-10
Minuit parameter uncertainties:
  1  4.94503
  2  8.69939
  3  0.000119647
  4  104.778
  5  3.89506e-06
  6  15.7713
  7  8.79196e-06
  8  140.942
  9  6.7532e-05
  10  159.006
  11  0.000121669
  12  15.4588
  13  0.000584512
  14  0.501607
  15  4.54108e-05
  16  9.90306e-05
  17  3.57664e-05
  18  8.6262e-07
  19  3.05955e-06
  20  0.00030733
  21  6.35998e-06
  22  0.465215
  23  0.146841
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  6.753e-05  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:  9.914e-01  1.468e-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.287e-01  4.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.665 -39.573
Photon Flux Upper Limit: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362276/likelihoodResults_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.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) = 4321.08365877
delta logL = -1.51260619532e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4321.08364365
delta logL = -6.25459506409e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.5621       1.0000          .0000       10.000    
     3 'Normalizat'    .52865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99139       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4321.084     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      391 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1774.7        .18142E-02** at limit **
   2  Index         1.5168        7.1370        .50000        .90254E-06
   3  Normalizat    .52866        .42507        .66101E-03    .81541E-04
   4  Prefactor     .99139        .14235        .16185E-03    .11098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.51681
  Normalizat = 0.528657
  Prefactor  = 0.991387
 **********
 **   18 **HESSE 
 **********

 FCN=   4321.084     FROM HESSE     STATUS=OK            29 CALLS      420 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    305.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5168        5.6968        .50000       -.77070    
   3  Normalizat    .52866        .42496        .26440E-04   -1.1110    
   4  Prefactor     .99139        .14231        .64740E-05   -.93017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35834e-10
Minuit parameter uncertainties:
  1  0.000611908
  2  3.66801
  3  0.427605
  4  0.142367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362276': 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) = 4321.08364364
delta logL = 9.38416633289e-09

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  6.119e-04  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.517e+00  3.668e+00  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:  9.914e-01  1.424e-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.287e-01  4.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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/362276/cmap_HighResolution_659491201_659750401_4FGL_J1406.6-3934_daily_bin1621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-12-08 01:10:50.907367', job_id='362276', GAL2='0.99', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1638954650.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.38e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1621' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:10:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 362276: <4FGL_J1406.6-3934_daily_bin1621> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1621> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 00:55:19 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:57:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:57:08 2021
Terminated at Wed Dec  8 01:10:51 2021
Results reported at Wed Dec  8 01:10:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1621 211.665 -39.5727 659491201 659750401 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 :                                   770.07 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             349.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            932 sec.

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

