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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin610
RA = 203.02, Dec = -5.1611
tmin = 397440001, tmax = 397699201
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='737498', job_status='RUN', time_executed='2021-09-08 01:40:16.395640', time_epoch_executed='1631090416.4' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737498/ft1_4FGL_J1332.0-0509_daily_bin610.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737498/ft2_4FGL_J1332.0-0509_daily_bin610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737498/ft1_4FGL_J1332.0-0509_daily_bin610.fits outfile=/scratch/kocevski/737498/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin610.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=397440001.0 tmax=397699201.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 4.67
user 4.34
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737498/ft1_filtered_4FGL_J1332.0-0509_daily_bin610.fits" evtable="EVENTS" scfile=/scratch/kocevski/737498/ft2_4FGL_J1332.0-0509_daily_bin610.fits sctable="SC_DATA" outfile=/scratch/kocevski/737498/ltcube_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.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/737498/ft2_4FGL_J1332.0-0509_daily_bin610.fits
.....................!
real 17.22
user 16.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737498/ft1_filtered_4FGL_J1332.0-0509_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/737498/ft2_4FGL_J1332.0-0509_daily_bin610.fits sctable="SC_DATA" expcube=/scratch/kocevski/737498/ltcube_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.fits outfile=/scratch/kocevski/737498/expmap_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.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/737498/ltcube_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.fits
.....................!
real 194.03
user 187.86
sys 5.30

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/737498/ft1_filtered_4FGL_J1332.0-0509_daily_bin610.fits scfile=/scratch/kocevski/737498/ft2_4FGL_J1332.0-0509_daily_bin610.fits outfile=/scratch/kocevski/737498/cmap_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.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.59
user 0.38
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737498/ft1_filtered_4FGL_J1332.0-0509_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/737498/ft2_4FGL_J1332.0-0509_daily_bin610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737498/Model_4FGL_J1332.0-0509_daily_bin610.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/737498/ft1_filtered_4FGL_J1332.0-0509_daily_bin610.fits.....................!
real 55.36
user 53.28
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.053       1.0000         .10000E-03   10000.    
     2 'norm      '    18.357       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1255       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1291       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7276       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8745       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2516       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8085       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4943       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15929E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10434E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4761       1.0000         .10000E-03   10000.    
    20 'norm      '    .19600E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    28.325       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5223       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88178       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=   6406.632     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2817 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.056        41.971        .16930E-07   -.36993E-05
   2  norm          18.363        35.394        .50380E-06    .67349E-05
   3  norm          1.6463        .36775        .24665E-07    .14472E-02
   4  Prefactor     .10000E-03    26.996        .74926E-07** at limit **
   5  norm          9.1293        12.865        .39832E-07    .51785E-04
   6  norm          8.1308        9.0800        .55709E-07    .21067E-04
   7  Prefactor     .10000E-03    3.3698        .12205E-07** at limit **
   8  Prefactor     23.838        26.358        .33721E-06    .65193E-04
   9  Prefactor     4.7293        9.4331        .54163E-06    .10406E-03
  10  Prefactor     7.8757        13.504       -.66222E-06   -.57304E-04
  11  norm          1.2510        1.6046        .12419E-06    .17307E-03
  12  norm          .10000E-03    1.5074        .11811E-05** at limit **
  13  norm          4.8083        4.7558        .23583E-06    .20820E-03
  14  norm          .10000E-03    16.309       -.11471E-06** at limit **
  15  Prefactor     2.4893        6.0542        .39715E-07   -.69953E-04
  16  Prefactor     .10000E-03    19.337       -.47382E-06** at limit **
  17  Prefactor     .10002E-03    515.27       -.26223E-05** at limit **
  18  norm          .10000E-03    6.5102        .96425E-06** at limit **
  19  Prefactor     1.4724        27.552        .13123E-04   -.14830E-03
  20  norm          .10000E-03    2.0202       -.30898E-06** at limit **
  21  Prefactor     .10000E-03    11.950       -.95666E-07** at limit **
  22  norm          28.327        17.673       -.26707E-06    .83789E-04
  23  Normalizat    1.5235        .25556       -.15355E-05    .17452E-03
  24  Prefactor     .88076        .15462        .56098E-06    .23266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0561
  norm       = 18.3631
  norm       = 1.6463
  Prefactor  = 0.0001
  norm       = 9.12935
  norm       = 8.13075
  Prefactor  = 0.0001
  Prefactor  = 23.8383
  Prefactor  = 4.72932
  Prefactor  = 7.87571
  norm       = 1.25099
  norm       = 0.000100002
  norm       = 4.80829
  norm       = 0.0001
  Prefactor  = 2.4893
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.000100001
  Prefactor  = 1.47245
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.3272
  Normalizat = 1.52349
  Prefactor  = 0.880762
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.632     FROM HESSE     STATUS=OK           401 CALLS     3218 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.056        42.110        .61098E-04   -1.4395    
   2  norm          18.363        35.376        .93482E-04   -1.4851    
   3  norm          1.6463        .36940        .21519E-04   -1.5451    
   4  Prefactor     .10000E-03    27.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1293        12.848        .13267E-03   -1.5104    
   6  norm          8.1308        9.0765        .14062E-03   -1.5138    
   7  Prefactor     .10000E-03    3.3923        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.838        26.571        .81960E-04   -1.4731    
   9  Prefactor     4.7293        9.4196        .18506E-03   -1.5273    
  10  Prefactor     7.8757        13.508        .14289E-03   -1.5147    
  11  norm          1.2510        1.5773        .10818E-03   -1.5484    
  12  norm          .10000E-03    1.6431        .99423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8083        4.7498        .16575E-03   -1.5269    
  14  norm          .10000E-03    16.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4893        6.0314        .25879E-03   -1.5392    
  16  Prefactor     .10000E-03    19.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    536.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.6331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4724        28.241        .17674E-02   -1.5465    
  20  norm          .10000E-03    4.3491        .21846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          28.327        17.644        .75276E-04   -1.4643    
  23  Normalizat    1.5235        .30285        .29993E-03   -.77120    
  24  Prefactor     .88076        .18332        .24295E-03   -.96817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83981e-09
