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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin982
RA = 203.02, Dec = -5.1611
tmin = 493862401, tmax = 494121601
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='740287', job_status='RUN', time_executed='2021-09-08 01:49:51.330102', time_epoch_executed='1631090991.33' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740287

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740287/ft1_4FGL_J1332.0-0509_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740287/ft1_4FGL_J1332.0-0509_daily_bin982.fits outfile=/scratch/kocevski/740287/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin982.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=493862401.0 tmax=494121601.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.63
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740287/ft1_filtered_4FGL_J1332.0-0509_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/740287/ltcube_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.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/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits
.....................!
real 14.28
user 13.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740287/ft1_filtered_4FGL_J1332.0-0509_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/740287/ltcube_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.fits outfile=/scratch/kocevski/740287/expmap_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.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/740287/ltcube_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.fits
.....................!
real 193.01
user 187.15
sys 5.41

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/740287/ft1_filtered_4FGL_J1332.0-0509_daily_bin982.fits scfile=/scratch/kocevski/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits outfile=/scratch/kocevski/740287/cmap_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740287/ft1_filtered_4FGL_J1332.0-0509_daily_bin982.fits scfile=/scratch/kocevski/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits outfile=/scratch/kocevski/740287/cmap_HighResolution_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740287/ft1_filtered_4FGL_J1332.0-0509_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/740287/ft2_4FGL_J1332.0-0509_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740287/Model_4FGL_J1332.0-0509_daily_bin982.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/740287/ft1_filtered_4FGL_J1332.0-0509_daily_bin982.fits.....................!
real 53.69
user 52.11
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2056       1.0000         .10000E-03   10000.    
     2 'norm      '    .48988       1.0000         .10000E-03   10000.    
     3 'norm      '    .44721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.862       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3421       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.969       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.442       1.0000         .10000E-03   10000.    
    13 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8702       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.424       1.0000         .10000E-03   10000.    
    22 'norm      '    .15962E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4580       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85898       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=   6613.189     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2863 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2058        30.809        .14481E-06    .26316E-05
   2  norm          .45889        15.332       -.30984E-06    .53662E-04
   3  norm          .44716        .25390        .41736E-07    .81008E-04
   4  Prefactor     25.932        54.956       -.22518E-05    .43981E-05
   5  norm          1.3389        16.077        .57616E-05    .13613E-03
   6  norm          .10000E-03    3.1066       -.27973E-07** at limit **
   7  Prefactor     .25599        6.0399        .97246E-06   -.33694E-03
   8  Prefactor     .10000E-03    23.274       -.11054E-06** at limit **
   9  Prefactor     6.4940        9.6985        .33339E-06   -.69556E-04
  10  Prefactor     17.961        38.377        .34267E-07   -.52295E-04
  11  norm          .10000E-03    .83027       -.10860E-06** at limit **
  12  norm          15.441        8.7549        .75178E-07   -.10475E-03
  13  norm          .10000E-03    6.6058       -.13982E-06** at limit **
  14  norm          .10000E-03    8.4011       -.11821E-07** at limit **
  15  Prefactor     .10000E-03    5.5776       -.20793E-06** at limit **
  16  Prefactor     9.8685        18.517        .40406E-06   -.28900E-05
  17  Prefactor     .10000E-03    28.151       -.47886E-07** at limit **
  18  norm          .10000E-03    2.8625       -.56449E-07** at limit **
  19  Prefactor     .10000E-03    9.4291        .52674E-06** at limit **
  20  norm          3.3339        2.4146        .11187E-06    .40197E-04
  21  Prefactor     15.451        41.815        .10662E-05    .52087E-05
  22  norm          .10095E-03    10.936        .15565E-05** at limit **
  23  Normalizat    1.4581        .24100       -.22989E-05   -.13740E-03
  24  Prefactor     .85888        .14705        .94605E-06   -.26654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.20578
  norm       = 0.458889
  norm       = 0.447159
  Prefactor  = 25.9322
  norm       = 1.3389
  norm       = 0.0001
  Prefactor  = 0.255991
  Prefactor  = 0.0001
  Prefactor  = 6.49404
  Prefactor  = 17.9614
  norm       = 0.0001
  norm       = 15.4414
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.86855
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33388
  Prefactor  = 15.4513
  norm       = 0.000100948
  Normalizat = 1.45805
  Prefactor  = 0.858876
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.189     FROM HESSE     STATUS=OK           407 CALLS     3270 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2058        30.859        .13209E-03   -1.5101    
   2  norm          .45889        257.89        .61415E-02   -1.5572    
   3  norm          .44716        .24968        .28031E-04   -1.5574    
   4  Prefactor     25.932        54.726        .78773E-04   -1.4689    
   5  norm          1.3389        16.631        .37824E-03   -1.5477    
   6  norm          .10000E-03    3.1092        .13999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .25599        54.944        .35428E-02   -1.5607    
   8  Prefactor     .10000E-03    23.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4940        9.6455        .15743E-03   -1.5198    
  10  Prefactor     17.961        38.923        .94485E-04   -1.4860    
  11  norm          .10000E-03    1.6394        .14193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.441        8.8978        .10192E-03   -1.4922    
  13  norm          .10000E-03    6.6730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.4022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.8685        18.512        .12755E-03   -1.5080    
  17  Prefactor     .10000E-03    28.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8808        .13432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3339        2.4117        .10351E-03   -1.5343    
  21  Prefactor     15.451        41.772        .10198E-03   -1.4922    
  22  norm          .10095E-03    154.82        .48103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4581        .27431        .28737E-03   -.78964    
  24  Prefactor     .85888        .17043        .23292E-03   -.97593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05981e-09
