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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin477
RA = 203.02, Dec = -5.1611
tmin = 362966401, tmax = 363225601
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='737305', job_status='RUN', time_executed='2021-09-08 01:39:42.174510', time_epoch_executed='1631090382.17' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737305

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737305/ft1_4FGL_J1332.0-0509_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737305/ft1_4FGL_J1332.0-0509_daily_bin477.fits outfile=/scratch/kocevski/737305/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin477.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=362966401.0 tmax=363225601.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.10
user 5.78
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737305/ft1_filtered_4FGL_J1332.0-0509_daily_bin477.fits" evtable="EVENTS" scfile=/scratch/kocevski/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits sctable="SC_DATA" outfile=/scratch/kocevski/737305/ltcube_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.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/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits
.....................!
real 15.46
user 15.02
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737305/ft1_filtered_4FGL_J1332.0-0509_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/737305/ltcube_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.fits outfile=/scratch/kocevski/737305/expmap_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.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/737305/ltcube_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.fits
.....................!
real 192.33
user 186.37
sys 5.29

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/737305/ft1_filtered_4FGL_J1332.0-0509_daily_bin477.fits scfile=/scratch/kocevski/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits outfile=/scratch/kocevski/737305/cmap_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.02 yref=-5.1611 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737305/ft1_filtered_4FGL_J1332.0-0509_daily_bin477.fits scfile=/scratch/kocevski/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits outfile=/scratch/kocevski/737305/cmap_HighResolution_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737305/ft1_filtered_4FGL_J1332.0-0509_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/737305/ft2_4FGL_J1332.0-0509_daily_bin477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737305/Model_4FGL_J1332.0-0509_daily_bin477.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/737305/ft1_filtered_4FGL_J1332.0-0509_daily_bin477.fits.....................!
real 43.81
user 42.45
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    9.4882       1.0000         .10000E-03   10000.    
     3 'norm      '    .27198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    39.885       1.0000         .10000E-03   10000.    
     6 'norm      '    .22968E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.668       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3247       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .32540E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    23.434       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2559       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96306       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=   4955.202     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2802 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.397       -.33265E-05** at limit **
   2  norm          9.4971        27.009       -.10098E-05   -.22430E-04
   3  norm          .27205        .18093        .23506E-07    .11128E-02
   4  Prefactor     .10000E-03    19.954        .11988E-05** at limit **
   5  norm          39.893        16.773        .73252E-07    .89868E-04
   6  norm          .10003E-03    9.8866       -.68294E-05** at limit **
   7  Prefactor     .10000E-03    6.2682       -.16938E-07** at limit **
   8  Prefactor     5.1584        26.946       -.10146E-05   -.11387E-04
   9  Prefactor     22.678        13.884       -.68456E-06    .11438E-03
  10  Prefactor     1.3357        56.984        .26472E-04    .61946E-04
  11  norm          .10000E-03    .85405       -.63112E-07** at limit **
  12  norm          .10000E-03    2.1823        .20583E-06** at limit **
  13  norm          .10000E-03    2.2954        .10758E-07** at limit **
  14  norm          .10000E-03    12.029       -.60090E-07** at limit **
  15  Prefactor     12.709        7.8018       -.58471E-07    .91340E-04
  16  Prefactor     .10000E-03    18.570       -.22158E-05** at limit **
  17  Prefactor     .10000E-03    62.953        .48712E-05** at limit **
  18  norm          .23587        9.8625        .26621E-05   -.33518E-03
  19  Prefactor     .10000E-03    15.898        .63268E-06** at limit **
  20  norm          1.4506        2.7556        .12655E-06    .10350E-04
  21  Prefactor     .10002E-03    136.60       -.19156E-04** at limit **
  22  norm          23.439        21.956        .17897E-07    .36265E-04
  23  Normalizat    1.2559        .26059       -.79533E-07    .36517E-03
  24  Prefactor     .96278        .16495       -.17609E-06    .50647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.49707
  norm       = 0.272053
  Prefactor  = 0.0001
  norm       = 39.8929
  norm       = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 5.15836
  Prefactor  = 22.6784
  Prefactor  = 1.33573
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7093
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.235869
  Prefactor  = 0.0001
  norm       = 1.45059
  Prefactor  = 0.000100025
  norm       = 23.4391
  Normalizat = 1.25594
  Prefactor  = 0.962776
 **********
 **   18 **HESSE 
 **********

 FCN=   4955.202     FROM HESSE     STATUS=OK           397 CALLS     3199 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.4971        27.020        .13010E-03   -1.5092    
   3  norm          .27205        .17775        .23604E-04   -1.5604    
   4  Prefactor     .10000E-03    19.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          39.893        16.767        .63468E-04   -1.4444    
   6  norm          .10003E-03    25.303        .36289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2923        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1584        27.229        .17713E-03   -1.5254    
   9  Prefactor     22.678        13.903        .42065E-03   -1.4755    
  10  Prefactor     1.3357        62.866        .19100E-02   -1.5477    
  11  norm          .10000E-03    1.9715        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2248        .10179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2993        .10416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.709        8.1289        .11197E-03   -1.4995    
  16  Prefactor     .10000E-03    18.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .23587        93.040        .36812E-02   -1.5611    
  19  Prefactor     .10000E-03    15.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4506        2.7216        .15444E-03   -1.5467    
  21  Prefactor     .10002E-03    137.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          23.439        21.957        .82745E-04   -1.4739    
  23  Normalizat    1.2559        .30768        .30324E-03   -.84891    
  24  Prefactor     .96278        .19446        .22406E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29966e-09
