/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1432.2+5051_daily_bin86
RA = 218.068, Dec = 50.8596
tmin = 261619201, tmax = 261878401
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='590222', job_status='RUN', time_executed='2021-09-09 23:06:25.668944', time_epoch_executed='1631253985.67' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590222/ft1_4FGL_J1432.2+5051_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590222/ft1_4FGL_J1432.2+5051_daily_bin86.fits outfile=/scratch/kocevski/590222/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin86.fits ra=218.068 dec=50.8596 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.42
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590222/ft1_filtered_4FGL_J1432.2+5051_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/590222/ltcube_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.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/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits
.....................!
real 12.64
user 12.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590222/ft1_filtered_4FGL_J1432.2+5051_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/590222/ltcube_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.fits outfile=/scratch/kocevski/590222/expmap_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.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/590222/ltcube_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.fits
.....................!
real 191.14
user 185.84
sys 4.91

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/590222/ft1_filtered_4FGL_J1432.2+5051_daily_bin86.fits scfile=/scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits outfile=/scratch/kocevski/590222/cmap_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590222/ft1_filtered_4FGL_J1432.2+5051_daily_bin86.fits scfile=/scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits outfile=/scratch/kocevski/590222/cmap_HighResolution_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.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.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590222/ft1_filtered_4FGL_J1432.2+5051_daily_bin86.fits', '/scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits', expMap='/scratch/kocevski/590222/expmap_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.fits', expCube='/scratch/kocevski/590222/ltcube_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590222/Model_4FGL_J1432.2+5051_daily_bin86.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/590222/ft1_filtered_4FGL_J1432.2+5051_daily_bin86.fits
Spacecraft file(s): /scratch/kocevski/590222/ft2_4FGL_J1432.2+5051_daily_bin86.fits
Exposure map: /scratch/kocevski/590222/expmap_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.fits
Exposure cube: /scratch/kocevski/590222/ltcube_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590222/Model_4FGL_J1432.2+5051_daily_bin86.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) = 5882.54184237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8080       1.0000         .10000E-03   10000.    
     4 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10965       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12667E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6950       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.355       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.168       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2371       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.732       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9733       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.8477       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1930       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80050       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=   5882.502     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     3939 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.653        44.543        .38804E-05    .95421E-07
   2  Prefactor     24.772        15.103        .54898E-07   -.13942E-04
   3  Prefactor     3.8764        112.95       -.35929E-05   -.74729E-05
   4  norm          .10000E-03    1.6626        .89049E-07** at limit **
   5  Prefactor     .10000E-03    13.561        .71392E-06** at limit **
   6  Prefactor     .10000E-03    19.554        .13500E-06** at limit **
   7  norm          .10957        .97021        .33749E-06   -.49307E-03
   8  norm          .10000E-03    34.089       -.44914E-06** at limit **
   9  norm          .10000E-03    1.9408        .35277E-07** at limit **
  10  Prefactor     .10000E-03    400.87        .85021E-06** at limit **
  11  Prefactor     28.560        28.653       -.12889E-06   -.47061E-05
  12  Prefactor     21.429        23.795        .32594E-06    .28156E-05
  13  Prefactor     1.6950        2.1038       -.13486E-07   -.24173E-05
  14  Prefactor     .10000E-03    15.814       -.71004E-06** at limit **
  15  Prefactor     .10000E-03    1.5396       -.53571E-07** at limit **
  16  Prefactor     .10000E-03    23.003        .23176E-06** at limit **
  17  Prefactor     10.662        16.721        .50789E-07   -.45952E-05
  18  Prefactor     .10000E-03    12.189       -.26973E-06** at limit **
  19  Prefactor     20.353        19.399        .24220E-06    .46767E-05
  20  Prefactor     37.167        32.492        .15038E-06   -.35806E-05
  21  Prefactor     .10000E-03    23.234        .19642E-06** at limit **
  22  Prefactor     .10000E-03    4.9535       -.91050E-08** at limit **
  23  Prefactor     .10000E-03    4.1326       -.21654E-07** at limit **
  24  norm          1.2370        1.0128        .88599E-08    .47952E-05
  25  Prefactor     14.732        10.702       -.20368E-06   -.39489E-04
  26  Prefactor     .10000E-03    3.7550       -.82313E-07** at limit **
  27  Prefactor     1.9723        8.3757        .14751E-05    .52845E-05
  28  norm          .10000E-03    .79844       -.94963E-07** at limit **
  29  Prefactor     .10000E-03    2.2557       -.31544E-06** at limit **
  30  Prefactor     7.8635        25.009       -.28657E-05   -.36363E-05
  31  Prefactor     .10000E-03    7.7416       -.13474E-05** at limit **
  32  Normalizat    1.1929        .17158       -.56432E-06   -.39921E-04
  33  Prefactor     .80056        .19175        .73433E-07   -.54114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6533
  Prefactor  = 24.7722
  Prefactor  = 3.8764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.109567
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5595
  Prefactor  = 21.4294
  Prefactor  = 1.69495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6621
  Prefactor  = 0.0001
  Prefactor  = 20.3531
  Prefactor  = 37.167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23704
  Prefactor  = 14.7318
  Prefactor  = 0.0001
  Prefactor  = 1.97231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.86346
  Prefactor  = 0.0001
  Normalizat = 1.19293
  Prefactor  = 0.800559
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.502     FROM HESSE     STATUS=OK           695 CALLS     4634 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.653        44.407        .92475E-04   -1.4844    
   2  Prefactor     24.772        15.100        .80482E-04   -1.4712    
   3  Prefactor     3.8764        111.39        .20684E-03   -1.5314    
   4  norm          .10000E-03    1.6774        .96458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10957        2.1218        .13725E-02   -1.5642    
   8  norm          .10000E-03    34.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2356        .20734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    400.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.560        28.638        .74970E-04   -1.4639    
  12  Prefactor     21.429        23.797        .86520E-04   -1.4782    
  13  Prefactor     1.6950        2.0955        .12080E-03   -1.5448    
  14  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5854        .18507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.662        16.674        .12270E-03   -1.5055    
  18  Prefactor     .10000E-03    12.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.353        19.419        .88778E-04   -1.4805    
  20  Prefactor     37.167        32.470        .65739E-04   -1.4488    
  21  Prefactor     .10000E-03    23.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9684        .16671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1370        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2370        1.0182        .67929E-04   -1.5486    
  25  Prefactor     14.732        10.604        .10435E-03   -1.4940    
  26  Prefactor     .10000E-03    3.8191        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.9723        8.2453        .29514E-03   -1.5427    
  28  norm          .10000E-03    .79801        .66873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.2467        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.8635        24.983        .14314E-03   -1.5147    
  31  Prefactor     .10000E-03    7.5732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1929        .20134        .20829E-03   -.86822    
  33  Prefactor     .80056        .22568        .28869E-03   -.99708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0171e-08
