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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin719
RA = 203.02, Dec = -5.1611
tmin = 425692801, tmax = 425952001
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='738772', job_status='RUN', time_executed='2021-09-08 01:44:26.299366', time_epoch_executed='1631090666.3' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738772/ft1_4FGL_J1332.0-0509_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738772/ft1_4FGL_J1332.0-0509_daily_bin719.fits outfile=/scratch/kocevski/738772/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin719.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=425692801.0 tmax=425952001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.63
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.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/738772/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin719.fits evtable="EVENTS" outfile="/scratch/kocevski/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.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.68
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/738772/ltcube_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.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/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits
.....................!
real 17.58
user 17.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/738772/ltcube_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.fits outfile=/scratch/kocevski/738772/expmap_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.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/738772/ltcube_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.fits
.....................!
real 195.22
user 189.17
sys 4.92

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/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.fits scfile=/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits outfile=/scratch/kocevski/738772/cmap_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.fits scfile=/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits outfile=/scratch/kocevski/738772/cmap_HighResolution_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/738772/ft2_4FGL_J1332.0-0509_daily_bin719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738772/Model_4FGL_J1332.0-0509_daily_bin719.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/738772/ft1_filtered_4FGL_J1332.0-0509_daily_bin719.fits.....................!
real 59.44
user 57.71
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.988       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0478       1.0000         .10000E-03   10000.    
     3 'norm      '    .59159       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.7732       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6017       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.062       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0811       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9059       1.0000         .10000E-03   10000.    
    13 'norm      '    .81616       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25347E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9562       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7884       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86153       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1367       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=   7574.479     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2777 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.993        29.434        .54211E-05    .12745E-04
   2  norm          2.0326        14.400        .77646E-05   -.13959E-05
   3  norm          .59161        .20245       -.42228E-07   -.21361E-03
   4  Prefactor     .10000E-03    17.129       -.43358E-06** at limit **
   5  norm          9.7746        8.8847        .10616E-06   -.13865E-05
   6  norm          5.6515        6.9757       -.30131E-07   -.25200E-03
   7  Prefactor     .10000E-03    10.012       -.35764E-05** at limit **
   8  Prefactor     .10000E-03    7.6492        .17240E-06** at limit **
   9  Prefactor     2.6021        2.9265        .18432E-06   -.12651E-02
  10  Prefactor     21.057        27.629       -.52148E-05    .45888E-04
  11  norm          2.0811        1.3463       -.55337E-08   -.53628E-04
  12  norm          4.9060        6.4969        .21278E-05    .25330E-04
  13  norm          .81539        3.4869       -.31519E-06   -.21737E-03
  14  norm          .10000E-03    10.698        .11066E-05** at limit **
  15  Prefactor     .46557E-01    2.0459        .13971E-06   -.25819E-04
  16  Prefactor     .10000E-03    10.780        .17246E-05** at limit **
  17  Prefactor     .10000E-03    12.679       -.21133E-05** at limit **
  18  norm          .10000E-03    3.3093        .61060E-07** at limit **
  19  Prefactor     7.9576        9.4209        .25389E-06   -.26968E-04
  20  norm          4.7883        2.7236        .27739E-07   -.73326E-04
  21  Prefactor     .10000E-03    11.103        .27182E-05** at limit **
  22  norm          .10000E-03    5.2786        .49000E-07** at limit **
  23  Normalizat    .86153        .20307        .56932E-06   -.37017E-04
  24  Prefactor     1.1366        .13326       -.42563E-06    .36739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9927
  norm       = 2.03264
  norm       = 0.591609
  Prefactor  = 0.0001
  norm       = 9.77457
  norm       = 5.6515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60206
  Prefactor  = 21.0575
  norm       = 2.0811
  norm       = 4.90597
  norm       = 0.815394
  norm       = 0.0001
  Prefactor  = 0.0465567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.95756
  norm       = 4.78825
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.861531
  Prefactor  = 1.13659
 **********
 **   18 **HESSE 
 **********

 FCN=   7574.479     FROM HESSE     STATUS=OK           409 CALLS     3186 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.993        29.507        .97172E-04   -1.4883    
   2  norm          2.0326        14.431        .28891E-03   -1.5423    
   3  norm          .59161        .20285        .10839E-03   -1.5554    
   4  Prefactor     .10000E-03    17.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.7746        8.8900        .12818E-03   -1.5083    
   6  norm          5.6515        6.9862        .84490E-03   -1.5232    
   7  Prefactor     .10000E-03    10.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6021        8.2764        .12646E-02   -1.5385    
  10  Prefactor     21.057        27.754        .87275E-04   -1.4790    
  11  norm          2.0811        1.3413        .77072E-04   -1.5419    
  12  norm          4.9060        6.4551        .13473E-03   -1.5265    
  13  norm          .81539        3.2461        .29573E-03   -1.5527    
  14  norm          .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .46557E-01    5.2470        .38865E-01   -1.5665    
  16  Prefactor     .10000E-03    10.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3376        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9576        9.4302        .14215E-03   -1.5144    
  20  norm          4.7883        2.7258        .10302E-03   -1.5270    
  21  Prefactor     .10000E-03    11.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86153        .23848        .33161E-03   -.97825    
  24  Prefactor     1.1366        .15432        .19958E-03   -.88306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54881e-09
