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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin893
RA = 203.02, Dec = -5.1611
tmin = 470793601, tmax = 471052801
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='740138', job_status='RUN', time_executed='2021-09-08 01:47:28.909734', time_epoch_executed='1631090848.91' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740138

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740138/ft1_4FGL_J1332.0-0509_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740138/ft1_4FGL_J1332.0-0509_daily_bin893.fits outfile=/scratch/kocevski/740138/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin893.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=470793601.0 tmax=471052801.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.02
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.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/740138/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.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.54
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/740138/ltcube_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.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/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits
.....................!
real 16.76
user 16.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/740138/ltcube_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.fits outfile=/scratch/kocevski/740138/expmap_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.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/740138/ltcube_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.fits
.....................!
real 192.55
user 187.21
sys 4.59

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/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits scfile=/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits outfile=/scratch/kocevski/740138/cmap_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits scfile=/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits outfile=/scratch/kocevski/740138/cmap_HighResolution_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740138/Model_4FGL_J1332.0-0509_daily_bin893.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/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits.....................!
real 54.81
user 52.72
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits', '/scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits', expMap='/scratch/kocevski/740138/expmap_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.fits', expCube='/scratch/kocevski/740138/ltcube_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740138/Model_4FGL_J1332.0-0509_daily_bin893.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/740138/ft1_filtered_4FGL_J1332.0-0509_daily_bin893.fits
Spacecraft file(s): /scratch/kocevski/740138/ft2_4FGL_J1332.0-0509_daily_bin893.fits
Exposure map: /scratch/kocevski/740138/expmap_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.fits
Exposure cube: /scratch/kocevski/740138/ltcube_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740138/Model_4FGL_J1332.0-0509_daily_bin893.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) = 6597.31557092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7056       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1492       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.707       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8322       1.0000         .10000E-03   10000.    
    20 'norm      '    4.3637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6908       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .42100       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=   6597.168     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2361 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.034       -.84048E-05** at limit **
   2  norm          9.7053        22.387       -.33098E-06   -.13302E-04
   3  norm          2.4456        .36533       -.69991E-08    .44234E-03
   4  Prefactor     .10000E-03    36.288        .41668E-05** at limit **
   5  norm          .10000E-03    12.663       -.10453E-06** at limit **
   6  norm          .10000E-03    2.8290        .92033E-08** at limit **
   7  Prefactor     8.1494        9.1925       -.17886E-06   -.16201E-03
   8  Prefactor     .10000E-03    6.2622       -.27209E-06** at limit **
   9  Prefactor     .10000E-03    2.3378        .54190E-07** at limit **
  10  Prefactor     .10000E-03    53.549        .23003E-04** at limit **
  11  norm          .10000E-03    .78811       -.27110E-07** at limit **
  12  norm          10.707        4.0987       -.16946E-05   -.96214E-03
  13  norm          .10000E-03    4.1142        .26604E-06** at limit **
  14  norm          .10000E-03    20.703        .12901E-05** at limit **
  15  Prefactor     10.975        6.6436       -.17726E-06   -.20261E-03
  16  Prefactor     .10000E-03    6.8502        .33274E-06** at limit **
  17  Prefactor     .10001E-03    70.749       -.20993E-04** at limit **
  18  norm          .10000E-03    2.3663        .14028E-07** at limit **
  19  Prefactor     7.8312        13.522       -.82576E-07   -.68435E-04
  20  norm          4.3636        3.1024       -.19112E-06   -.30786E-03
  21  Prefactor     .10000E-03    13.238        .13629E-06** at limit **
  22  norm          .10000E-03    9.8044       -.35452E-06** at limit **
  23  Normalizat    1.6909        .21809        .43348E-06   -.15240E-03
  24  Prefactor     .42093        .13281        .55978E-06   -.10677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.70527
  norm       = 2.44564
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.14939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7072
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9747
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 7.83124
  norm       = 4.3636
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.69093
  Prefactor  = 0.420932
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.168     FROM HESSE     STATUS=OK           389 CALLS     2750 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.7053        22.379        .12863E-03   -1.5085    
   3  norm          2.4456        .36672        .18114E-04   -1.5395    
   4  Prefactor     .10000E-03    36.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8303        .13342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1494        9.1866        .14044E-03   -1.5137    
   8  Prefactor     .10000E-03    6.2737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3428        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2517        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.707        4.2095        .99370E-04   -1.5053    
  13  norm          .10000E-03    4.1872        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.975        6.6600        .12093E-03   -1.5045    
  16  Prefactor     .10000E-03    6.8541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    69.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3715        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8312        13.530        .14328E-03   -1.5148    
  20  norm          4.3636        3.1011        .11451E-03   -1.5290    
  21  Prefactor     .10000E-03    13.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6909        .25468        .25369E-03   -.72546    
  24  Prefactor     .42093        .15267        .29165E-03   -1.1575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33949e-10
Minuit parameter uncertainties:
  1  0.000407691
  2  22.3981
  3  0.36672
  4  0.000224515
  5  1.64766e-05
  6  4.40244e-07
  7  9.18818
  8  2.60424e-06
  9  2.45599e-06
  10  0.000136668
  11  8.17118e-06
  12  4.20962
  13  5.34086e-05
  14  6.23671e-05
  15  6.66043
  16  1.0324e-05
  17  0.00162111
  18  1.86322e-06
  19  13.5352
  20  3.1012
  21  8.40958e-06
  22  5.56578e-06
  23  0.254874
  24  0.152817
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  8.171e-06  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:  4.209e-01  1.528e-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:  1.691e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740138/likelihoodResults_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.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) = 6597.17036449
delta logL = -0.00213346758756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6597.16822657
delta logL = 4.44394572696e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12411E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3005       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42093       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=   6597.150     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      278 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16462        .73082        .24785E-01   -.19007E-02
   2  alpha         1.5472        1.6090        .41318       -.21773E-04
   3  Normalizat    1.6924        .21275        .57355E-01   -.52283E-04
   4  Prefactor     .41799        .13145        .66095E-01   -.12823E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.164619
  alpha      = 1.54718
  Normalizat = 1.69237
  Prefactor  = 0.417993
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.150     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16462        1.2249        .13062E-02   -1.5789    
   2  alpha         1.5472        1.7625        .58875E-01   -.39101    
   3  Normalizat    1.6924        .24637        .25359E-03   -.72507    
   4  Prefactor     .41799        .15243        .29259E-03   -1.1590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02006e-09
Minuit parameter uncertainties:
  1  0.897827
  2  2.0045
  3  0.246549
  4  0.152573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740138': 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) = 6597.15019382
delta logL = 0.01803719689

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.646e-01  8.978e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.547e+00  2.005e+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:  4.180e-01  1.526e-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:  1.692e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.020 -5.161

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/740138/cmap_HighResolution_470793601_471052801_4FGL_J1332.0-0509_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-08 01:59:04.768347', job_id='740138', GAL2='0.42', fit_tolerance='1e-08', EG2='1.69', EG='1.69', time_epoch_completed='1631091544.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.80e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='893' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:59:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 740138: <4FGL_J1332.0-0509_daily_bin893> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin893> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:31 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:33 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:33 2021
Terminated at Wed Sep  8 01:59:05 2021
Results reported at Wed Sep  8 01:59:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin893 203.02 -5.1611 470793601 471052801 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 :                                   669.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