Minuit parameter uncertainties:
  1  42.1391
  2  35.4169
  3  0.369396
  4  3.77429e-05
  5  12.8523
  6  9.07807
  7  1.25328e-06
  8  26.5847
  9  9.4226
  10  13.5134
  11  1.57733
  12  0.000112741
  13  4.75015
  14  3.58818e-05
  15  6.03289
  16  0.000164166
  17  0.00721947
  18  0.000184625
  19  12.9037
  20  2.59571e-05
  21  2.64057e-05
  22  17.6472
  23  0.303216
  24  0.183446
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.251e+00  1.577e+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.808e-01  1.834e-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.523e+00  3.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/737498/likelihoodResults_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.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) = 6406.190384
delta logL = 0.441474558686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6406.18976685
delta logL = 0.44209170679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97003       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3764       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90439       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=   6406.190     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      241 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96996        16.278        .13059E-01    .14679E-03
   2  alpha         3.3764        3.9231        .44919        .58969E-04
   3  Normalizat    1.4663        .64978E-01    .68848E-01    .69083E-05
   4  Prefactor     .90442        .42152E-01    .45061E-01    .11016E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.969955
  alpha      = 3.37637
  Normalizat = 1.46635
  Prefactor  = 0.904424
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.190     FROM HESSE     STATUS=OK            35 CALLS      276 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96996        1.7177        .67301E-03   -1.5511    
   2  alpha         3.3764        1.3767        .21620E-01    .35815    
   3  Normalizat    1.4663        .29338        .30458E-03   -.78728    
   4  Prefactor     .90442        .18389        .24008E-03   -.95987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06371e-10
Minuit parameter uncertainties:
  1  1.71774
  2  1.47176
  3  0.293717
  4  0.18402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737498': 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) = 6406.18976681
delta logL = 0.4420917405

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.700e-01  1.718e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.376e+00  1.472e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.044e-01  1.840e-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.466e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.38 +/- 1.47
Photon Flux (Free Index): 8.27e-08 +/- 7.57e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.39e-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/737498/cmap_HighResolution_397440001_397699201_4FGL_J1332.0-0509_daily_bin610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='4.42e-01', photon_flux2='8.27e-08', job_status='DONE', time_completed='2021-09-08 01:51:58.280433', photon_index_error2='1.47', photon_index2='3.38', ts='0.88', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.39e-05', EG='1.52', time_epoch_completed='1631091118.28', return_code='0', job_id='737498', GAL2='0.90', EG2='1.47', return_code2='0', photon_flux_error2='7.57e-08', ts2='1.82', photon_index='2.39' WHERE bin_id='610' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 737498: <4FGL_J1332.0-0509_daily_bin610> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin610> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:47 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:38:05 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:38:05 2021
Terminated at Wed Sep  8 01:51:58 2021
Results reported at Wed Sep  8 01:51:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin610 203.02 -5.1611 397440001 397699201 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 :                                   700.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            971 sec.

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

