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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin270
RA = 203.154, Dec = -12.9436
tmin = 309312001, tmax = 309571201
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='756244', job_status='RUN', time_executed='2021-09-08 02:34:41.726617', time_epoch_executed='1631093681.73' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/756244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/756244/ft1_4FGL_J1332.6-1256_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/756244/ft1_4FGL_J1332.6-1256_daily_bin270.fits outfile=/scratch/kocevski/756244/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin270.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.05
user 3.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.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/756244/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.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/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/756244/ltcube_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.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/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits
.....................!
real 14.46
user 14.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/756244/ltcube_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.fits outfile=/scratch/kocevski/756244/expmap_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.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/756244/ltcube_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.fits
.....................!
real 192.10
user 186.85
sys 4.87

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/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.fits scfile=/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits outfile=/scratch/kocevski/756244/cmap_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.fits scfile=/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits outfile=/scratch/kocevski/756244/cmap_HighResolution_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/756244/ft2_4FGL_J1332.6-1256_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/756244/Model_4FGL_J1332.6-1256_daily_bin270.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/756244/ft1_filtered_4FGL_J1332.6-1256_daily_bin270.fits.....................!
real 61.33
user 59.93
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79307       1.0000         .10000E-03   10000.    
     2 'norm      '    26.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21515E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.332       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12857E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6003       1.0000         .10000E-03   10000.    
    11 'norm      '    .12913E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.445       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3733       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.435       1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.807       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2918       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2222       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7161       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0477       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=   7420.043     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2736 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79298        .32374        .17525E-07   -.17186E-03
   2  norm          26.760        15.911        .44223E-07   -.48469E-04
   3  Prefactor     .10000E-03    453.51        .17189E-05** at limit **
   4  norm          .10000E-03    1.2167       -.34537E-07** at limit **
   5  norm          10.328        9.5721        .13463E-06    .13027E-04
   6  norm          6.5994        7.5682       -.22320E-07   -.36918E-05
   7  Prefactor     1.2995        19.426        .29407E-05   -.80690E-05
   8  Prefactor     17.762        12.540       -.55312E-07    .26885E-04
   9  Prefactor     .10000E-03    38.917       -.12012E-06** at limit **
  10  norm          6.6008        2.1480        .14867E-07   -.14882E-04
  11  norm          .10000E-03    5.1780       -.55337E-06** at limit **
  12  norm          18.375        12.560        .31180E-06    .24762E-03
  13  Prefactor     .10000E-03    23.172       -.59229E-07** at limit **
  14  Prefactor     53.474        42.142        .93185E-07   -.13710E-04
  15  norm          .10000E-03    10.828       -.12756E-08** at limit **
  16  Prefactor     4.3746        9.9930        .34945E-06   -.65400E-05
  17  norm          .10000E-03    2.1672        .15042E-06** at limit **
  18  Prefactor     26.438        10.291       -.45573E-06   -.18667E-04
  19  Prefactor     61.878        62.662        .79562E-06    .98005E-04
  20  norm          1.2931        9.2992        .34112E-05   -.27263E-04
  21  norm          5.2228        3.2908        .33695E-07   -.38025E-04
  22  Prefactor     .10000E-03    8.9149        .12370E-07** at limit **
  23  Normalizat    1.7159        .29752        .27230E-06   -.88480E-05
  24  Prefactor     1.0476        .15262       -.56534E-06    .37614E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.792984
  norm       = 26.7605
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 10.3282
  norm       = 6.59939
  Prefactor  = 1.29948
  Prefactor  = 17.7621
  Prefactor  = 0.0001
  norm       = 6.6008
  norm       = 0.000100001
  norm       = 18.3746
  Prefactor  = 0.0001
  Prefactor  = 53.4739
  norm       = 0.0001
  Prefactor  = 4.37458
  norm       = 0.0001
  Prefactor  = 26.4378
  Prefactor  = 61.8782
  norm       = 1.29314
  norm       = 5.2228
  Prefactor  = 0.0001
  Normalizat = 1.71594
  Prefactor  = 1.04764
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.043     FROM HESSE     STATUS=OK           405 CALLS     3141 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79298        .32222        .30087E-04   -1.5530    
   2  norm          26.760        15.929        .77450E-04   -1.4673    
   3  Prefactor     .10000E-03    466.22        .40324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2235        .92765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.328        9.5678        .12465E-03   -1.5065    
   6  norm          6.5994        7.5677        .15621E-03   -1.5194    
   7  Prefactor     1.2995        19.422        .38692E-03   -1.5480    
   8  Prefactor     17.762        12.544        .95040E-04   -1.4865    
   9  Prefactor     .10000E-03    39.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6008        2.1556        .68832E-04   -1.5194    
  11  norm          .10000E-03    15.963        .32546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.375        11.199        .93384E-04   -1.4850    
  13  Prefactor     .10000E-03    23.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     53.474        42.171        .54864E-04   -1.4244    
  15  norm          .10000E-03    10.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3746        9.9674        .19260E-03   -1.5290    
  17  norm          .10000E-03    2.1721        .12380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.438        10.278        .77915E-04   -1.4679    
  19  Prefactor     61.878        62.846        .51039E-04   -1.4133    
  20  norm          1.2931        9.1800        .38952E-03   -1.5481    
  21  norm          5.2228        3.2903        .11948E-03   -1.5251    
  22  Prefactor     .10000E-03    8.9162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7159        .34314        .37589E-03   -.71878    
  24  Prefactor     1.0476        .17427        .24274E-03   -.91158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64532e-10
