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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin425
RA = 203.02, Dec = -5.1611
tmin = 349488001, tmax = 349747201
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='737228', job_status='RUN', time_executed='2021-09-08 01:36:33.062042', time_epoch_executed='1631090193.06' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737228/ft1_4FGL_J1332.0-0509_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737228/ft1_4FGL_J1332.0-0509_daily_bin425.fits outfile=/scratch/kocevski/737228/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin425.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=349488001.0 tmax=349747201.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 2.89
user 2.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737228/ft1_filtered_4FGL_J1332.0-0509_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/737228/ltcube_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.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/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits
.....................!
real 11.31
user 10.96
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737228/ft1_filtered_4FGL_J1332.0-0509_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/737228/ltcube_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.fits outfile=/scratch/kocevski/737228/expmap_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.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/737228/ltcube_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.fits
.....................!
real 155.45
user 150.96
sys 3.78

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/737228/ft1_filtered_4FGL_J1332.0-0509_daily_bin425.fits scfile=/scratch/kocevski/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits outfile=/scratch/kocevski/737228/cmap_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737228/ft1_filtered_4FGL_J1332.0-0509_daily_bin425.fits scfile=/scratch/kocevski/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits outfile=/scratch/kocevski/737228/cmap_HighResolution_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.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.49
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737228/ft1_filtered_4FGL_J1332.0-0509_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/737228/ft2_4FGL_J1332.0-0509_daily_bin425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737228/Model_4FGL_J1332.0-0509_daily_bin425.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/737228/ft1_filtered_4FGL_J1332.0-0509_daily_bin425.fits.....................!
real 48.78
user 46.93
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5563       1.0000         .10000E-03   10000.    
     6 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8082       1.0000         .10000E-03   10000.    
    11 'norm      '    .24242       1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.4447       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.409       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6947       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3524       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.098       1.0000         .10000E-03   10000.    
    22 'norm      '    24.558       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5813       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68305       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=   7276.689     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2745 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.382        .32099E-04** at limit **
   2  norm          .10000E-03    6.5797        .86476E-06** at limit **
   3  norm          1.2994        .26605       -.17747E-07   -.19177E-02
   4  Prefactor     .10000E-03    32.973       -.14495E-04** at limit **
   5  norm          5.5564        7.2169       -.19505E-06   -.51250E-04
   6  norm          .10000E-03    13.058        .12693E-04** at limit **
   7  Prefactor     .10000E-03    2.6150        .57775E-07** at limit **
   8  Prefactor     .10000E-03    5.8980       -.83818E-07** at limit **
   9  Prefactor     .10065E-03    3.8629       -.98929E-06** at limit **
  10  Prefactor     9.8086        13.491       -.23730E-06    .15056E-04
  11  norm          .24259        .89822       -.60797E-06   -.83525E-03
  12  norm          .10000E-03    1.6637        .41828E-07** at limit **
  13  norm          7.4441        5.2802        .21589E-06    .16899E-04
  14  norm          .10000E-03    12.397       -.85464E-05** at limit **
  15  Prefactor     .10000E-03    3.0079       -.11992E-06** at limit **
  16  Prefactor     .10000E-03    18.070       -.23704E-05** at limit **
  17  Prefactor     23.408        27.537       -.44630E-06    .21206E-05
  18  norm          5.6944        5.5829       -.10700E-06   -.14254E-03
  19  Prefactor     .10000E-03    4.5863       -.23369E-06** at limit **
  20  norm          5.3523        2.9595       -.32789E-07   -.92658E-04
  21  Prefactor     21.099        24.429        .17605E-06    .61126E-05
  22  norm          24.558        17.876       -.70150E-07    .32794E-05
  23  Normalizat    1.5813        .20684        .69805E-06    .17250E-03
  24  Prefactor     .68305        .13042       -.34142E-06    .15684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.29943
  Prefactor  = 0.0001
  norm       = 5.55641
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100652
  Prefactor  = 9.80856
  norm       = 0.242589
  norm       = 0.0001
  norm       = 7.44413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4084
  norm       = 5.69439
  Prefactor  = 0.0001
  norm       = 5.35227
  Prefactor  = 21.0987
  norm       = 24.5579
  Normalizat = 1.58129
  Prefactor  = 0.683052
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.689     FROM HESSE     STATUS=OK           397 CALLS     3142 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.5816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2994        .26673        .19105E-04   -1.5480    
   4  Prefactor     .10000E-03    33.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5564        7.2131        .17044E-03   -1.5236    
   6  norm          .10000E-03    13.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6251        .13470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10065E-03    67.225        .31872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8086        13.374        .12795E-03   -1.5081    
  11  norm          .24259        1.4675        .14583E-02   -1.5609    
  12  norm          .10000E-03    1.6714        .10666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.4441        5.2712        .14699E-03   -1.5162    
  14  norm          .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0518        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.408        27.546        .82790E-04   -1.4740    
  18  norm          5.6944        5.5769        .16832E-03   -1.5231    
  19  Prefactor     .10000E-03    4.5978        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3523        2.9593        .10444E-03   -1.5245    
  21  Prefactor     21.099        24.429        .87202E-04   -1.4789    
  22  norm          24.558        17.877        .80833E-04   -1.4716    
  23  Normalizat    1.5813        .23999        .26605E-03   -.75519    
  24  Prefactor     .68305        .15199        .24768E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31244e-09