Minuit parameter uncertainties:
  1  0.000354806
  2  27.0552
  3  0.177751
  4  0.000105781
  5  16.7693
  6  0.0016409
  7  1.24154e-05
  8  23.7197
  9  13.905
  10  18.347
  11  5.72155e-07
  12  5.07083e-06
  13  4.82449e-06
  14  5.52511e-06
  15  8.12956
  16  0.000199821
  17  0.000607527
  18  9.38188
  19  5.85477e-05
  20  2.72181
  21  0.00368877
  22  21.965
  23  0.308132
  24  0.194601
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  5.722e-07  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.628e-01  1.946e-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.256e+00  3.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 9.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737305/likelihoodResults_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.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) = 4955.20449971
delta logL = -0.00243483297163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4955.20206431
delta logL = 5.69481926505e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4178       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96276       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4955.202     FROM MIGRAD    STATUS=FAILED       107 CALLS      265 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    702.06        .12623E-02** at limit **
   2  alpha         3.2481        4.0868        .16472       -.40031E-08
   3  Normalizat    1.2559        .18458        .30324E-03   -.33371E-02
   4  Prefactor     .96277        .11831        .22406E-03   -.46524E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4955.202     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      445 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    702.06        .31514E-03** at limit **
   2  alpha         3.2481        4.0868        .29915E-06   -.40031E-08
   3  Normalizat    1.2559        .18458        .44821E-07   -.33371E-02
   4  Prefactor     .96277        .11831        .14861E-07   -.46524E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4955.202     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      476 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3334        .50491E-04** at limit **
   2  alpha         3.2482        3.1212        .65888E-02    .12423E-07
   3  Normalizat    1.2559        .29028        .60647E-04    .34979E-04
   4  Prefactor     .96278        .19193        .44813E-04   -.37902E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.24823
  Normalizat = 1.25593
  Prefactor  = 0.962776
 **********
 **   18 **HESSE 
 **********

 FCN=   4955.202     FROM HESSE     STATUS=OK            23 CALLS      499 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3335        .10098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2482        3.0591        .13178E-02    .30395    
   3  Normalizat    1.2559        .29034        .12129E-04   -.84891    
   4  Prefactor     .96278        .19198        .89626E-05   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08209e-11
Minuit parameter uncertainties:
  1  7.17466e-06
  2  193.558
  3  0.290719
  4  0.192113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737305': 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) = 4955.20205466
delta logL = 1.02188168967e-05

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  7.175e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.248e+00  1.936e+02  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.628e-01  1.921e-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.256e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/737305/cmap_HighResolution_362966401_363225601_4FGL_J1332.0-0509_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-09-08 01:49:59.402656', job_id='737305', GAL2='0.96', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631090999.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.02e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='477' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:49:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 737305: <4FGL_J1332.0-0509_daily_bin477> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin477> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:34 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:16 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:37:16 2021
Terminated at Wed Sep  8 01:50:00 2021
Results reported at Wed Sep  8 01:50:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin477 203.02 -5.1611 362966401 363225601 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            866 sec.

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

