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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin783
RA = 203.154, Dec = -12.9436
tmin = 442281601, tmax = 442540801
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='761052', job_status='RUN', time_executed='2021-09-08 02:50:43.530211', time_epoch_executed='1631094643.53' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761052/ft1_4FGL_J1332.6-1256_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761052/ft1_4FGL_J1332.6-1256_daily_bin783.fits outfile=/scratch/kocevski/761052/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin783.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=442281601.0 tmax=442540801.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 7.37
user 3.22
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.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/761052/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.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 5.49
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/761052/ltcube_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.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/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits
.....................!
real 16.33
user 13.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/761052/ltcube_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.fits outfile=/scratch/kocevski/761052/expmap_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.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/761052/ltcube_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.fits
.....................!
real 192.86
user 186.18
sys 5.07

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/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits scfile=/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits outfile=/scratch/kocevski/761052/cmap_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.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 0.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits scfile=/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits outfile=/scratch/kocevski/761052/cmap_HighResolution_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.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.74
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761052/Model_4FGL_J1332.6-1256_daily_bin783.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/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits.....................!
real 58.33
user 55.73
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits', '/scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits', expMap='/scratch/kocevski/761052/expmap_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.fits', expCube='/scratch/kocevski/761052/ltcube_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/761052/Model_4FGL_J1332.6-1256_daily_bin783.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/761052/ft1_filtered_4FGL_J1332.6-1256_daily_bin783.fits
Spacecraft file(s): /scratch/kocevski/761052/ft2_4FGL_J1332.6-1256_daily_bin783.fits
Exposure map: /scratch/kocevski/761052/expmap_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.fits
Exposure cube: /scratch/kocevski/761052/ltcube_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/761052/Model_4FGL_J1332.6-1256_daily_bin783.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) = 6762.3515024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3011       1.0000         .10000E-03   10000.    
     2 'norm      '    .60895E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .77684       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6089       1.0000         .10000E-03   10000.    
     6 'norm      '    11.403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9182       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6834       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44167E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4483       1.0000         .10000E-03   10000.    
    11 'norm      '    12.048       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.536       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.363       1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8084       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0365       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.3793       1.0000         .10000E-03   10000.    
    21 'norm      '    8.7281       1.0000         .10000E-03   10000.    
    22 'Prefactor '    66.890       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0123       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94832       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6762.314     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2786 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3010        .32374       -.54181E-08   -.24499E-03
   2  norm          .10000E-03    4.7199        .16910E-06** at limit **
   3  Prefactor     .10000E-03    53.046        .11827E-05** at limit **
   4  norm          .77710        2.6467        .95080E-08   -.13034E-03
   5  norm          5.6063        10.576        .33566E-05   -.10783E-04
   6  norm          11.404        10.953       -.56740E-06   -.13419E-04
   7  Prefactor     5.9185        5.6898        .14465E-06    .22465E-03
   8  Prefactor     2.6822        2.8558        .10579E-06   -.73221E-03
   9  Prefactor     .10000E-03    27.342        .48169E-06** at limit **
  10  norm          2.4480        1.3473        .16166E-07   -.79996E-04
  11  norm          12.046        7.8577       -.53637E-07   -.65342E-03
  12  norm          8.5855        11.236        .14118E-06   -.10843E-03
  13  Prefactor     10.523        19.244        .15447E-05   -.21642E-04
  14  Prefactor     21.364        32.353       -.28166E-06   -.92042E-05
  15  norm          .10000E-03    13.875        .32762E-07** at limit **
  16  Prefactor     4.8142        15.387        .14251E-05   -.23666E-04
  17  norm          4.0361        5.0473       -.60164E-06   -.74946E-04
  18  Prefactor     .10000E-03    1.8843        .39981E-07** at limit **
  19  Prefactor     .10000E-03    36.677       -.69201E-06** at limit **
  20  norm          4.3790        4.9325       -.25819E-06   -.39598E-04
  21  norm          8.7274        3.3882       -.52901E-07   -.24416E-03
  22  Prefactor     66.898        39.815        .42118E-05    .60534E-07
  23  Normalizat    1.0125        .23568       -.14417E-05   -.57798E-04
  24  Prefactor     .94825        .12607       -.10729E-06   -.13838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30102
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.7771
  norm       = 5.60633
  norm       = 11.404
  Prefactor  = 5.91848
  Prefactor  = 2.68217
  Prefactor  = 0.000100001
  norm       = 2.44801
  norm       = 12.0455
  norm       = 8.58553
  Prefactor  = 10.5229
  Prefactor  = 21.364
  norm       = 0.0001
  Prefactor  = 4.8142
  norm       = 4.0361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37904
  norm       = 8.72745
  Prefactor  = 66.8983
  Normalizat = 1.01247
  Prefactor  = 0.948253
 **********
 **   18 **HESSE 
 **********

 FCN=   6762.314     FROM HESSE     STATUS=OK           419 CALLS     3205 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3010        .32420        .22488E-04   -1.5480    
   2  norm          .10000E-03    8.6817        .59654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77710        2.6817        .23686E-03   -1.5532    
   5  norm          5.6063        10.578        .16963E-03   -1.5234    
   6  norm          11.404        10.968        .11864E-03   -1.5032    
   7  Prefactor     5.9185        5.8352        .82534E-03   -1.5221    
   8  Prefactor     2.6822        8.9950        .12437E-02   -1.5380    
   9  Prefactor     .10000E-03    140.33        .63082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4480        1.3485        .67729E-04   -1.5395    
  11  norm          12.046        6.8004        .57705E-03   -1.5014    
  12  norm          8.5855        11.183        .13679E-03   -1.5122    
  13  Prefactor     10.523        18.812        .12344E-03   -1.5059    
  14  Prefactor     21.364        32.314        .86659E-04   -1.4783    
  15  norm          .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8142        15.018        .18347E-03   -1.5269    
  17  norm          4.0361        5.0550        .19729E-03   -1.5306    
  18  Prefactor     .10000E-03    1.8924        .11017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.3790        4.9254        .18776E-03   -1.5289    
  21  norm          8.7274        3.4087        .45260E-03   -1.5117    
  22  Prefactor     66.898        39.827        .49074E-04   -1.4070    
  23  Normalizat    1.0125        .27663        .35320E-03   -.92614    
  24  Prefactor     .94825        .14718        .19796E-03   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68398e-09
