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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin686
RA = 203.02, Dec = -5.1611
tmin = 417139201, tmax = 417398401
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='738718', job_status='RUN', time_executed='2021-09-08 01:43:56.947316', time_epoch_executed='1631090636.95' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738718/ft1_4FGL_J1332.0-0509_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738718/ft2_4FGL_J1332.0-0509_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738718/ft1_4FGL_J1332.0-0509_daily_bin686.fits outfile=/scratch/kocevski/738718/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin686.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.58
user 5.31
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738718/ft1_filtered_4FGL_J1332.0-0509_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/738718/ft2_4FGL_J1332.0-0509_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/738718/ltcube_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.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/738718/ft2_4FGL_J1332.0-0509_daily_bin686.fits
.....................!
real 17.99
user 17.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738718/ft1_filtered_4FGL_J1332.0-0509_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/738718/ft2_4FGL_J1332.0-0509_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/738718/ltcube_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.fits outfile=/scratch/kocevski/738718/expmap_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.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/738718/ltcube_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.fits
.....................!
real 193.02
user 188.00
sys 4.55

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/738718/ft1_filtered_4FGL_J1332.0-0509_daily_bin686.fits scfile=/scratch/kocevski/738718/ft2_4FGL_J1332.0-0509_daily_bin686.fits outfile=/scratch/kocevski/738718/cmap_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738718/ft1_filtered_4FGL_J1332.0-0509_daily_bin686.fits scfile=/scratch/kocevski/738718/ft2_4FGL_J1332.0-0509_daily_bin686.fits outfile=/scratch/kocevski/738718/cmap_HighResolution_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.44       1.0000         .10000E-03   10000.    
     2 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6154       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0309       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9818       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6662       1.0000         .10000E-03   10000.    
    22 'norm      '    7.2666       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3238       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94355       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=   6620.843     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2692 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.44        78.023       -.44498E-06    .35678E-05
   2  norm          .10000E-03    69.256       -.34399E-05** at limit **
   3  norm          1.9254        .39983       -.13912E-08   -.31676E-03
   4  Prefactor     .10000E-03    21.575       -.90788E-05** at limit **
   5  norm          .10000E-03    16.868        .95518E-05** at limit **
   6  norm          .10000E-03    7.3655       -.27828E-05** at limit **
   7  Prefactor     9.6428        9.4804       -.93490E-07   -.59294E-04
   8  Prefactor     11.757        13.634       -.57790E-06   -.32567E-03
   9  Prefactor     16.090        9.9116       -.54050E-06   -.85063E-03
  10  Prefactor     .10000E-03    4.7949       -.47996E-07** at limit **
  11  norm          4.6156        2.0676       -.33573E-07   -.33818E-03
  12  norm          .10000E-03    1.3452       -.79333E-08** at limit **
  13  norm          .10000E-03    7.2181        .28383E-05** at limit **
  14  norm          .10000E-03    14.056       -.42277E-05** at limit **
  15  Prefactor     1.0308        3.4506       -.16706E-05   -.12101E-02
  16  Prefactor     .10000E-03    35.683        .60943E-05** at limit **
  17  Prefactor     .10000E-03    68.816       -.62853E-06** at limit **
  18  norm          .10000E-03    2.5964        .52613E-07** at limit **
  19  Prefactor     .10000E-03    4.9665        .47424E-07** at limit **
  20  norm          4.9820        2.5578       -.30882E-07   -.13428E-03
  21  Prefactor     5.6651        48.920       -.25443E-05   -.12136E-04
  22  norm          7.2667        7.3677        .57911E-07    .76924E-04
  23  Normalizat    1.3237        .24141        .45135E-06   -.10297E-03
  24  Prefactor     .94355        .15266        .22463E-06   -.12722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.442
  norm       = 0.0001
  norm       = 1.92538
  Prefactor  = 0.000100001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 9.64278
  Prefactor  = 11.7568
  Prefactor  = 16.0897
  Prefactor  = 0.0001
  norm       = 4.61559
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.98201
  Prefactor  = 5.66514
  norm       = 7.26673
  Normalizat = 1.32368
  Prefactor  = 0.943546
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.843     FROM HESSE     STATUS=OK           395 CALLS     3087 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.44        78.852        .36520E-04   -1.3499    
   2  norm          .10000E-03    69.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9254        .40502        .20821E-04   -1.5430    
   4  Prefactor     .10000E-03    21.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    16.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6428        9.4765        .12906E-03   -1.5087    
   8  Prefactor     11.757        13.734        .58417E-03   -1.5022    
   9  Prefactor     16.090        10.094        .49927E-03   -1.4906    
  10  Prefactor     .10000E-03    4.8012        .17400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6156        2.0741        .74049E-04   -1.5278    
  12  norm          .10000E-03    1.3633        .92120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.4204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0308        3.7011        .28226E-03   -1.5505    
  16  Prefactor     .10000E-03    35.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    69.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6378        .12799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9712        .17707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9820        2.5571        .89634E-04   -1.5262    
  21  Prefactor     5.6651        49.156        .16875E-03   -1.5232    
  22  norm          7.2667        7.3724        .14880E-03   -1.5169    
  23  Normalizat    1.3237        .29062        .31046E-03   -.82862    
  24  Prefactor     .94355        .18284        .23399E-03   -.94636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76362e-09
