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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin929
RA = 203.02, Dec = -5.1611
tmin = 480124801, tmax = 480384001
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='740203', job_status='RUN', time_executed='2021-09-08 01:48:44.207870', time_epoch_executed='1631090924.21' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740203/ft1_4FGL_J1332.0-0509_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740203/ft1_4FGL_J1332.0-0509_daily_bin929.fits outfile=/scratch/kocevski/740203/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin929.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=480124801.0 tmax=480384001.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 3.73
user 3.35
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.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/740203/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin929.fits evtable="EVENTS" outfile="/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits" evtable="EVENTS" scfile=/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits sctable="SC_DATA" outfile=/scratch/kocevski/740203/ltcube_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.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/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits
.....................!
real 15.72
user 15.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/740203/ltcube_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.fits outfile=/scratch/kocevski/740203/expmap_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.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/740203/ltcube_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.fits
.....................!
real 193.67
user 186.67
sys 5.73

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
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits scfile=/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits outfile=/scratch/kocevski/740203/cmap_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.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=203.02 yref=-5.1611 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.76
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits scfile=/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits outfile=/scratch/kocevski/740203/cmap_HighResolution_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.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=203.02 yref=-5.1611 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.64
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740203/Model_4FGL_J1332.0-0509_daily_bin929.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 GAL_V02
Working on...
/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits.....................!
real 51.83
user 50.33
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits', '/scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits', expMap='/scratch/kocevski/740203/expmap_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.fits', expCube='/scratch/kocevski/740203/ltcube_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740203/Model_4FGL_J1332.0-0509_daily_bin929.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.0-0509'

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/740203/ft1_filtered_4FGL_J1332.0-0509_daily_bin929.fits
Spacecraft file(s): /scratch/kocevski/740203/ft2_4FGL_J1332.0-0509_daily_bin929.fits
Exposure map: /scratch/kocevski/740203/expmap_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.fits
Exposure cube: /scratch/kocevski/740203/ltcube_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740203/Model_4FGL_J1332.0-0509_daily_bin929.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) = 6483.61395124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.570       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22288E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9369       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0317       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.127       1.0000         .10000E-03   10000.    
    11 'norm      '    .73865       1.0000         .10000E-03   10000.    
    12 'norm      '    .44449E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.686       1.0000         .10000E-03   10000.    
    18 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3367       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.453       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81388       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1674       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6483.527     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2757 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.526        62.708        .26004E-05   -.85890E-04
   2  norm          .10000E-03    7.5721        .19471E-06** at limit **
   3  norm          1.2547        .35515       -.11585E-06    .27375E-02
   4  Prefactor     .10000E-03    19.342       -.27360E-07** at limit **
   5  norm          .10003E-03    7.6924        .11783E-05** at limit **
   6  norm          1.9381        7.5165        .52137E-07   -.84156E-05
   7  Prefactor     13.673        11.623       -.28862E-07   -.10367E-03
   8  Prefactor     4.0328        20.170        .56085E-08   -.10115E-04
   9  Prefactor     1.3184        18.702        .20664E-06   -.33099E-04
  10  Prefactor     29.186        18.227       -.16507E-05   -.41273E-03
  11  norm          .73883        1.6809       -.52624E-07   -.62559E-04
  12  norm          .10000E-03    2.2399        .87868E-06** at limit **
  13  norm          .10000E-03    3.6674        .43222E-07** at limit **
  14  norm          .10000E-03    23.773        .14249E-06** at limit **
  15  Prefactor     1.4002        4.0909       -.15768E-06   -.10266E-04
  16  Prefactor     .10000E-03    8.5650       -.60133E-07** at limit **
  17  Prefactor     30.701        30.163       -.27936E-06   -.19967E-05
  18  norm          .10000E-03    3.7565       -.11504E-07** at limit **
  19  Prefactor     1.3346        11.533        .14486E-05    .88592E-04
  20  norm          .10000E-03    .63710       -.19741E-07** at limit **
  21  Prefactor     10.450        30.930       -.41364E-06    .45604E-06
  22  norm          .10000E-03    7.3435       -.15714E-06** at limit **
  23  Normalizat    .81391        .23747        .27200E-06   -.14164E-03
  24  Prefactor     1.1675        .14881        .44357E-07   -.26234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.5264
  norm       = 0.0001
  norm       = 1.25473
  Prefactor  = 0.0001
  norm       = 0.000100026
  norm       = 1.9381
  Prefactor  = 13.6732
  Prefactor  = 4.03281
  Prefactor  = 1.31843
  Prefactor  = 29.1863
  norm       = 0.738835
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.4002
  Prefactor  = 0.0001
  Prefactor  = 30.7007
  norm       = 0.0001
  Prefactor  = 1.33464
  norm       = 0.0001
  Prefactor  = 10.4504
  norm       = 0.0001
  Normalizat = 0.813911
  Prefactor  = 1.16748
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.527     FROM HESSE     STATUS=OK           399 CALLS     3156 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.526        61.338        .48126E-04   -1.4038    
   2  norm          .10000E-03    7.5742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2547        .34310        .21712E-04   -1.5484    
   4  Prefactor     .10000E-03    19.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10003E-03    33.329        .35501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9381        7.4773        .29836E-03   -1.5430    
   7  Prefactor     13.673        11.550        .10833E-03   -1.4968    
   8  Prefactor     4.0328        20.107        .20083E-03   -1.5306    
   9  Prefactor     1.3184        18.388        .38241E-03   -1.5478    
  10  Prefactor     29.186        18.552        .74235E-04   -1.4627    
  11  norm          .73883        1.6508        .14190E-03   -1.5536    
  12  norm          .10000E-03    6.2268        .21022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7094        .15045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    23.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4002        4.0603        .26329E-03   -1.5471    
  16  Prefactor     .10000E-03    8.5941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.701        30.179        .72330E-04   -1.4599    
  18  norm          .10000E-03    3.8021        .15217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3346        12.351        .18969E-02   -1.5477    
  20  norm          .10000E-03    .63983        .62748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.450        30.944        .12393E-03   -1.5061    
  22  norm          .10000E-03    7.3742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81391        .26979        .34927E-03   -.99555    
  24  Prefactor     1.1675        .17208        .19922E-03   -.87338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17714e-09
