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


Performing analysis on: 4FGL_J1432.2+5051_daily_bin905
RA = 218.068, Dec = 50.8596
tmin = 473904001, tmax = 474163201
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='597150', job_status='RUN', time_executed='2021-09-09 23:31:15.390865', time_epoch_executed='1631255475.39' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597150

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597150/ft1_4FGL_J1432.2+5051_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597150/ft1_4FGL_J1432.2+5051_daily_bin905.fits outfile=/scratch/kocevski/597150/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin905.fits ra=218.068 dec=50.8596 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.06
user 4.84
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.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/597150/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/597150/ltcube_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.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/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits
.....................!
real 12.21
user 11.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/597150/ltcube_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.fits outfile=/scratch/kocevski/597150/expmap_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.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/597150/ltcube_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.fits
.....................!
real 191.00
user 186.41
sys 4.22

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 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J1432.2+5051 @ 218.068 50.8596

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits scfile=/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits outfile=/scratch/kocevski/597150/cmap_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.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=218.068 yref=50.8596 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits scfile=/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits outfile=/scratch/kocevski/597150/cmap_HighResolution_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.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=218.068 yref=50.8596 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597150/Model_4FGL_J1432.2+5051_daily_bin905.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/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits.....................!
real 35.37
user 34.13
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits', '/scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits', expMap='/scratch/kocevski/597150/expmap_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.fits', expCube='/scratch/kocevski/597150/ltcube_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597150/Model_4FGL_J1432.2+5051_daily_bin905.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1432.2+5051'

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  5.285e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.240e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/597150/ft1_filtered_4FGL_J1432.2+5051_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/597150/ft2_4FGL_J1432.2+5051_daily_bin905.fits
Exposure map: /scratch/kocevski/597150/expmap_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.fits
Exposure cube: /scratch/kocevski/597150/ltcube_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597150/Model_4FGL_J1432.2+5051_daily_bin905.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) = 3874.59528911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.512       1.0000         .10000E-03   10000.    
     4 'norm      '    10.371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0153       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14241E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.074       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97581       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .66381E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9957       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9936       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7336       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0856       1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.310       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .56457       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3086       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3874.579     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     4633 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.214        51.817       -.15223E-05    .20388E-04
   2  Prefactor     2.8862        97.527       -.12553E-05   -.67448E-06
   3  Prefactor     22.539        59.199        .16815E-05   -.16295E-04
   4  norm          10.358        8.7730        .11792E-07    .45965E-04
   5  Prefactor     .10000E-03    38.244       -.74326E-07** at limit **
   6  Prefactor     .10000E-03    146.79       -.69958E-06** at limit **
   7  norm          4.0154        1.9488        .37673E-09   -.32348E-04
   8  norm          .10000E-03    51.918       -.72662E-06** at limit **
   9  norm          1.7536        6.7705       -.87354E-06   -.95923E-04
  10  Prefactor     .10001E-03    250.28       -.26936E-05** at limit **
  11  Prefactor     .10000E-03    68.156        .25344E-06** at limit **
  12  Prefactor     .10000E-03    17.750        .24992E-06** at limit **
  13  Prefactor     .10000E-03    4.2910        .20011E-06** at limit **
  14  Prefactor     .10000E-03    21.366        .42998E-06** at limit **
  15  Prefactor     11.889        6.0574       -.64610E-06   -.53734E-03
  16  Prefactor     32.110        39.441       -.49115E-06   -.11501E-03
  17  Prefactor     .80595        565.16       -.14832E-04   -.75666E-05
  18  Prefactor     .10000E-03    23.852        .25802E-07** at limit **
  19  Prefactor     .10000E-03    10.462        .15245E-06** at limit **
  20  Prefactor     51.854        49.757       -.35767E-06   -.86801E-05
  21  Prefactor     .10000E-03    294.15        .27163E-05** at limit **
  22  Prefactor     9.9988        15.777       -.65546E-07   -.39592E-04
  23  Prefactor     7.9952        15.036       -.38047E-07   -.23960E-04
  24  norm          1.7337        1.8330       -.76945E-08   -.10504E-03
  25  Prefactor     .10000E-03    3.3689       -.11443E-06** at limit **
  26  Prefactor     .10000E-03    2.2664        .69679E-07** at limit **
  27  Prefactor     1.0856        7.6066       -.11312E-05   -.65659E-04
  28  norm          .10000E-03    2.2743        .10426E-06** at limit **
  29  Prefactor     .10000E-03    4.3721        .70597E-07** at limit **
  30  Prefactor     .10000E-03    13.428       -.51466E-08** at limit **
  31  Prefactor     13.311        14.178        .18762E-06   -.28212E-04
  32  Normalizat    .56455        .21048        .68862E-06   -.12076E-03
  33  Prefactor     1.3085        .24170       -.17385E-05    .80388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2138
  Prefactor  = 2.88615
  Prefactor  = 22.5392
  norm       = 10.3576
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.0154
  norm       = 0.0001
  norm       = 1.75357
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8886
  Prefactor  = 32.1105
  Prefactor  = 0.805949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.8544
  Prefactor  = 0.0001
  Prefactor  = 9.99879
  Prefactor  = 7.99522
  norm       = 1.73373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08555
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3105
  Normalizat = 0.564547
  Prefactor  = 1.30847
 **********
 **   18 **HESSE 
 **********

 FCN=   3874.579     FROM HESSE     STATUS=OK           691 CALLS     5324 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.214        51.602        .10258E-03   -1.4928    
   2  Prefactor     2.8862        91.614        .24308E-03   -1.5368    
   3  Prefactor     22.539        58.923        .84420E-04   -1.4758    
   4  norm          10.358        8.5032        .12442E-03   -1.5064    
   5  Prefactor     .10000E-03    38.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    148.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0154        1.9479        .57610E-04   -1.5307    
   8  norm          .10000E-03    51.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7536        6.7510        .28906E-03   -1.5443    
  10  Prefactor     .10001E-03    250.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    68.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3443        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.889        6.4262        .85686E-04   -1.5018    
  16  Prefactor     32.110        39.659        .70751E-04   -1.4574    
  17  Prefactor     .80595        667.96        .73382E-02   -1.5528    
  18  Prefactor     .10000E-03    23.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.854        49.763        .55686E-04   -1.4267    
  21  Prefactor     .10000E-03    305.67        .42019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.9988        15.748        .12674E-03   -1.5075    
  23  Prefactor     7.9952        14.968        .14181E-03   -1.5142    
  24  norm          1.7337        1.8163        .81320E-04   -1.5445    
  25  Prefactor     .10000E-03    3.3686        .11153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.2740        .91501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0856        7.6049        .32928E-03   -1.5500    
  28  norm          .10000E-03    2.3016        .91550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.3810        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     13.311        14.141        .10979E-03   -1.4978    
  32  Normalizat    .56455        .24908        .27891E-03   -1.0951    
  33  Prefactor     1.3085        .28460        .23037E-03   -.83056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98632e-08