Minuit parameter uncertainties:
  1  44.4855
  2  15.1019
  3  41.6435
  4  9.55683e-07
  5  1.59998e-05
  6  8.46185e-06
  7  0.96393
  8  1.43344e-05
  9  1.02686e-05
  10  0.00012172
  11  28.6518
  12  23.8072
  13  2.09561
  14  4.93992e-06
  15  1.74734e-06
  16  1.11047e-05
  17  16.681
  18  4.25299e-06
  19  19.4251
  20  32.4858
  21  8.93265e-06
  22  1.43394e-06
  23  1.59996e-06
  24  1.01819
  25  10.6057
  26  5.20421e-06
  27  8.067
  28  1.13742e-06
  29  5.52811e-06
  30  25.0162
  31  4.14522e-05
  32  0.201467
  33  0.225937
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.253e-06  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:  8.006e-01  2.259e-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:  1.193e+00  2.015e-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: 3.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590222/likelihoodResults_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.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) = 5882.50248218
delta logL = -0.000387604723073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5882.50209497
delta logL = -3.9484075387e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2004       1.0000          .0000       10.000    
     3 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80070       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=   5882.502     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      243 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10256E-03    8.0691        .18142E-01** at limit **
   2  Index         2.1263        5.3981        .50000        .22084E-04
   3  Normalizat    1.1929        .29788E-02    .20829E-03    .45630E-04
   4  Prefactor     .80056        .34663E-02    .28869E-03   -.84272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102558
  Index      = 2.12626
  Normalizat = 1.19293
  Prefactor  = 0.800558
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.502     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10256E-03    52.803        .28660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1263        5.4027        .50000       -.61230    
   3  Normalizat    1.1929        .76421E-02    .83316E-05   -.86822    
   4  Prefactor     .80056        .88930E-02    .11548E-04   -.99708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58222e-09
Minuit parameter uncertainties:
  1  0.0232625
  2  153.491
  3  0.00764215
  4  0.008893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590222': 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) = 5882.50209397
delta logL = 6.01789906796e-07

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.026e-04  2.326e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.126e+00  1.535e+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:  8.006e-01  8.893e-03  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:  1.193e+00  7.642e-03  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/590222/cmap_HighResolution_261619201_261878401_4FGL_J1432.2+5051_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-03', job_status='DONE', photon_flux_upper_limit='3.12e-08', time_completed='2021-09-09 23:21:41.602773', job_id='590222', GAL2='0.80', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631254901.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='86' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 590222: <4FGL_J1432.2+5051_daily_bin86> in cluster <slac> Done

Job <4FGL_J1432.2+5051_daily_bin86> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 23:06:09 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 23:06:11 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:06:11 2021
Terminated at Thu Sep  9 23:21:42 2021
Results reported at Thu Sep  9 23:21:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin86 218.068 50.8596 261619201 261878401 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 :                                   911.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

