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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin963
RA = 203.02, Dec = -5.1611
tmin = 488937601, tmax = 489196801
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='740257', job_status='RUN', time_executed='2021-09-08 01:49:42.503182', time_epoch_executed='1631090982.5' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740257/ft1_4FGL_J1332.0-0509_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740257/ft1_4FGL_J1332.0-0509_daily_bin963.fits outfile=/scratch/kocevski/740257/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin963.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=488937601.0 tmax=489196801.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.61
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.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/740257/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin963.fits evtable="EVENTS" outfile="/scratch/kocevski/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.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/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/740257/ltcube_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.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/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits
.....................!
real 14.69
user 14.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/740257/ltcube_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.fits outfile=/scratch/kocevski/740257/expmap_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.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/740257/ltcube_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.fits
.....................!
real 194.50
user 188.92
sys 5.11

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/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.fits scfile=/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits outfile=/scratch/kocevski/740257/cmap_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.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/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.fits scfile=/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits outfile=/scratch/kocevski/740257/cmap_HighResolution_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/740257/ft2_4FGL_J1332.0-0509_daily_bin963.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740257/Model_4FGL_J1332.0-0509_daily_bin963.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/740257/ft1_filtered_4FGL_J1332.0-0509_daily_bin963.fits.....................!
real 53.66
user 52.10
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.357       1.0000         .10000E-03   10000.    
     2 'norm      '    11.798       1.0000         .10000E-03   10000.    
     3 'norm      '    .92118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .20759E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.718       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22851E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.034       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7477       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1914       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.198       1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18990E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2736       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=   6750.893     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2763 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.362        29.019        .33032E-07    .57325E-05
   2  norm          11.787        21.877       -.26670E-06    .49171E-05
   3  norm          .92120        .28512        .20999E-07    .54398E-03
   4  Prefactor     .10000E-03    24.234       -.33273E-05** at limit **
   5  norm          .10000E-03    5.9872       -.12385E-07** at limit **
   6  norm          .11244E-03    9.5890       -.50718E-05** at limit **
   7  Prefactor     16.715        11.429       -.92271E-07   -.19498E-03
   8  Prefactor     30.817        26.653        .53993E-06    .95897E-05
   9  Prefactor     .10000E-03    10.932       -.72653E-07** at limit **
  10  Prefactor     .10000E-03    13.381        .55304E-06** at limit **
  11  norm          .10000E-03    .91615       -.56869E-08** at limit **
  12  norm          .10000E-03    2.8195        .14438E-05** at limit **
  13  norm          17.012        10.561       -.16904E-05   -.10936E-02
  14  norm          7.7590        26.432        .53688E-06   -.36133E-05
  15  Prefactor     3.1907        6.0699        .50674E-05    .62842E-03
  16  Prefactor     .10000E-03    25.706        .35554E-05** at limit **
  17  Prefactor     65.163        63.532        .30289E-05   -.45044E-04
  18  norm          .10000E-03    4.9699        .25717E-06** at limit **
  19  Prefactor     .10000E-03    55.365       -.30149E-06** at limit **
  20  norm          .10000E-03    1.1792        .11369E-07** at limit **
  21  Prefactor     .10000E-03    146.51       -.79354E-05** at limit **
  22  norm          .10000E-03    5.8905        .47452E-07** at limit **
  23  Normalizat    1.1188        .24555       -.15226E-05   -.51814E-04
  24  Prefactor     1.2736        .16254        .25042E-07   -.91601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3618
  norm       = 11.7868
  norm       = 0.921199
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000112437
  Prefactor  = 16.7155
  Prefactor  = 30.8173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.0115
  norm       = 7.75897
  Prefactor  = 3.1907
  Prefactor  = 0.0001
  Prefactor  = 65.1626
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.11875
  Prefactor  = 1.27363
 **********
 **   18 **HESSE 
 **********

 FCN=   6750.893     FROM HESSE     STATUS=OK           403 CALLS     3166 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.362        29.074        .75234E-04   -1.4642    
   2  norm          11.787        21.881        .11663E-03   -1.5021    
   3  norm          .92120        .28462        .23265E-04   -1.5516    
   4  Prefactor     .10000E-03    24.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.0112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11244E-03    7.3631        .75680E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.715        11.398        .97954E-04   -1.4890    
   8  Prefactor     30.817        26.820        .72172E-04   -1.4597    
   9  Prefactor     .10000E-03    11.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8909        .15136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.0676        .23727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.012        9.9081        .97042E-04   -1.4883    
  14  norm          7.7590        26.461        .14406E-03   -1.5151    
  15  Prefactor     3.1907        6.0675        .11341E-02   -1.5351    
  16  Prefactor     .10000E-03    25.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     65.163        63.535        .49702E-04   -1.4092    
  18  norm          .10000E-03    5.0419        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1967        .87095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    147.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1188        .29150        .34966E-03   -.89152    
  24  Prefactor     1.2736        .19516        .22212E-03   -.84094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07758e-09
