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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin995
RA = 203.02, Dec = -5.1611
tmin = 497232001, tmax = 497491201
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='740309', job_status='RUN', time_executed='2021-09-08 01:49:43.802817', time_epoch_executed='1631090983.8' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740309/ft1_4FGL_J1332.0-0509_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740309/ft2_4FGL_J1332.0-0509_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740309/ft1_4FGL_J1332.0-0509_daily_bin995.fits outfile=/scratch/kocevski/740309/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin995.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.92
user 6.57
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740309/ft1_filtered_4FGL_J1332.0-0509_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/740309/ft2_4FGL_J1332.0-0509_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/740309/ltcube_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.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/740309/ft2_4FGL_J1332.0-0509_daily_bin995.fits
.....................!
real 16.72
user 16.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740309/ft1_filtered_4FGL_J1332.0-0509_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/740309/ft2_4FGL_J1332.0-0509_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/740309/ltcube_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.fits outfile=/scratch/kocevski/740309/expmap_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.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/740309/ltcube_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.fits
.....................!
real 193.07
user 187.26
sys 5.18

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/740309/ft1_filtered_4FGL_J1332.0-0509_daily_bin995.fits scfile=/scratch/kocevski/740309/ft2_4FGL_J1332.0-0509_daily_bin995.fits outfile=/scratch/kocevski/740309/cmap_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.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.56
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740309/ft1_filtered_4FGL_J1332.0-0509_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/740309/ft2_4FGL_J1332.0-0509_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740309/Model_4FGL_J1332.0-0509_daily_bin995.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/740309/ft1_filtered_4FGL_J1332.0-0509_daily_bin995.fits.....................!
real 35.72
user 33.35
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.33       1.0000         .10000E-03   10000.    
     2 'norm      '    117.53       1.0000         .10000E-03   10000.    
     3 'norm      '    .43163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    244.07       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.516       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5699       1.0000         .10000E-03   10000.    
    12 'norm      '    .13705E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.300       1.0000         .10000E-03   10000.    
    14 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7553       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73084       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=   3430.367     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2760 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     129.33        85.705        .33405E-07   -.37525E-05
   2  norm          117.52        69.844       -.29710E-06   -.79661E-05
   3  norm          .43160        .32667        .11321E-07    .67149E-03
   4  Prefactor     244.00        131.72       -.25834E-05   -.16479E-05
   5  norm          .10000E-03    6.0556       -.12621E-06** at limit **
   6  norm          .10000E-03    28.052        .26712E-06** at limit **
   7  Prefactor     33.429        23.045        .37699E-06    .10960E-03
   8  Prefactor     .45470        27.279       -.60424E-06    .79530E-04
   9  Prefactor     11.872        19.320        .80450E-06    .10271E-03
  10  Prefactor     18.494        43.500        .34166E-05    .17396E-03
  11  norm          1.5696        2.1004        .25971E-07   -.16722E-03
  12  norm          .10001E-03    6.2353       -.33549E-05** at limit **
  13  norm          11.316        20.571        .17566E-05    .28797E-03
  14  norm          .10000E-03    17.304        .31694E-08** at limit **
  15  Prefactor     10.897        7.9241       -.15280E-06    .94522E-04
  16  Prefactor     .10000E-03    42.020       -.15864E-06** at limit **
  17  Prefactor     .10000E-03    29.022       -.26376E-07** at limit **
  18  norm          .10000E-03    3.9701       -.35211E-07** at limit **
  19  Prefactor     .10000E-03    4.2650        .79757E-08** at limit **
  20  norm          .10000E-03    1.1120        .12708E-07** at limit **
  21  Prefactor     .10000E-03    9.5331        .19011E-08** at limit **
  22  norm          5.7644        15.862       -.11617E-07   -.18596E-04
  23  Normalizat    1.2259        .30399        .11259E-05    .61332E-04
  24  Prefactor     .73004        .18819       -.57849E-06    .23907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 129.334
  norm       = 117.521
  norm       = 0.431601
  Prefactor  = 243.998
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.4291
  Prefactor  = 0.454701
  Prefactor  = 11.8718
  Prefactor  = 18.4941
  norm       = 1.56961
  norm       = 0.000100015
  norm       = 11.3163
  norm       = 0.0001
  Prefactor  = 10.8971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.76439
  Normalizat = 1.2259
  Prefactor  = 0.730036
 **********
 **   18 **HESSE 
 **********

 FCN=   3430.367     FROM HESSE     STATUS=OK           395 CALLS     3155 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     129.33        85.534        .35402E-04   -1.3429    
   2  norm          117.52        69.834        .37116E-04   -1.3536    
   3  norm          .43160        .32392        .26753E-04   -1.5577    
   4  Prefactor     244.00        131.72        .12961E-03   -1.2571    
   5  norm          .10000E-03    6.0583        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    28.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.429        23.027        .69292E-04   -1.4551    
   8  Prefactor     .45470        309.64        .56666E-02   -1.5573    
   9  Prefactor     11.872        19.413        .11612E-03   -1.5019    
  10  Prefactor     18.494        43.667        .93079E-04   -1.4848    
  11  norm          1.5696        2.0753        .92087E-04   -1.5457    
  12  norm          .10001E-03    18.533        .24447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.316        20.438        .11918E-03   -1.5035    
  14  norm          .10000E-03    17.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.897        7.9161        .12135E-03   -1.5048    
  16  Prefactor     .10000E-03    42.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9821        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2683        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1215        .60304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.5339        .17664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7644        15.876        .16742E-03   -1.5228    
  23  Normalizat    1.2259        .35510        .28531E-03   -.85806    
  24  Prefactor     .73004        .21991        .23456E-03   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35031e-09
