/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 106 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin414
RA = 203.02, Dec = -5.1611
tmin = 346636801, tmax = 346896001
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='737212', job_status='RUN', time_executed='2021-09-08 01:37:49.522165', time_epoch_executed='1631090269.52' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737212

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737212/ft1_4FGL_J1332.0-0509_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737212/ft1_4FGL_J1332.0-0509_daily_bin414.fits outfile=/scratch/kocevski/737212/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin414.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=346636801.0 tmax=346896001.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.49
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737212/ft1_filtered_4FGL_J1332.0-0509_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/737212/ltcube_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.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/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits
.....................!
real 13.59
user 13.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737212/ft1_filtered_4FGL_J1332.0-0509_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/737212/ltcube_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.fits outfile=/scratch/kocevski/737212/expmap_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.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/737212/ltcube_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.fits
.....................!
real 191.57
user 186.35
sys 4.13

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/737212/ft1_filtered_4FGL_J1332.0-0509_daily_bin414.fits scfile=/scratch/kocevski/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits outfile=/scratch/kocevski/737212/cmap_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737212/ft1_filtered_4FGL_J1332.0-0509_daily_bin414.fits scfile=/scratch/kocevski/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits outfile=/scratch/kocevski/737212/cmap_HighResolution_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737212/ft1_filtered_4FGL_J1332.0-0509_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/737212/ft2_4FGL_J1332.0-0509_daily_bin414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737212/Model_4FGL_J1332.0-0509_daily_bin414.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/737212/ft1_filtered_4FGL_J1332.0-0509_daily_bin414.fits....................!
real 56.29
user 54.82
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.697       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11191E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .60485E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3657       1.0000         .10000E-03   10000.    
    13 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10713E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.035       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2956       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.874       1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1915       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97009       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=   6787.806     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3179 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.745        .90712E-02** at limit **
   2  norm          .10000E-03    10.478        .90712E-02** at limit **
   3  norm          1.1759        .28359        .46585E-02    .39287E-03
   4  Prefactor     .10000E-03    15.131        .90712E-02** at limit **
   5  norm          10.699        9.3220        .30625E-02   -.20239E-03
   6  norm          2.6518        8.3530        .62596E-02    .36411E-03
   7  Prefactor     13.002        9.2844        .27771E-02    .10393E-03
   8  Prefactor     .10000E-03    12.021        .90712E-02** at limit **
   9  Prefactor     23.552        10.708        .20636E-02   -.43572E-03
  10  Prefactor     .10000E-03    23.452        .90712E-02** at limit **
  11  norm          .10000E-03    .56667        .54193E-01** at limit **
  12  norm          1.3666        2.5891        .93345E-02    .92514E-03
  13  norm          .10000E-03    4.5840        .90712E-02** at limit **
  14  norm          .10003E-03    26.000        .14211    ** at limit **
  15  Prefactor     12.602        6.3720        .28207E-02    .25797E-03
  16  Prefactor     9.7003        19.910        .32168E-02   -.29170E-03
  17  Prefactor     70.050        49.552        .11992E-02    .95766E-03
  18  norm          .10000E-03    6.0958        .90712E-02** at limit **
  19  Prefactor     9.2977        11.581        .32862E-02    .16172E-02
  20  norm          .10000E-03    .54092        .90712E-02** at limit **
  21  Prefactor     38.881        35.661        .16071E-02    .12033E-02
  22  norm          .10000E-03    7.6232        .90712E-02** at limit **
  23  Normalizat    1.1918        .22354        .69880E-01    .10531E-03
  24  Prefactor     .96993        .14553        .45892E-01    .73178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.17595
  Prefactor  = 0.0001
  norm       = 10.6995
  norm       = 2.65183
  Prefactor  = 13.0015
  Prefactor  = 0.0001
  Prefactor  = 23.5524
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 1.3666
  norm       = 0.0001
  norm       = 0.000100031
  Prefactor  = 12.6017
  Prefactor  = 9.70033
  Prefactor  = 70.0504
  norm       = 0.0001
  Prefactor  = 9.29772
  norm       = 0.0001
  Prefactor  = 38.8812
  norm       = 0.0001
  Normalizat = 1.19183
  Prefactor  = 0.969935
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.806     FROM HESSE     STATUS=OK           411 CALLS     3590 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1759        .28390        .20623E-04   -1.5491    
   4  Prefactor     .10000E-03    15.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.699        9.3243        .12250E-03   -1.5054    
   6  norm          2.6518        8.3450        .25039E-03   -1.5382    
   7  Prefactor     13.002        9.2818        .11108E-03   -1.4987    
   8  Prefactor     .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.552        10.728        .82544E-04   -1.4737    
  10  Prefactor     .10000E-03    23.571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2902        .20811E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3666        2.5220        .17266E-03   -1.5474    
  13  norm          .10000E-03    4.6659        .17194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    26.962        .13802       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.602        6.3589        .11283E-03   -1.4998    
  16  Prefactor     9.7003        19.908        .12867E-03   -1.5085    
  17  Prefactor     70.050        49.704        .47967E-04   -1.4032    
  18  norm          .10000E-03    6.1544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2977        11.569        .13145E-03   -1.5098    
  20  norm          .10000E-03    .54284        .59167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.881        35.685        .64285E-04   -1.4460    
  22  norm          .10000E-03    7.6363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1918        .26613        .30920E-03   -.86856    
  24  Prefactor     .96993        .17250        .22448E-03   -.93739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15088e-08
