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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin890
RA = 203.02, Dec = -5.1611
tmin = 470016001, tmax = 470275201
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='739047', job_status='RUN', time_executed='2021-09-08 01:42:31.511587', time_epoch_executed='1631090551.51' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739047/ft1_4FGL_J1332.0-0509_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739047/ft1_4FGL_J1332.0-0509_daily_bin890.fits outfile=/scratch/kocevski/739047/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin890.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=470016001.0 tmax=470275201.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.53
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739047/ft1_filtered_4FGL_J1332.0-0509_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/739047/ltcube_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.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/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits
.....................!
real 14.12
user 13.73
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739047/ft1_filtered_4FGL_J1332.0-0509_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/739047/ltcube_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.fits outfile=/scratch/kocevski/739047/expmap_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.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/739047/ltcube_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.fits
.....................!
real 192.30
user 186.54
sys 5.37

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/739047/ft1_filtered_4FGL_J1332.0-0509_daily_bin890.fits scfile=/scratch/kocevski/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits outfile=/scratch/kocevski/739047/cmap_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739047/ft1_filtered_4FGL_J1332.0-0509_daily_bin890.fits scfile=/scratch/kocevski/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits outfile=/scratch/kocevski/739047/cmap_HighResolution_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739047/ft1_filtered_4FGL_J1332.0-0509_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/739047/ft2_4FGL_J1332.0-0509_daily_bin890.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739047/Model_4FGL_J1332.0-0509_daily_bin890.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/739047/ft1_filtered_4FGL_J1332.0-0509_daily_bin890.fits.....................!
real 54.93
user 53.55
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    28.810       1.0000         .10000E-03   10000.    
     6 'norm      '    .52565E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.923       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2197       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2137       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5848       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.884       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4900       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.398       1.0000         .10000E-03   10000.    
    22 'norm      '    13.931       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94401       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=   6880.747     FROM MIGRAD    STATUS=FAILED       981 CALLS     3204 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.669        .18142E-02** at limit **
   2  norm          .10000E-03    20.398        .18142E-02** at limit **
   3  norm          3.9075        .46153        .18364E-04   -.99487E-03
   4  Prefactor     .10000E-03    24.087        .18142E-02** at limit **
   5  norm          28.813        14.619        .74641E-04   -.44322E-04
   6  norm          .10006E-03    8.7106        .77830E-01** at limit **
   7  Prefactor     .73196        25.312        .43711E-02    .20260E-02
   8  Prefactor     .10000E-03    10.884        .18142E-02** at limit **
   9  Prefactor     11.091        10.797        .12032E-03   -.17565E-03
  10  Prefactor     61.980        41.731        .50992E-04   -.16057E-03
  11  norm          .10000E-03    .70687        .10661E-02** at limit **
  12  norm          1.2025        15.570        .34672E-03    .20900E-03
  13  norm          5.2194        10.155        .17605E-03    .13238E-03
  14  norm          .10000E-03    20.012        .18142E-02** at limit **
  15  Prefactor     1.5828        3.6610        .22938E-03    .11459E-03
  16  Prefactor     .10000E-03    37.795        .18142E-02** at limit **
  17  Prefactor     .10000E-03    14.373        .18142E-02** at limit **
  18  norm          3.5831        4.2052        .88118E-03    .19123E-03
  19  Prefactor     19.887        18.142        .89820E-04    .24289E-03
  20  norm          3.4899        2.6570        .11352E-03    .73511E-04
  21  Prefactor     25.393        35.827        .79488E-04    .27032E-04
  22  norm          13.930        11.832        .10731E-03   -.21188E-06
  23  Normalizat    1.1348        .27970        .33716E-03   -.47207E-05
  24  Prefactor     .94438        .17939        .24022E-03    .99809E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6880.747     FROM SIMPLEX   STATUS=UNCHANGED   1283 CALLS     4487 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.669        .89321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.398        .58648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9075        .46153        .11052E-05   -1.5313    
   4  Prefactor     .10000E-03    24.087        .51293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.813        14.619        .10556E-05   -1.4634    
   6  norm          .10006E-03    8.7106        .14246E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73196        25.312        .11191E-05   -1.5537    
   8  Prefactor     .10000E-03    10.884        .47775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.091        10.797        .10866E-05   -1.5042    
  10  Prefactor     61.980        41.731        .10251E-05   -1.4132    
  11  norm          .10000E-03    .70687        .11356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2025        15.570        .11643E-05   -1.5489    
  13  norm          5.2194        10.155        .11221E-05   -1.5251    
  14  norm          .10000E-03    20.012        .58533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5828        3.6610        .11159E-05   -1.5456    
  16  Prefactor     .10000E-03    37.795        .31292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.373        .36129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5831        4.2052        .11064E-05   -1.5329    
  19  Prefactor     19.887        18.142        .10695E-05   -1.4816    
  20  norm          3.4899        2.6570        .11070E-05   -1.5334    
  21  Prefactor     25.393        35.827        .10608E-05   -1.4700    
  22  norm          13.930        11.832        .10797E-05   -1.4961    
  23  Normalizat    1.1348        .27970        .63975E-06   -.88643    
  24  Prefactor     .94438        .17939        .68274E-06   -.94607    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6880.747     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     4875 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.671        .36285E-03** at limit **
   2  norm          .10000E-03    20.399        .36285E-03** at limit **
   3  norm          3.9075        .46153        .73454E-06   -.41105E-04
   4  Prefactor     .10000E-03    24.087        .36285E-03** at limit **
   5  norm          28.813        14.619        .29857E-05   -.60924E-05
   6  norm          .10006E-03    8.4729        .79744E-01** at limit **
   7  Prefactor     .73203        25.257        .87422E-03    .83096E-04
   8  Prefactor     .10000E-03    10.885        .36285E-03** at limit **
   9  Prefactor     11.091        10.784        .48129E-05   -.10393E-04
  10  Prefactor     61.980        41.301        .10198E-04    .44590E-06
  11  norm          .10000E-03    .70768        .21323E-03** at limit **
  12  norm          1.2023        15.151        .13869E-04   -.63940E-05
  13  norm          5.2194        10.123        .70419E-05    .22602E-05
  14  norm          .10000E-03    20.013        .36285E-03** at limit **
  15  Prefactor     1.5828        3.6596        .91753E-05    .24781E-06
  16  Prefactor     .10000E-03    37.805        .36285E-03** at limit **
  17  Prefactor     .10000E-03    14.373        .36285E-03** at limit **
  18  norm          3.5831        4.2038        .35247E-04    .12902E-06
  19  Prefactor     19.887        18.137        .35928E-05    .63286E-06
  20  norm          3.4899        2.6569        .45406E-05    .30045E-06
  21  Prefactor     25.393        35.816        .31795E-05     .0000    
  22  norm          13.930        11.832        .42926E-05     .0000    
  23  Normalizat    1.1348        .27995        .13486E-04   -.74182E-05
  24  Prefactor     .94438        .17944        .96090E-05   -.11595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.90751
  Prefactor  = 0.0001
  norm       = 28.8128
  norm       = 0.000100056
  Prefactor  = 0.732031
  Prefactor  = 0.0001
  Prefactor  = 11.0908
  Prefactor  = 61.9803
  norm       = 0.0001
  norm       = 1.20235
  norm       = 5.21939
  norm       = 0.0001
  Prefactor  = 1.58275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5831
  Prefactor  = 19.887
  norm       = 3.48988
  Prefactor  = 25.3928
  norm       = 13.9303
  Normalizat = 1.13479
  Prefactor  = 0.944377
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.747     FROM HESSE     STATUS=OK           385 CALLS     5260 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.671        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.399        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9075        .46151        .36508E-06   -1.5313    
   4  Prefactor     .10000E-03    24.087        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.813        14.593        .59713E-06   -1.4634    
   6  norm          .10006E-03    8.5070        .79461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73203        25.213        .17484E-03   -1.5537    
   8  Prefactor     .10000E-03    10.886        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.091        10.776        .96258E-06   -1.5042    
  10  Prefactor     61.980        41.260        .20397E-05   -1.4132    
  11  norm          .10000E-03    .70771        .42645E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2023        15.115        .27737E-05   -1.5489    
  13  norm          5.2194        10.123        .14084E-05   -1.5251    
  14  norm          .10000E-03    20.013        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5828        3.6586        .18351E-05   -1.5456    
  16  Prefactor     .10000E-03    37.805        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.373        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5831        4.2037        .70494E-05   -1.5329    
  19  Prefactor     19.887        18.100        .71856E-06   -1.4816    
  20  norm          3.4899        2.6569        .45406E-05   -1.5334    
  21  Prefactor     25.393        35.816        .31795E-05   -1.4700    
  22  norm          13.930        11.832        .42926E-05   -1.4961    
  23  Normalizat    1.1348        .28010        .26973E-05   -.88643    
  24  Prefactor     .94438        .17941        .19218E-05   -.94607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17758e-12