Minuit parameter uncertainties:
  1  29.5322
  2  10.8356
  3  0.202855
  4  7.59348e-06
  5  8.89125
  6  6.98716
  7  5.83084e-05
  8  8.58996e-07
  9  8.28008
  10  27.7712
  11  1.3413
  12  6.45597
  13  3.24677
  14  6.21292e-06
  15  0.987526
  16  4.45442e-06
  17  8.20221e-06
  18  6.51605e-07
  19  9.43195
  20  2.72589
  21  1.25792e-05
  22  4.40901e-07
  23  0.238772
  24  0.154384
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.081e+00  1.341e+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:  1.137e+00  1.544e-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:  8.615e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.22e-05

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) = 7574.43950528
delta logL = 0.0391053522535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7574.43251139
delta logL = 0.0460992366761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9402       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6331       1.0000          .0000       5.0000    
     3 'Normalizat'    .84543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7574.433     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      238 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9403        1.4326        .72183E-04    .10483E-02
   2  alpha         2.6331        .82144        .19181E-01    .34132E-04
   3  Normalizat    .84544        .23090        .33448E-03    .22059E-03
   4  Prefactor     1.1440        .15441        .19903E-03    .98245E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94025
  alpha      = 2.63312
  Normalizat = 0.845439
  Prefactor  = 1.144
 **********
 **   18 **HESSE 
 **********

 FCN=   7574.433     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9403        1.3875        .28873E-05   -1.5429    
   2  alpha         2.6331        .79501        .76723E-03    .53274E-01
   3  Normalizat    .84544        .23074        .13379E-04   -.98405    
   4  Prefactor     1.1440        .15435        .39807E-04   -.88072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30807e-10
Minuit parameter uncertainties:
  1  1.38754
  2  0.809098
  3  0.231013
  4  0.154411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738772': 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) = 7574.43251139
delta logL = 0.0460992386925

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.940e+00  1.388e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.633e+00  8.091e-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:  1.144e+00  1.544e-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:  8.454e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.75
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.63 +/- 0.81
Photon Flux (Free Index): 7.34e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.17e-05

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/738772/cmap_HighResolution_425692801_425952001_4FGL_J1332.0-0509_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='1.86e-05', photon_flux_error='4.06e-08', dlogl='4.61e-02', energy_flux='1.89e-05', photon_flux2='7.34e-08', job_status='DONE', time_completed='2021-09-08 01:55:42.592331', photon_index_error2='0.81', photon_index2='2.63', ts='4.65', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.86', time_epoch_completed='1631091342.59', return_code='0', job_id='738772', GAL2='1.14', EG2='0.85', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.67e-08', ts2='4.75', photon_index='2.39' WHERE bin_id='719' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 738772: <4FGL_J1332.0-0509_daily_bin719> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin719> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:34 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:41:24 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:41:24 2021
Terminated at Wed Sep  8 01:55:43 2021
Results reported at Wed Sep  8 01:55:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin719 203.02 -5.1611 425692801 425952001 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 :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            909 sec.

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

