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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin1032
RA = 203.154, Dec = -12.9436
tmin = 506822401, tmax = 507081601
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='761424', job_status='RUN', time_executed='2021-09-08 02:50:03.873649', time_epoch_executed='1631094603.87' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761424

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761424/ft1_4FGL_J1332.6-1256_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761424/ft1_4FGL_J1332.6-1256_daily_bin1032.fits outfile=/scratch/kocevski/761424/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1032.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=506822401.0 tmax=507081601.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 9.52
user 3.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.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/761424/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.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 2.21
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/761424/ltcube_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.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/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits
.....................!
real 15.66
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/761424/ltcube_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.fits outfile=/scratch/kocevski/761424/expmap_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.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/761424/ltcube_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.fits
.....................!
real 206.24
user 186.13
sys 4.22

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.6-1256 @ 203.154 -12.9436

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits scfile=/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits outfile=/scratch/kocevski/761424/cmap_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.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.154 yref=-12.9436 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 4.30
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits scfile=/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits outfile=/scratch/kocevski/761424/cmap_HighResolution_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.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.154 yref=-12.9436 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.81
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761424/Model_4FGL_J1332.6-1256_daily_bin1032.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/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits.....................!
real 54.35
user 52.34
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits', '/scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits', expMap='/scratch/kocevski/761424/expmap_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.fits', expCube='/scratch/kocevski/761424/ltcube_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/761424/Model_4FGL_J1332.6-1256_daily_bin1032.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.6-1256'

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  5.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.403e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/761424/ft1_filtered_4FGL_J1332.6-1256_daily_bin1032.fits
Spacecraft file(s): /scratch/kocevski/761424/ft2_4FGL_J1332.6-1256_daily_bin1032.fits
Exposure map: /scratch/kocevski/761424/expmap_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.fits
Exposure cube: /scratch/kocevski/761424/ltcube_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/761424/Model_4FGL_J1332.6-1256_daily_bin1032.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) = 6282.99400288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9237       1.0000         .10000E-03   10000.    
     2 'norm      '    .27930E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4814       1.0000         .10000E-03   10000.    
     5 'norm      '    54.492       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38215E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6757       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5958       1.0000         .10000E-03   10000.    
    12 'norm      '    .13540E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9569       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5227       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3265       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6282.935     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2343 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9236        .50037        .50564E-02   -.16985E-03
   2  norm          .10000E-03    5.2136        .99523E-01** at limit **
   3  Prefactor     .10001E-03    21.343        .90712E-02** at limit **
   4  norm          4.4811        3.4311        .47550E-02    .11829E-03
   5  norm          54.487        17.072        .13584E-02   -.26443E-03
   6  norm          .10000E-03    7.6666        .90712E-02** at limit **
   7  Prefactor     5.4461        7.7361        .43046E-02    .15016E-02
   8  Prefactor     .10003E-03    8.0191        .79687E-01** at limit **
   9  Prefactor     .10001E-03    21.646        .90712E-02** at limit **
  10  norm          2.6755        1.7531        .62282E-02    .25604E-03
  11  norm          6.6005        4.0445        .39063E-02    .46945E-04
  12  norm          .10000E-03    7.8955        .90712E-02** at limit **
  13  Prefactor     .10000E-03    8.3492        .90712E-02** at limit **
  14  Prefactor     .10000E-03    10.587        .90712E-02** at limit **
  15  norm          .10000E-03    11.875        .90712E-02** at limit **
  16  Prefactor     11.396        14.823        .29672E-02    .11965E-03
  17  norm          1.0495        4.1383        .12108E-01    .10817E-02
  18  Prefactor     21.029        9.4185        .21839E-02    .55972E-03
  19  Prefactor     .10000E-03    35.428        .90712E-02** at limit **
  20  norm          3.9568        6.2421        .50695E-02    .62039E-03
  21  norm          .10000E-03    1.0534        .90712E-02** at limit **
  22  Prefactor     3.5249        111.45        .53847E-02   -.29711E-03
  23  Normalizat    1.3267        .27083        .79014E-01   -.10834E-04
  24  Prefactor     .87447        .13434        .44680E-01   -.31187E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92364
  norm       = 0.000100001
  Prefactor  = 0.000100005
  norm       = 4.48107
  norm       = 54.4869
  norm       = 0.0001
  Prefactor  = 5.44608
  Prefactor  = 0.000100028
  Prefactor  = 0.000100006
  norm       = 2.6755
  norm       = 6.60047
  norm       = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3962
  norm       = 1.0495
  Prefactor  = 21.0292
  Prefactor  = 0.000100001
  norm       = 3.95679
  norm       = 0.0001
  Prefactor  = 3.52489
  Normalizat = 1.32672
  Prefactor  = 0.874471
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.935     FROM HESSE     STATUS=OK           401 CALLS     2744 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9236        .50187        .22339E-04   -1.5366    
   2  norm          .10000E-03    81.852        .34830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    21.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4811        3.4324        .12399E-03   -1.5285    
   5  norm          54.487        17.083        .54337E-04   -1.4230    
   6  norm          .10000E-03    7.7071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4461        7.7164        .86092E-03   -1.5241    
   8  Prefactor     .10003E-03    40.269        .42262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    21.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6755        1.7532        .80821E-04   -1.5381    
  11  norm          6.6005        4.0223        .11916E-03   -1.5194    
  12  norm          .10000E-03    8.1992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.396        14.795        .11869E-03   -1.5033    
  17  norm          1.0495        4.0872        .30637E-03   -1.5503    
  18  Prefactor     21.029        9.4256        .87356E-04   -1.4790    
  19  Prefactor     .10000E-03    35.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9568        6.2156        .20278E-03   -1.5310    
  21  norm          .10000E-03    1.0617        .79415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5249        111.26        .21539E-03   -1.5332    
  23  Normalizat    1.3267        .30885        .34974E-03   -.82772    
  24  Prefactor     .87447        .15455        .21872E-03   -.97039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75499e-09
