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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin979
RA = 203.02, Dec = -5.1611
tmin = 493084801, tmax = 493344001
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='740283', job_status='RUN', time_executed='2021-09-08 01:49:31.803376', time_epoch_executed='1631090971.8' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740283/ft1_4FGL_J1332.0-0509_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740283/ft1_4FGL_J1332.0-0509_daily_bin979.fits outfile=/scratch/kocevski/740283/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin979.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=493084801.0 tmax=493344001.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.62
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740283/ft1_filtered_4FGL_J1332.0-0509_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/740283/ltcube_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.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/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits
.....................!
real 17.47
user 16.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740283/ft1_filtered_4FGL_J1332.0-0509_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/740283/ltcube_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.fits outfile=/scratch/kocevski/740283/expmap_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.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/740283/ltcube_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.fits
.....................!
real 192.71
user 187.13
sys 5.04

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/740283/ft1_filtered_4FGL_J1332.0-0509_daily_bin979.fits scfile=/scratch/kocevski/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits outfile=/scratch/kocevski/740283/cmap_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740283/ft1_filtered_4FGL_J1332.0-0509_daily_bin979.fits scfile=/scratch/kocevski/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits outfile=/scratch/kocevski/740283/cmap_HighResolution_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.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/740283/ft1_filtered_4FGL_J1332.0-0509_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/740283/ft2_4FGL_J1332.0-0509_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740283/Model_4FGL_J1332.0-0509_daily_bin979.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/740283/ft1_filtered_4FGL_J1332.0-0509_daily_bin979.fits.....................!
real 43.11
user 41.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.757       1.0000         .10000E-03   10000.    
     2 'norm      '    23.031       1.0000         .10000E-03   10000.    
     3 'norm      '    .45142       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.706       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3427       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .97294E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    12.213       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9270       1.0000         .10000E-03   10000.    
    14 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .66291E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .48982E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33750E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2721       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5003.842     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     2734 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.787        2.8269        .22936E-06   -.46141E-02
   2  norm          23.045        1.7376       -.74969E-06    .30088E-02
   3  norm          .45154        .24375        .46289E-07   -.30401E-04
   4  Prefactor     14.805        8.6833        .17905E-05   -.63532E-02
   5  norm          6.3484        1.2578        .11686E-06   -.36702E-03
   6  norm          .10001E-03    9.1399       -.76211E-05** at limit **
   7  Prefactor     .95133        1.4566        .19491E-05   -.20373E-04
   8  Prefactor     .10001E-03    7.3019       -.43331E-05** at limit **
   9  Prefactor     .10000E-03    4.5201        .51752E-06** at limit **
  10  Prefactor     .10001E-03    28.407       -.57718E-05** at limit **
  11  norm          .98814E-01    3.9062        .14200E-05    .30069E-03
  12  norm          12.212        5.1321        .37761E-05    .22151E-02
  13  norm          4.9194        2.4627        .27375E-05    .43993E-03
  14  norm          .10000E-03    7.2255        .36372E-05** at limit **
  15  Prefactor     .10005E-03    52.187       -.38855E-06** at limit **
  16  Prefactor     .10001E-03    9.2088        .87932E-05** at limit **
  17  Prefactor     .10001E-03    22.773        .34401E-05** at limit **
  18  norm          .10000E-03    6.3110       -.16696E-06** at limit **
  19  Prefactor     .10592E-03    385.72        .77925E-05** at limit **
  20  norm          .50939E-01    .44852        .13904E-05   -.25122E-03
  21  Prefactor     .11686E-03    2.6846        .46994E-05** at limit **
  22  norm          .10000E-03    5.8755        .32476E-06** at limit **
  23  Normalizat    1.2715        .29344       -.22828E-05   -.36360E-03
  24  Prefactor     .96558        .19576       -.16486E-05   -.51377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.7875
  norm       = 23.0445
  norm       = 0.45154
  Prefactor  = 14.8048
  norm       = 6.34838
  norm       = 0.000100013
  Prefactor  = 0.951335
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.098814
  norm       = 12.2123
  norm       = 4.91941
  norm       = 0.000100004
  Prefactor  = 0.000100049
  Prefactor  = 0.000100012
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000105923
  norm       = 0.0509394
  Prefactor  = 0.000116863
  norm       = 0.0001
  Normalizat = 1.27151
  Prefactor  = 0.965581
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.842     FROM HESSE     STATUS=OK           475 CALLS     3209 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.787        56.928        .11039E-02   -1.3886    
   2  norm          23.045        27.115        .20866E-02   -1.4748    
   3  norm          .45154        .25470        .55847E-02   -1.5574    
   4  Prefactor     14.805        55.412        .26111E-02   -1.4938    
   5  norm          6.3484        10.398        .39844E-02   -1.5204    
   6  norm          .10001E-03    9.3168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .95133        14.405        .83540E-01   -1.5513    
   8  Prefactor     .10001E-03    13.361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    28.545        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .98814E-01    .86922        .35677E-01   -1.5645    
  12  norm          12.212        7.4164        .28657E-02   -1.5009    
  13  norm          4.9194        12.153        .45299E-02   -1.5264    
  14  norm          .10000E-03    13.300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    7.7362        .61729E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    9.4928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    22.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10592E-03    11.976        .93493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .50939E-01    1.4052        .59075E-01   -1.5663    
  21  Prefactor     .11686E-03    33.849        .13579       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2715        .25195        .65808E-01   -.84421    
  24  Prefactor     .96558        .16535        .45833E-01   -.93886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68851e-07
