/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 238 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin109
RA = 203.02, Dec = -5.1611
tmin = 267580801, tmax = 267840001
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='734733', job_status='RUN', time_executed='2021-09-08 01:30:11.760876', time_epoch_executed='1631089811.76' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734733

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734733/ft1_4FGL_J1332.0-0509_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734733/ft1_4FGL_J1332.0-0509_daily_bin109.fits outfile=/scratch/kocevski/734733/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin109.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.41
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734733/ft1_filtered_4FGL_J1332.0-0509_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/734733/ltcube_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.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/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits
.....................!
real 17.43
user 16.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734733/ft1_filtered_4FGL_J1332.0-0509_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/734733/ltcube_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.fits outfile=/scratch/kocevski/734733/expmap_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.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/734733/ltcube_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.fits
.....................!
real 191.75
user 186.80
sys 4.39

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/734733/ft1_filtered_4FGL_J1332.0-0509_daily_bin109.fits scfile=/scratch/kocevski/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits outfile=/scratch/kocevski/734733/cmap_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.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.64
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734733/ft1_filtered_4FGL_J1332.0-0509_daily_bin109.fits scfile=/scratch/kocevski/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits outfile=/scratch/kocevski/734733/cmap_HighResolution_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.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.68
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734733/ft1_filtered_4FGL_J1332.0-0509_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/734733/ft2_4FGL_J1332.0-0509_daily_bin109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734733/Model_4FGL_J1332.0-0509_daily_bin109.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/734733/ft1_filtered_4FGL_J1332.0-0509_daily_bin109.fits.....................!
real 53.10
user 51.37
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2359       1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.180       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11245E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34600E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1148       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.329       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.9636       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0004       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3864       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79609       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=   6592.215     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2692 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.308       -.15449E-05** at limit **
   2  norm          .10000E-03    13.530       -.87082E-06** at limit **
   3  norm          1.2359        .28029       -.95649E-09    .36210E-04
   4  Prefactor     72.183        54.883        .98970E-06    .11461E-03
   5  norm          .10000E-03    4.8461        .11458E-05** at limit **
   6  norm          .10000E-03    38.723       -.96178E-06** at limit **
   7  Prefactor     .10000E-03    6.6804       -.39853E-06** at limit **
   8  Prefactor     .10000E-03    17.560        .19199E-05** at limit **
   9  Prefactor     9.4460        8.7985        .14032E-05   -.54791E-03
  10  Prefactor     .10000E-03    12.253        .54162E-06** at limit **
  11  norm          2.1149        1.4854        .15438E-07   -.10307E-03
  12  norm          .10000E-03    1.6157       -.16261E-07** at limit **
  13  norm          17.329        7.7136        .10009E-07    .36274E-03
  14  norm          .10000E-03    13.336       -.59600E-06** at limit **
  15  Prefactor     .10000E-03    3.1703       -.16081E-05** at limit **
  16  Prefactor     17.785        20.573        .10255E-05    .21467E-03
  17  Prefactor     .10000E-03    10.011       -.28935E-06** at limit **
  18  norm          8.9635        6.0815        .62128E-06   -.19622E-03
  19  Prefactor     .10000E-03    6.3138       -.13788E-06** at limit **
  20  norm          2.0006        1.8599        .24393E-07    .30911E-04
  21  Prefactor     .10000E-03    11.091        .12824E-05** at limit **
  22  norm          .10000E-03    4.7506        .33328E-06** at limit **
  23  Normalizat    1.3863        .22135       -.58452E-06    .22050E-03
  24  Prefactor     .79607        .14086       -.68680E-07    .24317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 1.23593
  Prefactor  = 72.1828
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 9.44602
  Prefactor  = 0.0001
  norm       = 2.11488
  norm       = 0.0001
  norm       = 17.329
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.7854
  Prefactor  = 0.0001
  norm       = 8.96348
  Prefactor  = 0.0001
  norm       = 2.00061
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.3863
  Prefactor  = 0.796068
 **********
 **   18 **HESSE 
 **********

 FCN=   6592.215     FROM HESSE     STATUS=OK           393 CALLS     3085 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2359        .28077        .19566E-04   -1.5486    
   4  Prefactor     72.183        55.117        .47254E-04   -1.4007    
   5  norm          .10000E-03    5.1091        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    40.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.799        .40057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4460        9.6306        .65172E-03   -1.5093    
  10  Prefactor     .10000E-03    12.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1149        1.4794        .78773E-04   -1.5417    
  12  norm          .10000E-03    1.6263        .10056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.329        7.6847        .96213E-04   -1.4875    
  14  norm          .10000E-03    13.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9662        .24752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.785        20.760        .94983E-04   -1.4864    
  17  Prefactor     .10000E-03    10.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.9635        6.2872        .66937E-03   -1.5109    
  19  Prefactor     .10000E-03    6.3636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0006        1.8567        .10323E-03   -1.5425    
  21  Prefactor     .10000E-03    11.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.7749        .17326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3863        .26268        .28020E-03   -.81026    
  24  Prefactor     .79607        .16655        .23417E-03   -.99873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69186e-09
