/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 184 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.6-1256_daily_bin325
RA = 203.154, Dec = -12.9436
tmin = 323568001, tmax = 323827201
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='756341', job_status='RUN', time_executed='2021-09-08 02:35:03.204578', time_epoch_executed='1631093703.2' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/756341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/756341/ft1_4FGL_J1332.6-1256_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/756341/ft2_4FGL_J1332.6-1256_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/756341/ft1_4FGL_J1332.6-1256_daily_bin325.fits outfile=/scratch/kocevski/756341/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin325.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=323568001.0 tmax=323827201.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 3.33
user 3.11
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/756341/ft2_4FGL_J1332.6-1256_daily_bin325.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/756341/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/756341/ft1_filtered_4FGL_J1332.6-1256_daily_bin325.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/756341/ft1_filtered_4FGL_J1332.6-1256_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/756341/ft2_4FGL_J1332.6-1256_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/756341/ltcube_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.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/756341/ft2_4FGL_J1332.6-1256_daily_bin325.fits
.....................!
real 15.32
user 14.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/756341/ft1_filtered_4FGL_J1332.6-1256_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/756341/ft2_4FGL_J1332.6-1256_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/756341/ltcube_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.fits outfile=/scratch/kocevski/756341/expmap_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.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/756341/ltcube_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.fits
.....................!
real 190.98
user 186.47
sys 4.11

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/756341/ft1_filtered_4FGL_J1332.6-1256_daily_bin325.fits scfile=/scratch/kocevski/756341/ft2_4FGL_J1332.6-1256_daily_bin325.fits outfile=/scratch/kocevski/756341/cmap_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.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.57
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/756341/ft1_filtered_4FGL_J1332.6-1256_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/756341/ft2_4FGL_J1332.6-1256_daily_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/756341/Model_4FGL_J1332.6-1256_daily_bin325.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/756341/ft1_filtered_4FGL_J1332.6-1256_daily_bin325.fits.....................!
real 55.92
user 54.46
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5513       1.0000         .10000E-03   10000.    
     2 'norm      '    .36264E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.941       1.0000         .10000E-03   10000.    
     4 'norm      '    .35056       1.0000         .10000E-03   10000.    
     5 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20410E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.255       1.0000         .10000E-03   10000.    
    15 'norm      '    34.572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0324       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24811E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1206       1.0000         .10000E-03   10000.    
    21 'norm      '    .16449       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3668       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96422       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=   6595.117     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2797 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5514        .39027        .60141E-08   -.16919E-03
   2  norm          .10000E-03    5.9166        .17262E-06** at limit **
   3  Prefactor     79.946        81.595       -.59663E-06   -.94316E-05
   4  norm          .34158        2.5836        .11639E-05   -.26007E-03
   5  norm          .10000E-03    7.5592        .31453E-06** at limit **
   6  norm          .10000E-03    3.1587        .19832E-07** at limit **
   7  Prefactor     .10000E-03    3.5368       -.14100E-07** at limit **
   8  Prefactor     7.3724        10.491        .42562E-06   -.10410E-04
   9  Prefactor     .10000E-03    7.4463       -.20643E-06** at limit **
  10  norm          .20771E-01    .74310        .20221E-07   -.10999E-03
  11  norm          .10000E-03    1.1353       -.41044E-08** at limit **
  12  norm          15.502        8.0800       -.98049E-07   -.11378E-03
  13  Prefactor     .10000E-03    4.4392       -.75703E-07** at limit **
  14  Prefactor     26.263        31.764       -.91633E-06   -.19504E-04
  15  norm          34.551        28.975        .24062E-05    .42973E-04
  16  Prefactor     7.0476        11.428        .92868E-06    .11875E-04
  17  norm          .10000E-03    1.7005        .46686E-08** at limit **
  18  Prefactor     .10000E-03    4.0638        .47832E-07** at limit **
  19  Prefactor     .10000E-03    57.895       -.16182E-06** at limit **
  20  norm          4.1129        6.6444        .18121E-05    .42009E-04
  21  norm          .19528        1.4486       -.24316E-06    .16454E-03
  22  Prefactor     .10000E-03    15.779        .37096E-06** at limit **
  23  Normalizat    1.3661        .25120       -.27562E-06   -.11545E-03
  24  Prefactor     .96435        .12989       -.50147E-06   -.18831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55142
  norm       = 0.0001
  Prefactor  = 79.9457
  norm       = 0.34158
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37236
  Prefactor  = 0.0001
  norm       = 0.0207714
  norm       = 0.0001
  norm       = 15.5019
  Prefactor  = 0.0001
  Prefactor  = 26.2626
  norm       = 34.5506
  Prefactor  = 7.04758
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.11289
  norm       = 0.195283
  Prefactor  = 0.0001
  Normalizat = 1.36606
  Prefactor  = 0.964349
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.117     FROM HESSE     STATUS=OK           403 CALLS     3200 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5514        .39115        .24373E-04   -1.5459    
   2  norm          .10000E-03    18.099        .38184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     79.946        81.643        .44919E-04   -1.3917    
   4  norm          .34158        4.3810        .22566E-02   -1.5591    
   5  norm          .10000E-03    7.6194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1591        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5408        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3724        10.552        .14782E-03   -1.5165    
   9  Prefactor     .10000E-03    7.4579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20771E-01    5.3603        .13557E-02   -1.5679    
  11  norm          .10000E-03    1.1381        .84450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.502        8.0434        .10172E-03   -1.4920    
  13  Prefactor     .10000E-03    4.4460        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.263        31.755        .78182E-04   -1.4683    
  15  norm          34.551        29.008        .68154E-04   -1.4532    
  16  Prefactor     7.0476        11.443        .15128E-03   -1.5177    
  17  norm          .10000E-03    1.7060        .10341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.822        .30773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1129        6.8469        .99292E-03   -1.5302    
  21  norm          .19528        11.037        .18325E-02   -1.5620    
  22  Prefactor     .10000E-03    15.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3661        .29502        .33336E-03   -.81615    
  24  Prefactor     .96435        .15246        .20553E-03   -.93927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98016e-08
