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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin850
RA = 203.02, Dec = -5.1611
tmin = 459648001, tmax = 459907201
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='738986', job_status='RUN', time_executed='2021-09-08 01:44:54.788754', time_epoch_executed='1631090694.79' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='850'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738986/ft1_4FGL_J1332.0-0509_daily_bin850.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738986/ft1_4FGL_J1332.0-0509_daily_bin850.fits outfile=/scratch/kocevski/738986/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin850.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=459648001.0 tmax=459907201.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.42
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738986/ft1_filtered_4FGL_J1332.0-0509_daily_bin850.fits" evtable="EVENTS" scfile=/scratch/kocevski/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits sctable="SC_DATA" outfile=/scratch/kocevski/738986/ltcube_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.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/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits
.....................!
real 15.01
user 14.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738986/ft1_filtered_4FGL_J1332.0-0509_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits sctable="SC_DATA" expcube=/scratch/kocevski/738986/ltcube_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.fits outfile=/scratch/kocevski/738986/expmap_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.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/738986/ltcube_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.fits
.....................!
real 191.59
user 186.59
sys 4.55

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/738986/ft1_filtered_4FGL_J1332.0-0509_daily_bin850.fits scfile=/scratch/kocevski/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits outfile=/scratch/kocevski/738986/cmap_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738986/ft1_filtered_4FGL_J1332.0-0509_daily_bin850.fits scfile=/scratch/kocevski/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits outfile=/scratch/kocevski/738986/cmap_HighResolution_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738986/ft1_filtered_4FGL_J1332.0-0509_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/738986/ft2_4FGL_J1332.0-0509_daily_bin850.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738986/Model_4FGL_J1332.0-0509_daily_bin850.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/738986/ft1_filtered_4FGL_J1332.0-0509_daily_bin850.fits.....................!
real 53.73
user 51.54
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    14.409       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    107.67       1.0000         .10000E-03   10000.    
     5 'norm      '    .10999E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.116       1.0000         .10000E-03   10000.    
    11 'norm      '    .80919       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5560       1.0000         .10000E-03   10000.    
    14 'norm      '    29.931       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.517       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1723       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91104       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=   6496.652     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2744 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.851       -.19646E-06** at limit **
   2  norm          14.410        25.771       -.15453E-06    .11726E-04
   3  norm          1.2904        .30796        .10809E-06    .26395E-02
   4  Prefactor     107.47        79.749       -.85062E-06    .21022E-04
   5  norm          .10000E-03    8.4693       -.12358E-05** at limit **
   6  norm          4.9828        8.2387        .85378E-06    .16183E-03
   7  Prefactor     14.687        14.223       -.19606E-06    .52740E-03
   8  Prefactor     .10000E-03    21.364       -.39351E-06** at limit **
   9  Prefactor     .10016E-03    6.9346       -.31840E-05** at limit **
  10  Prefactor     24.126        22.431       -.73723E-06    .32300E-03
  11  norm          .80834        1.5486        .67731E-06    .54002E-03
  12  norm          .10000E-03    2.3174       -.27339E-07** at limit **
  13  norm          4.5561        5.6216        .64584E-07    .16341E-03
  14  norm          29.932        31.006       -.24509E-06    .10848E-05
  15  Prefactor     10.283        5.9284       -.20011E-06    .22967E-03
  16  Prefactor     .10000E-03    12.006        .36758E-06** at limit **
  17  Prefactor     .10000E-03    47.073       -.34788E-06** at limit **
  18  norm          .10000E-03    8.6501        .43682E-06** at limit **
  19  Prefactor     .10000E-03    12.180        .55063E-06** at limit **
  20  norm          3.5801        2.6191       -.17054E-06    .27319E-04
  21  Prefactor     70.539        41.187        .11066E-06    .35693E-04
  22  norm          .10000E-03    6.5432        .40214E-07** at limit **
  23  Normalizat    1.1719        .24578        .66204E-05    .45824E-03
  24  Prefactor     .91121        .14939       -.19038E-05    .88128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.4104
  norm       = 1.29042
  Prefactor  = 107.468
  norm       = 0.000100001
  norm       = 4.98275
  Prefactor  = 14.6872
  Prefactor  = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 24.1256
  norm       = 0.808337
  norm       = 0.0001
  norm       = 4.55606
  norm       = 29.9324
  Prefactor  = 10.2831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58008
  Prefactor  = 70.5394
  norm       = 0.0001
  Normalizat = 1.17188
  Prefactor  = 0.911207
 **********
 **   18 **HESSE 
 **********

 FCN=   6496.652     FROM HESSE     STATUS=OK           399 CALLS     3143 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.410        25.768        .10552E-03   -1.4949    
   3  norm          1.2904        .31000        .20632E-04   -1.5481    
   4  Prefactor     107.47        80.139        .19380E-03   -1.3631    
   5  norm          .10000E-03    97.497        .43821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9828        8.2306        .18010E-03   -1.5261    
   7  Prefactor     14.687        13.954        .10451E-03   -1.4941    
   8  Prefactor     .10000E-03    21.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10016E-03    40.479        .36774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.126        22.136        .81569E-04   -1.4725    
  11  norm          .80834        1.5202        .12895E-03   -1.5528    
  12  norm          .10000E-03    2.3257        .11906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5561        5.6008        .18860E-03   -1.5281    
  14  norm          29.932        31.023        .73234E-04   -1.4613    
  15  Prefactor     10.283        5.9138        .12496E-03   -1.5067    
  16  Prefactor     .10000E-03    12.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.8552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5801        2.6183        .10744E-03   -1.5330    
  21  Prefactor     70.539        41.197        .23902E-03   -1.4026    
  22  norm          .10000E-03    6.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1719        .27032        .31382E-03   -.87476    
  24  Prefactor     .91121        .17042        .22784E-03   -.95751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82301e-09
