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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin521
RA = 203.154, Dec = -12.9436
tmin = 374371201, tmax = 374630401
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='757830', job_status='RUN', time_executed='2021-09-08 02:38:41.376239', time_epoch_executed='1631093921.38' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757830

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757830/ft1_4FGL_J1332.6-1256_daily_bin521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757830/ft1_4FGL_J1332.6-1256_daily_bin521.fits outfile=/scratch/kocevski/757830/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin521.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=374371201.0 tmax=374630401.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 2.67
user 2.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.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/757830/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin521.fits evtable="EVENTS" outfile="/scratch/kocevski/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.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.48
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.fits" evtable="EVENTS" scfile=/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits sctable="SC_DATA" outfile=/scratch/kocevski/757830/ltcube_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.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/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits
.....................!
real 15.45
user 15.12
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits sctable="SC_DATA" expcube=/scratch/kocevski/757830/ltcube_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.fits outfile=/scratch/kocevski/757830/expmap_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.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/757830/ltcube_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.fits
.....................!
real 157.15
user 152.55
sys 4.13

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/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.fits scfile=/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits outfile=/scratch/kocevski/757830/cmap_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.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.52
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.fits scfile=/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits outfile=/scratch/kocevski/757830/cmap_HighResolution_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.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.51
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/757830/ft2_4FGL_J1332.6-1256_daily_bin521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/757830/Model_4FGL_J1332.6-1256_daily_bin521.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/757830/ft1_filtered_4FGL_J1332.6-1256_daily_bin521.fits.....................!
real 47.31
user 46.10
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32401       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.056       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3141       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8268       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7314       1.0000         .10000E-03   10000.    
    12 'norm      '    .67794E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.671       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .37939E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.741       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4368       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65180       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=   6765.906     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2787 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32402        .21326        .12851E-07   -.13207E-03
   2  norm          5.1134        5.5947        .65669E-07   -.88006E-05
   3  Prefactor     .10000E-03    23.209       -.36162E-06** at limit **
   4  norm          .10000E-03    .97572       -.10561E-07** at limit **
   5  norm          17.057        11.469        .38933E-06   -.34510E-04
   6  norm          .10000E-03    5.5709       -.11118E-07** at limit **
   7  Prefactor     7.3143        10.925        .32090E-05   -.14846E-03
   8  Prefactor     31.560        14.125       -.34480E-06   -.91189E-04
   9  Prefactor     .10000E-03    10.584       -.13922E-06** at limit **
  10  norm          2.8269        1.5556        .54568E-07   -.73848E-04
  11  norm          3.7318        3.9147        .10990E-06   -.31672E-03
  12  norm          .10005E-03    7.0917        .50474E-06** at limit **
  13  Prefactor     .10000E-03    50.671       -.21845E-06** at limit **
  14  Prefactor     .10000E-03    25.064       -.19389E-06** at limit **
  15  norm          .10000E-03    35.517        .98745E-07** at limit **
  16  Prefactor     15.654        13.690        .16672E-06    .53095E-05
  17  norm          2.8901        4.9842        .53697E-06   -.63417E-04
  18  Prefactor     23.567        8.2983        .47933E-07   -.30547E-03
  19  Prefactor     .10000E-03    22.695        .34999E-06** at limit **
  20  norm          .29168E-01    5.4282        .28616E-06   -.16445E-03
  21  norm          .10000E-03    1.0338        .62652E-07** at limit **
  22  Prefactor     24.725        29.196        .32535E-05    .29603E-03
  23  Normalizat    1.4367        .24153       -.70926E-06   -.86087E-04
  24  Prefactor     .65179        .11546       -.23058E-06   -.12649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.324019
  norm       = 5.11344
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.0567
  norm       = 0.0001
  Prefactor  = 7.31426
  Prefactor  = 31.5598
  Prefactor  = 0.0001
  norm       = 2.82692
  norm       = 3.73181
  norm       = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.654
  norm       = 2.89014
  Prefactor  = 23.567
  Prefactor  = 0.0001
  norm       = 0.0291685
  norm       = 0.0001
  Prefactor  = 24.7252
  Normalizat = 1.43674
  Prefactor  = 0.65179
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.906     FROM HESSE     STATUS=OK           411 CALLS     3198 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32402        .21416        .29635E-04   -1.5594    
   2  norm          5.1134        5.5939        .17780E-03   -1.5256    
   3  Prefactor     .10000E-03    23.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0144        .79321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.057        11.481        .48490E-03   -1.4882    
   6  norm          .10000E-03    5.5871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3143        11.173        .74153E-03   -1.5167    
   8  Prefactor     31.560        14.245        .71325E-04   -1.4584    
   9  Prefactor     .10000E-03    10.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8269        1.5563        .72595E-04   -1.5372    
  11  norm          3.7318        3.6234        .14570E-03   -1.5322    
  12  norm          .10005E-03    37.438        .37854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    35.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.654        13.585        .10117E-03   -1.4916    
  17  norm          2.8901        4.9730        .22860E-03   -1.5368    
  18  Prefactor     23.567        8.2399        .82505E-04   -1.4737    
  19  Prefactor     .10000E-03    22.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .29168E-01    6.0290        .56044E-01   -1.5674    
  21  norm          .10000E-03    1.0549        .81635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.725        31.064        .80534E-04   -1.4713    
  23  Normalizat    1.4367        .28542        .14999E-02   -.79572    
  24  Prefactor     .65179        .13553        .21610E-03   -1.0545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58664e-09