Minuit parameter uncertainties:
  1  0.322223
  2  15.9319
  3  0.00143625
  4  9.66155e-07
  5  9.5692
  6  7.56875
  7  10.0512
  8  12.5454
  9  1.68765e-05
  10  2.15563
  11  0.000247759
  12  11.2007
  13  4.25724e-06
  14  42.1946
  15  1.20752e-06
  16  9.97114
  17  1.07439e-06
  18  10.279
  19  62.913
  20  6.89211
  21  3.2904
  22  2.53405e-06
  23  0.343615
  24  0.174365
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  2.478e-04  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:  1.048e+00  1.744e-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.716e+00  3.436e-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: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/756244/likelihoodResults_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.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) = 7420.04308634
delta logL = -0.000297566996778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7420.04279122
delta logL = -2.45276805799e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3422       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7420.043     FROM MIGRAD    STATUS=FAILED       100 CALLS      264 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10255E-03    304.09        .33516E-02** at limit **
   2  alpha         2.1515        3.2585        .50000        .24143E-05
   3  Normalizat    1.7159        .27320E-01    .37589E-03   -.12128E-04
   4  Prefactor     1.0476        .14392E-01    .24274E-03   -.15127E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7420.043     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      398 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10190E-03    304.09        .55462E-03** at limit **
   2  alpha         2.1506        3.2585        .50209E-03    .24143E-05
   3  Normalizat    1.7159        .27320E-01    .36291E-05   -.12128E-04
   4  Prefactor     1.0476        .14392E-01    .20757E-05   -.15127E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7420.043     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      438 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1476.9        .67031E-03** at limit **
   2  alpha         2.1087        2.6249        .50000       -.19816E-06
   3  Normalizat    1.7159        .64539E-01    .15036E-04    .17542E-04
   4  Prefactor     1.0476        .34000E-01    .97097E-05    .62289E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.10874
  Normalizat = 1.71594
  Prefactor  = 1.04764
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.043     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      467 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7179.7        .13406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1087        3.2468        .50000       -.15715    
   3  Normalizat    1.7159        .18572        .30071E-05   -.71878    
   4  Prefactor     1.0476        .97859E-01    .19419E-05   -.91158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.155e-10
Minuit parameter uncertainties:
  1  0.00849683
  2  2382.2
  3  0.185795
  4  0.0978752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/756244': 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): 102
logL (Free Index) = 7420.04278771
delta logL = 1.05721574073e-06

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  8.497e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.109e+00  2.382e+03  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:  1.048e+00  9.788e-02  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.716e+00  1.858e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/756244/cmap_HighResolution_309312001_309571201_4FGL_J1332.6-1256_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-08 02:47:06.724006', job_id='756244', GAL2='1.05', fit_tolerance='1e-08', EG2='1.72', EG='1.72', time_epoch_completed='1631094426.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='270' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 756244: <4FGL_J1332.6-1256_daily_bin270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin270 203.154 -12.9436 309312001 309571201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            995 sec.

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