Minuit parameter uncertainties:
  1  51.7544
  2  32.5755
  3  59.0755
  4  8.50414
  5  3.52648e-05
  6  0.000855416
  7  1.9479
  8  0.0002792
  9  6.75394
  10  0.00247761
  11  0.000273369
  12  2.28026e-05
  13  3.37569e-06
  14  1.73406e-05
  15  6.42657
  16  39.6919
  17  46.936
  18  2.32333e-05
  19  3.58238e-06
  20  49.803
  21  0.000155062
  22  15.7544
  23  14.975
  24  1.81632
  25  1.20936e-05
  26  1.22888e-06
  27  5.74726
  28  1.83657e-06
  29  4.46109e-07
  30  9.63542e-06
  31  14.1441
  32  0.249576
  33  0.284936
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.323e-05  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.240e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.308e+00  2.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  5.645e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 218.068 50.860
Photon Flux Upper Limit: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597150/likelihoodResults_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.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) = 3874.57876872
delta logL = -0.000198793512027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3874.57857092
delta logL = -9.96251856122e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4762       1.0000          .0000       10.000    
     3 'Normalizat'    .56456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+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=   3874.579     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10193E-03    101.28        .18142E-02** at limit **
   2  Index         2.4114        6.9108        .50000        .15469E-04
   3  Normalizat    .56455        .10798E-01    .27892E-03   -.62160E-05
   4  Prefactor     1.3085        .13168E-01    .23037E-03   -.23836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101926
  Index      = 2.41145
  Normalizat = 0.564552
  Prefactor  = 1.30846
 **********
 **   18 **HESSE 
 **********

 FCN=   3874.579     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10193E-03    434.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4114        6.2194        .50000       -.54417    
   3  Normalizat    .56455        .22934E-01    .11157E-04   -1.0951    
   4  Prefactor     1.3085        .27966E-01    .46073E-04   -.83056    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21025e-08
Minuit parameter uncertainties:
  1  0.0583061
  2  441.032
  3  0.022934
  4  0.0279666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597150': 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) = 3874.57857047
delta logL = -5.46803221368e-07

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.019e-04  5.831e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.411e+00  4.410e+02  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.308e+00  2.797e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  5.646e-01  2.293e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 218.068 50.860

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/597150/cmap_HighResolution_473904001_474163201_4FGL_J1432.2+5051_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-09 23:44:08.429041', job_id='597150', GAL2='1.31', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631256248.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='-5.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='905' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 597150: <4FGL_J1432.2+5051_daily_bin905> in cluster <slac> Done

Job <4FGL_J1432.2+5051_daily_bin905> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 23:31:05 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 23:31:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 23:31:07 2021
Terminated at Thu Sep  9 23:44:09 2021
Results reported at Thu Sep  9 23:44:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin905 218.068 50.8596 473904001 474163201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1432.2+5051 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