Minuit parameter uncertainties:
  1  29.0888
  2  21.8962
  3  0.284616
  4  3.01041e-05
  5  3.44601e-06
  6  0.0191409
  7  11.3997
  8  26.8304
  9  2.63042e-05
  10  2.21765e-05
  11  7.16712e-06
  12  2.71422e-05
  13  9.90909
  14  26.5006
  15  6.06871
  16  4.60958e-05
  17  63.6015
  18  8.83258e-06
  19  0.000306973
  20  2.94552e-07
  21  0.000940153
  22  4.97608e-07
  23  0.291921
  24  0.195273
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  7.167e-06  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:  1.274e+00  1.953e-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.119e+00  2.919e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740257/likelihoodResults_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.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) = 6750.89583561
delta logL = -0.00252433186324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6750.89331227
delta logL = -9.90910848486e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3983       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2738       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=   6750.893     FROM MIGRAD    STATUS=FAILED        88 CALLS      256 TOTAL
                     EDM=   .32E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10496E-03    352.50        .15138E-02** at limit **
   2  alpha         3.0886        2.8380        .16478       -.85587E-05
   3  Normalizat    1.1188        .12229        .34966E-03    .38854E-03
   4  Prefactor     1.2736        .74935E-01    .22212E-03    .31145E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6750.893     FROM SIMPLEX   STATUS=PROGRESS     137 CALLS      393 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10243E-03    352.50        .22387E-03** at limit **
   2  alpha         3.0885        2.8380        .65153E-04   -.85587E-05
   3  Normalizat    1.1187        .12229        .44912E-05    .38854E-03
   4  Prefactor     1.2736        .74935E-01    .23062E-05    .31145E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6750.893     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .41062E-01    .16895E-01** at limit **
   2  alpha         4.8261        2.5140        .50000       -.85720E-08
   3  Normalizat    1.1187        .54635E-02    .69933E-04    .16452E-04
   4  Prefactor     1.2737        .36926E-02    .44423E-04    .82405E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.82615
  Normalizat = 1.11869
  Prefactor  = 1.27366
 **********
 **   18 **HESSE 
 **********

 FCN=   6750.893     FROM HESSE     STATUS=OK            33 CALLS      486 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4922        .36327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.8261        4.6771        .50000        1.1957    
   3  Normalizat    1.1187        .28193        .13987E-04   -.89154    
   4  Prefactor     1.2737        .19030        .88847E-05   -.84094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14375e-11
Minuit parameter uncertainties:
  1  8.66712e-06
  2  411.732
  3  0.282312
  4  0.190406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740257': 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) = 6750.8933047
delta logL = 6.58070894133e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  8.667e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.826e+00  4.117e+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:  1.274e+00  1.904e-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.119e+00  2.823e-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/740257/cmap_HighResolution_488937601_489196801_4FGL_J1332.0-0509_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='9.80e-08', time_completed='2021-09-08 02:01:33.490194', job_id='740257', GAL2='1.27', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631091693.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='6.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='963' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:01:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 740257: <4FGL_J1332.0-0509_daily_bin963> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin963 203.02 -5.1611 488937601 489196801 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 :                                   705.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            954 sec.

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