Minuit parameter uncertainties:
  1  56.9652
  2  27.1296
  3  0.254703
  4  55.6055
  5  10.4009
  6  0.000695674
  7  7.40541
  8  0.000591788
  9  8.53714e-06
  10  0.00113741
  11  0.585858
  12  7.41693
  13  12.1586
  14  0.000458244
  15  0.00123294
  16  0.000664862
  17  0.000853805
  18  2.92019e-05
  19  0.0168474
  20  0.534575
  21  0.0478104
  22  3.75301e-05
  23  0.252191
  24  0.165436
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.881e-02  5.859e-01  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.656e-01  1.654e-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.272e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740283/likelihoodResults_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.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) = 5003.8417576
delta logL = 3.64889274351e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5003.8417576
delta logL = 8.9776222012e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98814E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3939       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96558       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=   5003.842     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98804E-01    34.846        .35702E-01   -.91972E-03
   2  alpha         2.3853        2.7242        .41199       -.40454E-05
   3  Normalizat    1.2715        .44414E-01    .65807E-01    .11036E-04
   4  Prefactor     .96557        .29568E-01    .45835E-01    .13410E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0988039
  alpha      = 2.3853
  Normalizat = 1.27154
  Prefactor  = 0.96557
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.842     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98804E-01    5.1963        .12512E-02   -1.5645    
   2  alpha         2.3853        3.6303        .10079       -.45895E-01
   3  Normalizat    1.2715        .29096        .29111E-03   -.84420    
   4  Prefactor     .96557        .19437        .21897E-03   -.93886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03004e-09
Minuit parameter uncertainties:
  1  1.43247
  2  4.60061
  3  0.291331
  4  0.194513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740283': 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) = 5003.84175529
delta logL = 2.31787817029e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.880e-02  1.432e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.385e+00  4.601e+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.656e-01  1.945e-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.272e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/740283/cmap_HighResolution_493084801_493344001_4FGL_J1332.0-0509_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-08 01:59:45.119387', job_id='740283', GAL2='0.97', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631091585.12', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.32e-06', ts2='0.01', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='979' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 740283: <4FGL_J1332.0-0509_daily_bin979> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin979> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:42 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:47 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:47 2021
Terminated at Wed Sep  8 01:59:45 2021
Results reported at Wed Sep  8 01:59:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin979 203.02 -5.1611 493084801 493344001 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 :                                   607.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            843 sec.

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