Minuit parameter uncertainties:
  1  2.02784e-05
  2  25.7879
  3  0.309997
  4  80.22
  5  0.000702279
  6  8.23248
  7  13.9571
  8  9.54905e-05
  9  0.00510167
  10  22.1433
  11  1.52023
  12  3.16267e-06
  13  5.60143
  14  31.0399
  15  5.91417
  16  3.42756e-05
  17  6.52002e-05
  18  3.58576e-05
  19  5.92142e-05
  20  2.61834
  21  41.2141
  22  3.59043e-06
  23  0.270637
  24  0.170524
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  8.083e-01  1.520e+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:  9.112e-01  1.705e-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.172e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738986/likelihoodResults_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.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) = 6496.48777211
delta logL = 0.164479084788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6496.47774772
delta logL = 0.174503473258

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6496.478     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70256        1.4088        .84686E-04    .49698E-04
   2  alpha         3.2260        1.5309        .87159E-02    .11655E-04
   3  Normalizat    1.1377        .26903        .31791E-03   -.66157E-05
   4  Prefactor     .92519        .17101        .22631E-03   -.13312E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.702561
  alpha      = 3.226
  Normalizat = 1.13771
  Prefactor  = 0.925186
 **********
 **   18 **HESSE 
 **********

 FCN=   6496.478     FROM HESSE     STATUS=OK            27 CALLS      267 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70256        1.3454        .16937E-04   -1.5540    
   2  alpha         3.2260        1.4719        .17432E-02    .29464    
   3  Normalizat    1.1377        .26928        .12716E-04   -.88550    
   4  Prefactor     .92519        .17107        .90525E-05   -.95267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55249e-13
Minuit parameter uncertainties:
  1  1.34549
  2  1.58542
  3  0.269608
  4  0.171172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738986': 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) = 6496.47774663
delta logL = 0.174504559344

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  7.026e-01  1.345e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.226e+00  1.585e+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.252e-01  1.712e-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.138e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/738986/cmap_HighResolution_459648001_459907201_4FGL_J1332.0-0509_daily_bin850.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-08 01:56:06.907782', job_id='738986', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.17', time_epoch_completed='1631091366.91', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.75e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='850' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 738986: <4FGL_J1332.0-0509_daily_bin850> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin850> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:50 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:42:15 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:42:15 2021
Terminated at Wed Sep  8 01:56:07 2021
Results reported at Wed Sep  8 01:56:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin850 203.02 -5.1611 459648001 459907201 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 :                                   670.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            917 sec.

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