Minuit parameter uncertainties:
  1  30.9124
  2  21.8498
  3  0.249682
  4  54.8319
  5  9.44063
  6  2.17695e-06
  7  7.50622
  8  4.64029e-07
  9  9.64785
  10  38.9783
  11  1.68876e-05
  12  8.89852
  13  5.70021e-06
  14  3.91019e-07
  15  3.08363e-06
  16  18.5227
  17  4.33126e-06
  18  6.23218e-07
  19  3.08506e-05
  20  2.41177
  21  41.8509
  22  0.0242978
  23  0.27459
  24  0.170532
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.689e-05  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:  8.589e-01  1.705e-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.458e+00  2.746e-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: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740287/likelihoodResults_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.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) = 6613.19228251
delta logL = -0.00291448024655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6613.18936904
delta logL = -1.00545094028e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4220       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85918       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6613.189     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      269 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    345.76        .14288E-02** at limit **
   2  alpha         2.9577        3.4313        .16471       -.50249E-07
   3  Normalizat    1.4580        .84793E-01    .28738E-03   -.17054E-02
   4  Prefactor     .85887        .54241E-01    .23292E-03   -.22090E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.95773
  Normalizat = 1.45805
  Prefactor  = 0.858875
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.189     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5527        .28576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9577        2.5272        .65883E-02    .18413    
   3  Normalizat    1.4580        .26004        .57475E-04   -.78964    
   4  Prefactor     .85887        .16803        .46584E-04   -.97593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31098e-09
Minuit parameter uncertainties:
  1  6.27819e-06
  2  108.042
  3  0.260282
  4  0.168128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740287': 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) = 6613.18935723
delta logL = 1.07983478301e-05

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  6.278e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.958e+00  1.080e+02  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:  8.589e-01  1.681e-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.458e+00  2.603e-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/740287/cmap_HighResolution_493862401_494121601_4FGL_J1332.0-0509_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='8.94e-08', time_completed='2021-09-08 02:01:35.037204', job_id='740287', GAL2='0.86', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631091695.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.08e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='982' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:01:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 740287: <4FGL_J1332.0-0509_daily_bin982> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin982> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:42 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:48 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:48 2021
Terminated at Wed Sep  8 02:01:35 2021
Results reported at Wed Sep  8 02:01:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin982 203.02 -5.1611 493862401 494121601 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             232.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            953 sec.

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