Minuit parameter uncertainties:
  1  78.9203
  2  0.000174267
  3  0.405019
  4  0.000241134
  5  0.000398475
  6  4.57044e-05
  7  9.47801
  8  13.7374
  9  10.0954
  10  6.63299e-07
  11  2.07418
  12  6.35083e-07
  13  6.9201e-05
  14  9.2339e-05
  15  3.70187
  16  0.000260409
  17  4.41904e-05
  18  6.79604e-06
  19  1.22897e-07
  20  2.55714
  21  33.4117
  22  7.37328
  23  0.290984
  24  0.182963
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.616e+00  2.074e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.435e-01  1.830e-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.324e+00  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.91
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 6.27e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.89e-05

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) = 6619.93398855
delta logL = 0.909189881829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6619.90830097
delta logL = 0.93487746185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2053       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1154       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98619       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=   6619.908     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      237 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2072        19.060        .56576E-02    .21017E-02
   2  alpha         3.1156        4.0529        .25333        .15813E-03
   3  Normalizat    1.2347        .11138        .72184E-01    .58228E-04
   4  Prefactor     .98623        .73023E-01    .46094E-01   -.91787E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20717
  alpha      = 3.11562
  Normalizat = 1.23473
  Prefactor  = 0.986228
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.908     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2072        2.2296        .54369E-04   -1.5350    
   2  alpha         3.1156        .62179        .10763E-01    .24881    
   3  Normalizat    1.2347        .28939        .31942E-03   -.85536    
   4  Prefactor     .98623        .18509        .22955E-03   -.93190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23421e-10
Minuit parameter uncertainties:
  1  2.22965
  2  0.628828
  3  0.289767
  4  0.185208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738718': 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) = 6619.90829807
delta logL = 0.934880358554

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.207e+00  2.230e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.116e+00  6.288e-01  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.862e-01  1.852e-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.235e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.00
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.12 +/- 0.63
Photon Flux (Free Index): 2.02e-07 +/- 8.55e-08
Energy Flux (Free Index): 4.04e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/738718/cmap_HighResolution_417139201_417398401_4FGL_J1332.0-0509_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='4.04e-05', photon_flux_error='6.27e-08', dlogl='9.35e-01', energy_flux='4.20e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-08 01:54:39.495095', photon_index_error2='0.63', photon_index2='3.12', ts='7.91', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.32', time_epoch_completed='1631091279.5', return_code='0', job_id='738718', GAL2='0.99', EG2='1.23', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='8.55e-08', ts2='10.00', photon_index='2.39' WHERE bin_id='686' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 738718: <4FGL_J1332.0-0509_daily_bin686> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin686 203.02 -5.1611 417139201 417398401 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 :                                   640.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            851 sec.

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