Minuit parameter uncertainties:
  1  0.000101173
  2  5.22861e-07
  3  0.266732
  4  3.61705e-05
  5  7.21418
  6  7.47091e-05
  7  8.85532e-07
  8  1.11048e-06
  9  0.0132537
  10  13.3784
  11  1.1931
  12  1.50524e-06
  13  5.27156
  14  2.92032e-06
  15  1.11119e-06
  16  3.12579e-06
  17  27.5611
  18  5.57744
  19  6.30504e-07
  20  2.95943
  21  24.4411
  22  17.8806
  23  0.240163
  24  0.152086
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.426e-01  1.193e+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:  6.831e-01  1.521e-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.581e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/737228/likelihoodResults_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.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) = 7276.50521476
delta logL = 0.183454233133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7276.47974346
delta logL = 0.208925531666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12955       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70159       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=   7276.480     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12842        4.5484        .96512E-02    .93080E-02
   2  alpha         4.3913        2.7071        .50000        .62315E-04
   3  Normalizat    1.5381        .43465E-01    .60845E-01   -.35768E-03
   4  Prefactor     .70134        .27878E-01    .42422E-01   -.23922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.128424
  alpha      = 4.39128
  Normalizat = 1.5381
  Prefactor  = 0.70134
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.480     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12842        15.155        .46417E-04   -1.5636    
   2  alpha         4.3913        3.4632        .70869E-01    .85796    
   3  Normalizat    1.5381        .18605        .26908E-03   -.76713    
   4  Prefactor     .70134        .11994        .24475E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10901e-08
Minuit parameter uncertainties:
  1  2.78978
  2  16.7888
  3  0.186129
  4  0.119986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737228': 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): 102
logL (Free Index) = 7276.47973247
delta logL = 0.208936527261

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.284e-01  2.790e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.391e+00  1.679e+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:  7.013e-01  1.200e-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.538e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/737228/cmap_HighResolution_349488001_349747201_4FGL_J1332.0-0509_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-08 01:46:30.988703', job_id='737228', GAL2='0.70', fit_tolerance='1e-08', EG2='1.54', EG='1.58', time_epoch_completed='1631090790.99', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.09e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='425' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 737228: <4FGL_J1332.0-0509_daily_bin425> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin425> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:28 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:36:13 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:36:13 2021
Terminated at Wed Sep  8 01:46:31 2021
Results reported at Wed Sep  8 01:46:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin425 203.02 -5.1611 349488001 349747201 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 :                                   591.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            663 sec.

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