Minuit parameter uncertainties:
  1  0.000353087
  2  0.000192477
  3  0.280771
  4  55.1563
  5  0.000147458
  6  0.000286294
  7  0.000117957
  8  0.000470143
  9  9.63219
  10  0.000121085
  11  1.47939
  12  8.02134e-08
  13  7.68517
  14  0.000130562
  15  0.000173899
  16  20.7688
  17  5.28194e-05
  18  6.28761
  19  2.79833e-05
  20  1.85675
  21  0.000254346
  22  4.31372e-05
  23  0.262937
  24  0.166658
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.115e+00  1.479e+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:  7.961e-01  1.667e-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.386e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/734733/likelihoodResults_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.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) = 6591.39253632
delta logL = 0.821983044913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6591.3798213
delta logL = 0.834698065857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98187       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6245       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83547       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=   6591.380     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      238 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97849        8.5343        .95937E-02    .55359E-03
   2  alpha         3.6271        4.3130        .35458        .45293E-04
   3  Normalizat    1.3083        .69089E-01    .64826E-01   -.34951E-05
   4  Prefactor     .83552        .46056E-01    .44177E-01    .10532E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.978485
  alpha      = 3.62706
  Normalizat = 1.30827
  Prefactor  = 0.835517
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.380     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97849        1.7544        .43337E-04   -1.5510    
   2  alpha         3.6271        1.3639        .15339E-02    .46769    
   3  Normalizat    1.3083        .26140        .28676E-03   -.83320    
   4  Prefactor     .83552        .16979        .22928E-03   -.98432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92816e-13
Minuit parameter uncertainties:
  1  1.75451
  2  1.46742
  3  0.261668
  4  0.169893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734733': 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) = 6591.37981911
delta logL = 0.834700253116

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.785e-01  1.755e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.627e+00  1.467e+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:  8.355e-01  1.699e-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.308e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.63 +/- 1.47
Photon Flux (Free Index): 1.13e-07 +/- 6.44e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/734733/cmap_HighResolution_267580801_267840001_4FGL_J1332.0-0509_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='1.92e-05', photon_flux_error='4.47e-08', dlogl='8.35e-01', energy_flux='1.92e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-08 01:41:37.515579', photon_index_error2='1.47', photon_index2='3.63', ts='3.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.20e-05', EG='1.39', time_epoch_completed='1631090497.52', return_code='0', job_id='734733', GAL2='0.84', EG2='1.31', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.44e-08', ts2='4.83', photon_index='2.39' WHERE bin_id='109' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 734733: <4FGL_J1332.0-0509_daily_bin109> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin109> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:47 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:26:02 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:26:02 2021
Terminated at Wed Sep  8 01:41:38 2021
Results reported at Wed Sep  8 01:41:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin109 203.02 -5.1611 267580801 267840001 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            951 sec.

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

