/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.6-1256_daily_bin910
RA = 203.154, Dec = -12.9436
tmin = 475200001, tmax = 475459201
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='761223', job_status='RUN', time_executed='2021-09-08 02:49:30.560746', time_epoch_executed='1631094570.56' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761223/ft1_4FGL_J1332.6-1256_daily_bin910.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761223/ft1_4FGL_J1332.6-1256_daily_bin910.fits outfile=/scratch/kocevski/761223/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin910.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=475200001.0 tmax=475459201.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.13
user 3.33
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761223/ft1_filtered_4FGL_J1332.6-1256_daily_bin910.fits" evtable="EVENTS" scfile=/scratch/kocevski/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits sctable="SC_DATA" outfile=/scratch/kocevski/761223/ltcube_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.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/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits
.....................!
real 18.21
user 15.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761223/ft1_filtered_4FGL_J1332.6-1256_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits sctable="SC_DATA" expcube=/scratch/kocevski/761223/ltcube_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.fits outfile=/scratch/kocevski/761223/expmap_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.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/761223/ltcube_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.fits
.....................!
real 206.28
user 186.42
sys 4.36

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/761223/ft1_filtered_4FGL_J1332.6-1256_daily_bin910.fits scfile=/scratch/kocevski/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits outfile=/scratch/kocevski/761223/cmap_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761223/ft1_filtered_4FGL_J1332.6-1256_daily_bin910.fits scfile=/scratch/kocevski/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits outfile=/scratch/kocevski/761223/cmap_HighResolution_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761223/ft1_filtered_4FGL_J1332.6-1256_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/761223/ft2_4FGL_J1332.6-1256_daily_bin910.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761223/Model_4FGL_J1332.6-1256_daily_bin910.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/761223/ft1_filtered_4FGL_J1332.6-1256_daily_bin910.fits.....................!
real 65.04
user 61.84
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2864       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2721       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7570       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5318       1.0000         .10000E-03   10000.    
    12 'norm      '    10.531       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7987       1.0000         .10000E-03   10000.    
    15 'norm      '    12.857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5413       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .83939       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0460       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97598       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=   7686.385     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2677 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2864        .38942        .14892E-07    .50073E-03
   2  norm          1.9825        16.580       -.16218E-05   -.22812E-03
   3  Prefactor     .10000E-03    20.042       -.18094E-04** at limit **
   4  norm          3.2721        2.8491        .73085E-07   -.11012E-03
   5  norm          1.7562        10.694       -.18769E-05   -.36685E-03
   6  norm          .10000E-03    2.5507       -.13760E-06** at limit **
   7  Prefactor     14.937        8.8459       -.73309E-07    .59750E-05
   8  Prefactor     12.610        9.2988       -.79660E-07   -.57330E-04
   9  Prefactor     .10000E-03    21.663        .12343E-05** at limit **
  10  norm          .10000E-03    .31872        .22010E-08** at limit **
  11  norm          4.5314        3.5451       -.52877E-06   -.35367E-03
  12  norm          10.530        7.2316        .40372E-06   -.12173E-03
  13  Prefactor     .10000E-03    38.089       -.25498E-04** at limit **
  14  Prefactor     6.7973        27.727       -.34270E-05    .23194E-04
  15  norm          12.857        16.665       -.31717E-07    .78695E-06
  16  Prefactor     11.597        12.652        .10874E-05    .52319E-03
  17  norm          5.5408        5.5840        .25338E-05   -.11659E-03
  18  Prefactor     2.8393        4.8643        .10552E-05   -.83854E-03
  19  Prefactor     .10000E-03    27.342        .34920E-04** at limit **
  20  norm          .10000E-03    1.9689       -.22159E-07** at limit **
  21  norm          .83908        1.6855       -.24343E-06   -.14757E-02
  22  Prefactor     .10000E-03    13.937        .19033E-05** at limit **
  23  Normalizat    1.0460        .22357        .22621E-06    .16474E-03
  24  Prefactor     .97595        .11754       -.18001E-06    .34625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28636
  norm       = 1.98248
  Prefactor  = 0.0001
  norm       = 3.27209
  norm       = 1.75619
  norm       = 0.0001
  Prefactor  = 14.9372
  Prefactor  = 12.6103
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.53136
  norm       = 10.5299
  Prefactor  = 0.0001
  Prefactor  = 6.79727
  norm       = 12.8566
  Prefactor  = 11.597
  norm       = 5.54085
  Prefactor  = 2.83929
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.839081
  Prefactor  = 0.0001
  Normalizat = 1.04603
  Prefactor  = 0.975952
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.385     FROM HESSE     STATUS=OK           405 CALLS     3082 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2864        .39005        .21784E-04   -1.5406    
   2  norm          1.9825        16.584        .29428E-03   -1.5426    
   3  Prefactor     .10000E-03    19.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2721        2.8530        .13306E-03   -1.5346    
   5  norm          1.7562        10.825        .31619E-03   -1.5443    
   6  norm          .10000E-03    2.5512        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.937        8.8446        .10363E-03   -1.4935    
   8  Prefactor     12.610        9.3252        .11280E-03   -1.4998    
   9  Prefactor     .10000E-03    21.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .32345        .48296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5314        3.5282        .13249E-03   -1.5282    
  12  norm          10.530        7.2163        .12347E-03   -1.5059    
  13  Prefactor     .10000E-03    38.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7973        27.702        .15388E-03   -1.5186    
  15  norm          12.857        16.664        .11171E-03   -1.4991    
  16  Prefactor     11.597        12.594        .11763E-03   -1.5027    
  17  norm          5.5408        5.5597        .17067E-03   -1.5237    
  18  Prefactor     2.8393        4.8269        .23513E-03   -1.5371    
  19  Prefactor     .10000E-03    27.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9715        .12005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .83908        1.4058        .15572E-02   -1.5525    
  22  Prefactor     .10000E-03    13.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0460        .25894        .34785E-03   -.91504    
  24  Prefactor     .97595        .13798        .19542E-03   -.93535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71945e-09