Minuit parameter uncertainties:
  1  85.6155
  2  69.8827
  3  0.323919
  4  131.879
  5  3.22615e-05
  6  0.000123947
  7  23.0336
  8  23.8534
  9  19.4235
  10  43.7422
  11  2.0754
  12  0.00103895
  13  20.4508
  14  2.85505e-06
  15  7.91682
  16  7.11863e-05
  17  1.25927e-06
  18  4.15319e-06
  19  2.49366e-06
  20  1.60021e-06
  21  2.26113e-06
  22  15.8877
  23  0.355804
  24  0.220177
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.570e+00  2.075e+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:  7.300e-01  2.202e-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.226e+00  3.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740309/likelihoodResults_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.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) = 3429.78742996
delta logL = 0.579117226242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3429.77273667
delta logL = 0.593810509661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19207       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79955       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=   3429.773     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      336 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19182        .16434        .20077E-04   -.35329E-02
   2  alpha         5.0000        3.5444        .53051E-01** at limit **
   3  Normalizat    1.0888        .34674        .29989E-03   -.16416E-03
   4  Prefactor     .79960        .22004        .22544E-03   -.21398E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.191823
  alpha      = 5
  Normalizat = 1.08877
  Prefactor  = 0.799604
 **********
 **   18 **HESSE 
 **********

 FCN=   3429.773     FROM HESSE     STATUS=OK            23 CALLS      359 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19182        .16276        .80307E-06   -1.5620    
   2  alpha         5.0000        3.5442        .10610E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0888        .34703        .59978E-04   -.90113    
   4  Prefactor     .79960        .22022        .45087E-04   -.99743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74396e-10
Minuit parameter uncertainties:
  1  0.16276
  2  6.87841e-05
  3  0.347756
  4  0.220465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740309': 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) = 3429.77272958
delta logL = 0.593817603913

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.918e-01  1.628e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  6.878e-05  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.996e-01  2.205e-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.089e+00  3.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.35e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.85e-05 +/- 1.57e-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/740309/cmap_HighResolution_497232001_497491201_4FGL_J1332.0-0509_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-05', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='5.94e-01', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-08 01:58:49.369134', photon_index_error2='0.00', photon_index2='5.00', ts='0.77', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.57e-05', EG='1.23', time_epoch_completed='1631091529.37', return_code='0', job_id='740309', GAL2='0.80', EG2='1.09', return_code2='0', photon_flux_error2='1.14e-07', ts2='2.16', photon_index='2.39' WHERE bin_id='995' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:58:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 740309: <4FGL_J1332.0-0509_daily_bin995> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin995 203.02 -5.1611 497232001 497491201 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 :                                   538.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            785 sec.

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