Minuit parameter uncertainties:
  1  0.50187
  2  0.000416469
  3  0.000670658
  4  3.43258
  5  17.085
  6  4.30679e-05
  7  7.71778
  8  0.00212302
  9  0.000711406
  10  1.75324
  11  4.02244
  12  0.000364692
  13  0.000358579
  14  0.000103027
  15  7.19882e-05
  16  14.7996
  17  4.08827
  18  9.42626
  19  0.000369078
  20  6.21658
  21  8.50349e-08
  22  39.6869
  23  0.309278
  24  0.154623
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  6.600e+00  4.022e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.403e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.745e-01  1.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.327e+00  3.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.73
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.65e-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) = 6282.93303565
delta logL = 0.00242613823957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.93155913
delta logL = 0.00390265776878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8568       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3357       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6282.932     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8559        100.89        .38305E-02    .89160E-03
   2  alpha         2.3368        3.0112        .31176        .10781E-03
   3  Normalizat    1.3315        .20937        .78898E-01    .19511E-03
   4  Prefactor     .87297        .63164E-01    .44657E-01   -.28514E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.85586
  alpha      = 2.33677
  Normalizat = 1.33152
  Prefactor  = 0.872967
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.932     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8559        5.1992        .12256E-03   -1.5184    
   2  alpha         2.3368        .75653        .15551E-01   -.65339E-01
   3  Normalizat    1.3315        .29516        .34922E-03   -.82630    
   4  Prefactor     .87297        .15236        .21889E-03   -.97092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14425e-09
Minuit parameter uncertainties:
  1  5.19954
  2  0.768633
  3  0.295531
  4  0.152431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761424': 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) = 6282.93155709
delta logL = 0.00390469936519

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  6.856e+00  5.200e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.337e+00  7.686e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.730e-01  1.524e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.332e+00  2.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.71
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 2.34 +/- 0.77
Photon Flux (Free Index): 7.32e-08 +/- 6.43e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.77e-05

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/761424/cmap_HighResolution_506822401_507081601_4FGL_J1332.6-1256_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='2.74e-05', photon_flux_error='4.72e-08', dlogl='3.90e-03', energy_flux='2.70e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-08 03:00:16.347455', photon_index_error2='0.77', photon_index2='2.34', ts='6.73', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.33', time_epoch_completed='1631095216.35', return_code='0', job_id='761424', GAL2='0.87', EG2='1.33', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='6.43e-08', ts2='6.71', photon_index='2.40' WHERE bin_id='1032' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:00:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 761424: <4FGL_J1332.6-1256_daily_bin1032> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin1032> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 02:46:16 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:46:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:46:24 2021
Terminated at Wed Sep  8 03:00:17 2021
Results reported at Wed Sep  8 03:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin1032 203.154 -12.9436 506822401 507081601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.6-1256 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            841 sec.

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