Minuit parameter uncertainties:
  1  61.3941
  2  7.53049e-06
  3  0.343097
  4  6.89732e-06
  5  0.0018564
  6  7.48094
  7  11.5514
  8  18.0191
  9  9.85088
  10  18.5552
  11  1.65093
  12  4.1194e-05
  13  6.76171e-06
  14  9.87706e-06
  15  4.06109
  16  8.16841e-07
  17  30.1936
  18  2.717e-06
  19  8.1221
  20  1.53872e-07
  21  30.991
  22  5.13231e-06
  23  0.270239
  24  0.17216
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  7.388e-01  1.651e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.167e+00  1.722e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.139e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740203/likelihoodResults_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.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) = 6482.59221833
delta logL = 0.934495160531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6482.56922667
delta logL = 0.957486820596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40330       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2354       1.0000          .0000       5.0000    
     3 'Normalizat'    .70362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6482.569     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      219 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40253        5.4634        .81655E-02    .12081E-02
   2  alpha         4.2366        3.9952        .50000        .31916E-04
   3  Normalizat    .70356        .62202E-01    .84331E-01    .17314E-04
   4  Prefactor     1.2159        .42061E-01    .34267E-01   -.29076E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.402528
  alpha      = 4.23658
  Normalizat = 0.703563
  Prefactor  = 1.21586
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.569     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      254 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40253        10.685        .37157E-03   -1.5581    
   2  alpha         4.2366        2.9274        .26923E-01    .76791    
   3  Normalizat    .70356        .21798        .37348E-03   -1.0375    
   4  Prefactor     1.2159        .14728        .19567E-03   -.85845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.80495e-08
Minuit parameter uncertainties:
  1  4.14805
  2  7.67912
  3  0.218247
  4  0.14733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740203': 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) = 6482.56922615
delta logL = 0.95748733835

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.025e-01  4.148e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.237e+00  7.679e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.216e+00  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.036e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 4.24 +/- 7.68
Photon Flux (Free Index): 1.01e-07 +/- 7.81e-08
Energy Flux (Free Index): 1.52e-05 +/- 2.44e-05

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/740203/cmap_HighResolution_480124801_480384001_4FGL_J1332.0-0509_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='9.57e-01', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-08 02:00:06.310018', photon_index_error2='7.68', photon_index2='4.24', ts='0.23', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.44e-05', EG='0.81', time_epoch_completed='1631091606.31', return_code='0', job_id='740203', GAL2='1.22', EG2='0.70', return_code2='102', photon_flux_error2='7.81e-08', ts2='2.38', photon_index='2.39' WHERE bin_id='929' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 740203: <4FGL_J1332.0-0509_daily_bin929> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin929> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:35 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:45:40 2021
Terminated at Wed Sep  8 02:00:07 2021
Results reported at Wed Sep  8 02:00:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin929 203.02 -5.1611 480124801 480384001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.0-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            872 sec.

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