Minuit parameter uncertainties:
  1  3.68423e-07
  2  4.40194e-08
  3  0.461513
  4  2.28862e-07
  5  14.5945
  6  0.00137895
  7  8.59554
  8  1.79372e-07
  9  10.7782
  10  41.2791
  11  1.86734e-09
  12  8.52832
  13  10.1266
  14  2.41137e-07
  15  3.65912
  16  5.02971e-06
  17  1.45743e-08
  18  4.20405
  19  18.1054
  20  2.65698
  21  35.8462
  22  11.8336
  23  0.280473
  24  0.17952
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.867e-09  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.444e-01  1.795e-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.135e+00  2.805e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/739047/likelihoodResults_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.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): 102
logL (Free Index) = 6880.75370935
delta logL = -0.0067001725738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6880.74700694
delta logL = 2.23805000132e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3660       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94438       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=   6880.747     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      231 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8103        .25260E-01** at limit **
   2  alpha         1.7622        4.0791        .41227       -.87411E-06
   3  Normalizat    1.1348        .18304E-01    .76178E-01   -.35208E-04
   4  Prefactor     .94438        .12079E-01    .45568E-01   -.20204E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76216
  Normalizat = 1.13479
  Prefactor  = 0.944376
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.747     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    226.29        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7622        3.4009        .16491       -.29960    
   3  Normalizat    1.1348        .13255        .33716E-03   -.88642    
   4  Prefactor     .94438        .87746E-01    .24022E-03   -.94607    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64275e-08
Minuit parameter uncertainties:
  1  0.000414796
  2  1108.85
  3  0.132586
  4  0.0877593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739047': 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): 102
logL (Free Index) = 6880.74698254
delta logL = 2.66402557827e-05

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  4.148e-04  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.762e+00  1.109e+03  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.444e-01  8.776e-02  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.135e+00  1.326e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/739047/cmap_HighResolution_470016001_470275201_4FGL_J1332.0-0509_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-09-08 01:57:25.461925', job_id='739047', GAL2='0.94', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631091445.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.66e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='890' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:57:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 739047: <4FGL_J1332.0-0509_daily_bin890> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin890 203.02 -5.1611 470016001 470275201 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 :                                   887.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            990 sec.

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