Minuit parameter uncertainties:
  1  0.000103087
  2  1.8931e-05
  3  0.283896
  4  3.99532e-05
  5  9.32559
  6  8.34864
  7  9.28286
  8  2.56134e-05
  9  10.7286
  10  4.37463e-05
  11  0.000169797
  12  2.52217
  13  1.66626e-05
  14  0.00181564
  15  6.35928
  16  19.9216
  17  49.7335
  18  8.38471e-06
  19  11.5721
  20  1.54043e-06
  21  35.7049
  22  2.86083e-06
  23  0.266429
  24  0.172594
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.698e-04  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:  9.699e-01  1.726e-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.192e+00  2.664e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737212/likelihoodResults_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.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) = 6787.80586944
delta logL = -6.07204292464e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6785.71910661
delta logL = 2.08670210423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20116       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0479       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6785.719     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      302 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20113        .11948        .20226E-04   -.14614E-04
   2  alpha         5.0000        3.2833        .54312E-01** at limit **
   3  Normalizat    1.0046        .26559        .33252E-03   -.20514E-04
   4  Prefactor     1.0479        .17222        .21678E-03   -.18093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.20113
  alpha      = 5
  Normalizat = 1.00455
  Prefactor  = 1.04788
 **********
 **   18 **HESSE 
 **********

 FCN=   6785.719     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20113        .11763        .80903E-06   -1.5618    
   2  alpha         5.0000        3.2843        .21725E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0046        .26586        .13301E-04   -.92878    
   4  Prefactor     1.0479        .17240        .86712E-05   -.91150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77114e-09
Minuit parameter uncertainties:
  1  0.117632
  2  0.0002173
  3  0.266213
  4  0.172487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737212': 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) = 6785.7191064
delta logL = 2.08670231898

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.011e-01  1.176e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  2.173e-04  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.048e+00  1.725e-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.005e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.41e-07 +/- 8.23e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.13e-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/737212/cmap_HighResolution_346636801_346896001_4FGL_J1332.0-0509_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', comment='SUCCESS', energy_flux2='1.94e-05', dlogl='2.09e+00', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-08 01:50:08.331683', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.13e-05', EG='1.19', time_epoch_completed='1631091008.33', return_code='0', job_id='737212', GAL2='1.05', EG2='1.00', return_code2='0', photon_flux_error2='8.23e-08', ts2='4.61', photon_index='2.39' WHERE bin_id='414' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 737212: <4FGL_J1332.0-0509_daily_bin414> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin414> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:27 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:35:54 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:35:54 2021
Terminated at Wed Sep  8 01:50:09 2021
Results reported at Wed Sep  8 01:50:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin414 203.02 -5.1611 346636801 346896001 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            882 sec.

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

