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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin923
RA = 203.02, Dec = -5.1611
tmin = 478569601, tmax = 478828801
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='740190', job_status='RUN', time_executed='2021-09-08 01:49:27.751728', time_epoch_executed='1631090967.75' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740190/ft1_4FGL_J1332.0-0509_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740190/ft1_4FGL_J1332.0-0509_daily_bin923.fits outfile=/scratch/kocevski/740190/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin923.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=478569601.0 tmax=478828801.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.51
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740190/ft1_filtered_4FGL_J1332.0-0509_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/740190/ltcube_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.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/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits
.....................!
real 17.34
user 16.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740190/ft1_filtered_4FGL_J1332.0-0509_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/740190/ltcube_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.fits outfile=/scratch/kocevski/740190/expmap_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.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/740190/ltcube_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.fits
.....................!
real 194.32
user 189.07
sys 4.70

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/740190/ft1_filtered_4FGL_J1332.0-0509_daily_bin923.fits scfile=/scratch/kocevski/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits outfile=/scratch/kocevski/740190/cmap_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740190/ft1_filtered_4FGL_J1332.0-0509_daily_bin923.fits scfile=/scratch/kocevski/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits outfile=/scratch/kocevski/740190/cmap_HighResolution_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740190/ft1_filtered_4FGL_J1332.0-0509_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/740190/ft2_4FGL_J1332.0-0509_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740190/Model_4FGL_J1332.0-0509_daily_bin923.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/740190/ft1_filtered_4FGL_J1332.0-0509_daily_bin923.fits.....................!
real 46.49
user 45.10
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15282E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    96.373       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4434       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5189       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0857       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7665       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4737       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4320       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1419       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.693       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1887       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85251       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=   5698.139     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2708 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.36       -.65338E-05** at limit **
   2  norm          96.357        47.219       -.75253E-05   -.12797E-03
   3  norm          1.4436        .34176       -.36276E-08    .17135E-03
   4  Prefactor     .10000E-03    62.019        .45983E-05** at limit **
   5  norm          5.5172        10.614       -.17736E-05   -.48106E-04
   6  norm          .10000E-03    4.6618       -.59890E-07** at limit **
   7  Prefactor     .10000E-03    4.3879       -.23943E-06** at limit **
   8  Prefactor     12.625        25.194       -.16137E-05   -.67370E-05
   9  Prefactor     2.0853        4.0116        .70462E-06   -.25759E-02
  10  Prefactor     .10000E-03    15.083       -.10534E-04** at limit **
  11  norm          1.7662        1.5000       -.13107E-06   -.30673E-04
  12  norm          3.4751        3.0553        .96531E-07    .57176E-03
  13  norm          .10000E-03    2.3094        .34223E-06** at limit **
  14  norm          .10000E-03    11.433       -.94837E-05** at limit **
  15  Prefactor     .10000E-03    3.3818       -.10196E-05** at limit **
  16  Prefactor     .10000E-03    14.504        .92372E-05** at limit **
  17  Prefactor     .10000E-03    12.111        .86663E-05** at limit **
  18  norm          3.1076        6.4568        .12551E-05   -.15182E-02
  19  Prefactor     9.4316        11.300       -.17906E-07   -.44300E-04
  20  norm          3.1414        2.7777        .21855E-07   -.17467E-02
  21  Prefactor     31.686        32.407       -.28005E-05   -.39919E-04
  22  norm          .10000E-03    8.2598        .14860E-05** at limit **
  23  Normalizat    1.1891        .23314        .97828E-06    .98324E-04
  24  Prefactor     .85228        .14584        .41275E-06    .20623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 96.3568
  norm       = 1.44358
  Prefactor  = 0.0001
  norm       = 5.51721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6247
  Prefactor  = 2.08527
  Prefactor  = 0.0001
  norm       = 1.76616
  norm       = 3.47515
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.10756
  Prefactor  = 9.43163
  norm       = 3.1414
  Prefactor  = 31.6864
  norm       = 0.0001
  Normalizat = 1.18912
  Prefactor  = 0.852282
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.139     FROM HESSE     STATUS=OK           397 CALLS     3105 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          96.357        47.364        .20472E-03   -1.3742    
   3  norm          1.4436        .34236        .20377E-04   -1.5468    
   4  Prefactor     .10000E-03    62.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5172        10.604        .17103E-03   -1.5238    
   6  norm          .10000E-03    4.6704        .15918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4048        .15441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.625        25.485        .11267E-03   -1.4997    
   9  Prefactor     2.0853        5.8234        .14295E-02   -1.5419    
  10  Prefactor     .10000E-03    15.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7662        1.4884        .81086E-04   -1.5442    
  12  norm          3.4751        3.0472        .11893E-03   -1.5335    
  13  norm          .10000E-03    2.3153        .11198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5342        .26046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1076        7.2501        .11513E-02   -1.5355    
  19  Prefactor     9.4316        11.299        .13049E-03   -1.5094    
  20  norm          3.1414        2.8285        .57721E-03   -1.5353    
  21  Prefactor     31.686        32.477        .71174E-04   -1.4582    
  22  norm          .10000E-03    8.2652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1891        .27616        .29580E-03   -.86940    
  24  Prefactor     .85228        .17251        .22334E-03   -.97829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65044e-08