Minuit parameter uncertainties:
  1  0.214161
  2  5.59452
  3  6.3635e-05
  4  9.30986e-07
  5  11.482
  6  2.52833e-07
  7  11.176
  8  14.2465
  9  2.79242e-05
  10  1.55632
  11  3.62356
  12  0.00262454
  13  0.000122252
  14  2.20493e-05
  15  3.84601e-05
  16  13.5874
  17  4.97367
  18  8.24034
  19  6.37944e-05
  20  0.837354
  21  5.91334e-07
  22  31.0845
  23  0.285735
  24  0.135594
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  3.732e+00  3.624e+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:  6.518e-01  1.356e-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.437e+00  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.48e-05

TS (Fixed Index): 2.04
Ra Dec: 203.154 -12.944
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757830/likelihoodResults_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.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) = 6765.58206506
delta logL = 0.323558134847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6765.5712804
delta logL = 0.334342794217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8130       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67963       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=   6765.571     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8118        17.981        .77562E-02    .76665E-03
   2  alpha         3.4383        4.0414        .34591        .71736E-04
   3  Normalizat    1.3520        .64552E-01    .69419E-01    .17738E-04
   4  Prefactor     .67958        .31492E-01    .42129E-01    .94579E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81184
  alpha      = 3.43826
  Normalizat = 1.35195
  Prefactor  = 0.679581
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.571     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8118        7.5830        .72612E-04   -1.5439    
   2  alpha         3.4383        3.8855        .12103E-01    .38472    
   3  Normalizat    1.3520        .31779        .30714E-03   -.82029    
   4  Prefactor     .67958        .15173        .21194E-03   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53243e-10
Minuit parameter uncertainties:
  1  7.41468
  2  2.79835
  3  0.318254
  4  0.151822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757830': 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) = 6765.57128025
delta logL = 0.334342950631

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.812e+00  7.415e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.438e+00  2.798e+00  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:  6.796e-01  1.518e-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.352e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 3.44 +/- 2.80
Photon Flux (Free Index): 1.17e-07 +/- 1.42e-07
Energy Flux (Free Index): 2.18e-05 +/- 1.54e-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/757830/cmap_HighResolution_374371201_374630401_4FGL_J1332.6-1256_daily_bin521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-05', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='2.18e-05', photon_flux_error='4.25e-08', dlogl='3.34e-01', energy_flux='1.53e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-08 02:48:21.671298', photon_index_error2='2.80', photon_index2='3.44', ts='2.04', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.54e-05', EG='1.44', time_epoch_completed='1631094501.67', return_code='0', job_id='757830', GAL2='0.68', EG2='1.35', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='1.42e-07', ts2='2.80', photon_index='2.40' WHERE bin_id='521' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:48:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 757830: <4FGL_J1332.6-1256_daily_bin521> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin521> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 02:35:31 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:38:28 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:38:28 2021
Terminated at Wed Sep  8 02:48:23 2021
Results reported at Wed Sep  8 02:48:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin521 203.154 -12.9436 374371201 374630401 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 :                                   570.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            772 sec.

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