Minuit parameter uncertainties:
  1  0.390053
  2  11.4718
  3  1.13382e-05
  4  2.85309
  5  8.72219
  6  5.04157e-07
  7  8.84542
  8  9.32628
  9  4.26949e-05
  10  7.88777e-08
  11  3.52838
  12  7.2169
  13  3.71194e-05
  14  27.4664
  15  16.6701
  16  12.5972
  17  5.56019
  18  4.82754
  19  8.91977e-05
  20  6.60776e-06
  21  1.40584
  22  3.37912e-06
  23  0.259258
  24  0.138034
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  4.531e+00  3.528e+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.760e-01  1.380e-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.046e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/761223/likelihoodResults_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.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) = 7686.04766402
delta logL = 0.337719052766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7686.0243947
delta logL = 0.360988369401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2947       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8025       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96913       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=   7686.024     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2906        159.96        .43668E-02    .10760E-03
   2  alpha         1.8020        3.4799        .43385       -.11687E-04
   3  Normalizat    1.0703        .41931        .77835E-01    .19192E-04
   4  Prefactor     .96916        .15892        .45880E-01   -.41263E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.29056
  alpha      = 1.802
  Normalizat = 1.07028
  Prefactor  = 0.96916
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.024     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2906        4.0342        .14704E-03   -1.5248    
   2  alpha         1.8020        .67273        .19328E-01   -.28296    
   3  Normalizat    1.0703        .24425        .34452E-03   -.90712    
   4  Prefactor     .96916        .13364        .19606E-03   -.93765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8741e-10
Minuit parameter uncertainties:
  1  4.03442
  2  0.681866
  3  0.244507
  4  0.133689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761223': 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) = 7686.02439403
delta logL = 0.360989038827

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  5.291e+00  4.034e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.802e+00  6.819e-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.692e-01  1.337e-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.070e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 1.80 +/- 0.68
Photon Flux (Free Index): 2.96e-08 +/- 3.25e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/761223/cmap_HighResolution_475200001_475459201_4FGL_J1332.6-1256_daily_bin910.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-05', comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='2.42e-05', photon_flux_error='4.14e-08', dlogl='3.61e-01', energy_flux='1.85e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-08 03:02:22.651865', photon_index_error2='0.68', photon_index2='1.80', ts='3.17', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='2.14e-05', EG='1.05', time_epoch_completed='1631095342.65', return_code='0', job_id='761223', GAL2='0.97', EG2='1.07', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.25e-08', ts2='3.91', photon_index='2.40' WHERE bin_id='910' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:02:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 761223: <4FGL_J1332.6-1256_daily_bin910> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin910 203.154 -12.9436 475200001 475459201 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 :                                   736.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            985 sec.

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