Minuit parameter uncertainties:
  1  4.85403e-05
  2  47.383
  3  0.342365
  4  0.000252066
  5  10.6075
  6  7.3729e-07
  7  5.07825e-06
  8  25.5071
  9  5.82501
  10  0.000170511
  11  1.48841
  12  3.04734
  13  9.56306e-07
  14  0.000132308
  15  0.000104989
  16  0.000122506
  17  0.000120949
  18  7.25213
  19  11.3013
  20  2.82859
  21  32.4953
  22  1.47976e-05
  23  0.276495
  24  0.172623
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.766e+00  1.488e+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:  8.523e-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.189e+00  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.34e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/740190/likelihoodResults_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.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) = 5698.10485637
delta logL = 0.0344979562296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.10047751
delta logL = 0.0388768130797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6385       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6083       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85685       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=   5698.100     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6386        37.686        .82538E-02    .55548E-03
   2  alpha         2.6095        2.8934        .41201        .24890E-04
   3  Normalizat    1.1797        .87692E-01    .67092E-01    .30960E-04
   4  Prefactor     .85663        .61659E-01    .44453E-01    .13293E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63863
  alpha      = 2.60946
  Normalizat = 1.17969
  Prefactor  = 0.856628
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.100     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6386        1.5405        .76173E-04   -1.5452    
   2  alpha         2.6095        .79946        .18067E-01    .43799E-01
   3  Normalizat    1.1797        .26156        .29682E-03   -.87233    
   4  Prefactor     .85663        .16929        .22284E-03   -.97674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29552e-12
Minuit parameter uncertainties:
  1  1.54052
  2  0.813779
  3  0.26185
  4  0.169395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740190': 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) = 5698.10047495
delta logL = 0.0388793681777

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.639e+00  1.541e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.609e+00  8.138e-01  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.566e-01  1.694e-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.180e+00  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.61 +/- 0.81
Photon Flux (Free Index): 6.06e-08 +/- 5.37e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/740190/cmap_HighResolution_478569601_478828801_4FGL_J1332.0-0509_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-05', comment='SUCCESS', photon_flux='5.34e-08', energy_flux2='1.56e-05', photon_flux_error='4.50e-08', dlogl='3.89e-02', energy_flux='1.61e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-08 02:00:03.311755', photon_index_error2='0.81', photon_index2='2.61', ts='2.14', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.32e-05', EG='1.19', time_epoch_completed='1631091603.31', return_code='0', job_id='740190', GAL2='0.86', EG2='1.18', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.37e-08', ts2='2.21', photon_index='2.39' WHERE bin_id='923' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:00:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 740190: <4FGL_J1332.0-0509_daily_bin923> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin923 203.02 -5.1611 478569601 478828801 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 :                                   631.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            868 sec.

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