Minuit parameter uncertainties:
  1  0.391155
  2  5.53393e-07
  3  81.7575
  4  2.44647
  5  1.17349e-05
  6  4.6296e-08
  7  3.53729e-07
  8  10.5544
  9  5.35747e-07
  10  0.665807
  11  4.3922e-07
  12  8.04398
  13  5.61577e-06
  14  31.7759
  15  29.0198
  16  11.4467
  17  4.06557e-08
  18  0.00029697
  19  8.8093e-06
  20  6.84818
  21  2.93598
  22  9.9717e-06
  23  0.295385
  24  0.152532
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  4.392e-07  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.643e-01  1.525e-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.366e+00  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.154 -12.944
Photon Flux Upper Limit: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/756341/likelihoodResults_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.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): 102
logL (Free Index) = 6595.1206857
delta logL = -0.00410395639392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6595.1165816
delta logL = 1.40700649354e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3921       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96437       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=   6595.117     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      234 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.073        .84835E-02** at limit **
   2  alpha         1.9021        3.8048        .16480        .34147E-07
   3  Normalizat    1.3661        .59343E-01    .33336E-03    .15865E-03
   4  Prefactor     .96435        .31595E-01    .20553E-03    .27382E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90211
  Normalizat = 1.36606
  Prefactor  = 0.96435
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.117     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2757        .89495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9021        3.2943        .65920E-02   -.24150    
   3  Normalizat    1.3661        .27809        .13335E-04   -.81615    
   4  Prefactor     .96435        .14816        .41106E-04   -.93927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73197e-11
Minuit parameter uncertainties:
  1  1.4827e-06
  2  160.55
  3  0.278399
  4  0.148223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/756341': 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) = 6595.11657703
delta logL = 4.71254043077e-06

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  1.483e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.902e+00  1.606e+02  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.643e-01  1.482e-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.366e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.154 -12.944

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/756341/cmap_HighResolution_323568001_323827201_4FGL_J1332.6-1256_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-08 02:46:20.516539', job_id='756341', GAL2='0.96', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631094380.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='325' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 756341: <4FGL_J1332.6-1256_daily_bin325> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin325> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 02:30:38 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:31:51 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:31:51 2021
Terminated at Wed Sep  8 02:46:21 2021
Results reported at Wed Sep  8 02:46:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin325 203.154 -12.9436 323568001 323827201 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 :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            943 sec.

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