Minuit parameter uncertainties:
  1  0.324198
  2  0.000357723
  3  8.88575e-05
  4  2.68211
  5  10.5813
  6  10.9698
  7  5.83574
  8  8.99953
  9  0.000835593
  10  1.34849
  11  6.80086
  12  11.1861
  13  18.8231
  14  32.3401
  15  2.17634e-06
  16  15.0295
  17  5.05555
  18  2.0723e-06
  19  2.67546e-05
  20  4.9259
  21  3.40881
  22  39.8427
  23  0.277022
  24  0.147242
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.205e+01  6.801e+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:  9.483e-01  1.472e-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.012e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.46
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 7.98e-08
Energy Flux (Fixed Index): 4.93e-05 +/- 2.78e-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) = 6762.31268969
delta logL = 0.0017306265936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6762.31176566
delta logL = 0.00265465990651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.290       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3703       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94694       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6762.312     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.290        6.6567        .11426E-03    .10370E-02
   2  alpha         2.3704        .45293        .98930E-02    .10966E-03
   3  Normalizat    1.0166        .26249        .35259E-03   -.57845E-04
   4  Prefactor     .94694        .14061        .19809E-03   -.17952E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2899
  alpha      = 2.37037
  Normalizat = 1.01662
  Prefactor  = 0.946942
 **********
 **   18 **HESSE 
 **********

 FCN=   6762.312     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.290        6.4808        .45706E-05   -1.5007    
   2  alpha         2.3704        .44044        .39572E-03   -.51876E-01
   3  Normalizat    1.0166        .26232        .14104E-04   -.92476    
   4  Prefactor     .94694        .14058        .39618E-04   -.94520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92561e-10
Minuit parameter uncertainties:
  1  6.48118
  2  0.442753
  3  0.262653
  4  0.140632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761052': 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) = 6762.31176565
delta logL = 0.00265466568999

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.229e+01  6.481e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.370e+00  4.428e-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:  9.469e-01  1.406e-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.017e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.49
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 2.37 +/- 0.44
Photon Flux (Free Index): 1.38e-07 +/- 8.05e-08
Energy Flux (Free Index): 4.96e-05 +/- 2.32e-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/761052/cmap_HighResolution_442281601_442540801_4FGL_J1332.6-1256_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='4.96e-05', photon_flux_error='7.98e-08', dlogl='2.65e-03', energy_flux='4.93e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-08 03:01:28.164263', photon_index_error2='0.44', photon_index2='2.37', ts='10.46', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='1.01', time_epoch_completed='1631095288.16', return_code='0', job_id='761052', GAL2='0.95', EG2='1.02', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='8.05e-08', ts2='10.49', photon_index='2.40' WHERE bin_id='783' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 761052: <4FGL_J1332.6-1256_daily_bin783> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin783> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 02:45:43 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:45:45 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:45:45 2021
Terminated at Wed Sep  8 03:01:28 2021
Results reported at Wed Sep  8 03:01:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin783 203.154 -12.9436 442281601 442540801 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 :                                   620.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

