/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 4 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 = 7417
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1432.2+5051_daily_bin89
RA = 218.068, Dec = 50.8596
tmin = 262396801, tmax = 262656001
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='590226', job_status='RUN', time_executed='2021-09-09 23:06:24.842660', time_epoch_executed='1631253984.84' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590226

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590226/ft1_4FGL_J1432.2+5051_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590226/ft2_4FGL_J1432.2+5051_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590226/ft1_4FGL_J1432.2+5051_daily_bin89.fits outfile=/scratch/kocevski/590226/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin89.fits ra=218.068 dec=50.8596 rad=12.0 tmin=262396801.0 tmax=262656001.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.43
user 1.26
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590226/ft2_4FGL_J1432.2+5051_daily_bin89.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/590226/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/590226/ft1_filtered_4FGL_J1432.2+5051_daily_bin89.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/590226/ft1_filtered_4FGL_J1432.2+5051_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/590226/ft2_4FGL_J1432.2+5051_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/590226/ltcube_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.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/590226/ft2_4FGL_J1432.2+5051_daily_bin89.fits
.....................!
real 12.77
user 12.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590226/ft1_filtered_4FGL_J1432.2+5051_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/590226/ft2_4FGL_J1432.2+5051_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/590226/ltcube_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.fits outfile=/scratch/kocevski/590226/expmap_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.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/590226/ltcube_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.fits
.....................!
real 189.39
user 184.85
sys 4.15

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/590226/ft1_filtered_4FGL_J1432.2+5051_daily_bin89.fits scfile=/scratch/kocevski/590226/ft2_4FGL_J1432.2+5051_daily_bin89.fits outfile=/scratch/kocevski/590226/cmap_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76233E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4552       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    121.12       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.514       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14547E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25778E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.365       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.420       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7225       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.591       1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.884       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2673       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0948       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    48.916       1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.949       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1760       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85043       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=   4718.832     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4636 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.094       -.43141E-06** at limit **
   2  Prefactor     .10191E-03    13.764        .92252E-06** at limit **
   3  Prefactor     4.4626        41.301        .94091E-07   -.12189E-04
   4  norm          .10000E-03    2.6120       -.18586E-08** at limit **
   5  Prefactor     121.18        72.366       -.32777E-06   -.58303E-04
   6  Prefactor     41.539        50.364        .81904E-07   -.37301E-04
   7  norm          .10000E-03    .37943        .36887E-08** at limit **
   8  norm          .10000E-03    33.888        .71541E-07** at limit **
   9  norm          .10000E-03    3.1444        .50261E-06** at limit **
  10  Prefactor     .10000E-03    805.92       -.22029E-06** at limit **
  11  Prefactor     .10000E-03    21.948       -.31337E-06** at limit **
  12  Prefactor     66.369        44.356        .92961E-07   -.42535E-05
  13  Prefactor     .10000E-03    1.8327        .70676E-07** at limit **
  14  Prefactor     15.421        23.652        .55944E-06    .16307E-05
  15  Prefactor     .10000E-03    3.8384       -.24370E-05** at limit **
  16  Prefactor     60.163        58.835       -.12521E-05    .17105E-04
  17  Prefactor     24.171        38.171        .11966E-05    .44022E-04
  18  Prefactor     .10000E-03    47.112       -.32543E-06** at limit **
  19  Prefactor     .10000E-03    8.9219        .75914E-07** at limit **
  20  Prefactor     6.6114        125.78        .34740E-05    .16180E-05
  21  Prefactor     .10000E-03    19.499        .34585E-07** at limit **
  22  Prefactor     10.587        19.124        .73581E-07    .91804E-05
  23  Prefactor     34.885        24.062        .15099E-06    .58303E-07
  24  norm          2.2670        1.8894       -.12280E-07    .56074E-06
  25  Prefactor     4.0921        14.689        .37122E-06    .38956E-05
  26  Prefactor     .10000E-03    2.5309        .29029E-07** at limit **
  27  Prefactor     .10000E-03    9.0970        .99913E-07** at limit **
  28  norm          .10000E-03    1.5519        .45625E-07** at limit **
  29  Prefactor     .10000E-03    4.1261        .10232E-06** at limit **
  30  Prefactor     48.910        37.547        .11858E-06    .58704E-05
  31  Prefactor     16.947        15.184        .10019E-06   -.85493E-05
  32  Normalizat    1.1757        .22763       -.20395E-05   -.26601E-04
  33  Prefactor     .85096        .23775        .17448E-05   -.11133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101911
  Prefactor  = 4.4626
  norm       = 0.0001
  Prefactor  = 121.177
  Prefactor  = 41.5386
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3687
  Prefactor  = 0.0001
  Prefactor  = 15.4209
  Prefactor  = 0.0001
  Prefactor  = 60.1634
  Prefactor  = 24.1715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61137
  Prefactor  = 0.0001
  Prefactor  = 10.5873
  Prefactor  = 34.8855
  norm       = 2.26699
  Prefactor  = 4.09213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.9103
  Prefactor  = 16.9473
  Normalizat = 1.17575
  Prefactor  = 0.850959
 **********
 **   18 **HESSE 
 **********

 FCN=   4718.832     FROM HESSE     STATUS=OK           699 CALLS     5335 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10191E-03    20.273        .77115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4626        41.269        .19077E-03   -1.5285    
   4  norm          .10000E-03    2.6301        .10820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     121.18        72.466        .18284E-03   -1.3502    
   6  Prefactor     41.539        50.302        .62215E-04   -1.4418    
   7  norm          .10000E-03    .38218        .41308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    33.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.430        .22912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    805.97        .19987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.369        44.398        .49266E-04   -1.4077    
  13  Prefactor     .10000E-03    1.8344        .90806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.421        23.981        .10200E-03   -1.4922    
  15  Prefactor     .10000E-03    3.8818        .25897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.163        58.392        .51768E-04   -1.4155    
  17  Prefactor     24.171        38.471        .81502E-04   -1.4724    
  18  Prefactor     .10000E-03    47.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6114        124.29        .15476E-03   -1.5194    
  21  Prefactor     .10000E-03    19.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.587        19.089        .12311E-03   -1.5057    
  23  Prefactor     34.885        24.029        .67850E-04   -1.4526    
  24  norm          2.2670        1.8882        .81767E-04   -1.5407    
  25  Prefactor     4.0921        14.650        .19923E-03   -1.5303    
  26  Prefactor     .10000E-03    2.5347        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.1440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.5601        .83553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.1382        .13623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     48.910        37.535        .57335E-04   -1.4308    
  31  Prefactor     16.947        15.182        .97285E-04   -1.4884    
  32  Normalizat    1.1757        .27291        .22956E-03   -.87356    
  33  Prefactor     .85096        .28296        .30124E-03   -.97876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31044e-10
Minuit parameter uncertainties:
  1  2.73591e-05
  2  0.0124525
  3  27.166
  4  6.58667e-08
  5  72.5193
  6  50.3535
  7  3.53561e-07
  8  3.2191e-05
  9  0.00012835
  10  0.00103745
  11  1.41854e-05
  12  44.4205
  13  1.06887e-06
  14  23.9961
  15  2.57532e-05
  16  58.4473
  17  38.5106
  18  2.28545e-05
  19  4.69126e-06
  20  57.469
  21  6.94002e-06
  22  19.0995
  23  24.0355
  24  1.88826
  25  14.6633
  26  1.03988e-06
  27  1.10785e-05
  28  8.5434e-07
  29  2.71569e-06
  30  37.5528
  31  15.1857
  32  0.273239
  33  0.283448
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.285e-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:  8.510e-01  2.834e-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.176e+00  2.732e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590226/likelihoodResults_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.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) = 4718.83189468
delta logL = -0.000100934847978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4718.83179405
delta logL = -3.05613866658e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5764       1.0000          .0000       10.000    
     3 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85096       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.

 FCN=   4718.832     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    19.214        .90712E-02** at limit **
   2  Index         2.5570        8.4157        .50000        .42878E-05
   3  Normalizat    1.1757        .34250E-02    .51920E-01   -.29256E-03
   4  Prefactor     .85096        .39100E-02    .68091E-01   -.25130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100041
  Index      = 2.55703
  Normalizat = 1.17574
  Prefactor  = 0.850959
 **********
 **   18 **HESSE 
 **********

 FCN=   4718.832     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    206.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5570        8.2447        .50000       -.51048    
   3  Normalizat    1.1757        .11275E-01    .22956E-03   -.87356    
   4  Prefactor     .85096        .12859E-01    .30124E-03   -.97876    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.94172e-08
Minuit parameter uncertainties:
  1  0.0058145
  2  322.588
  3  0.0112751
  4  0.0128591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590226': 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) = 4718.83179395
delta logL = -2.0435982151e-07

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.815e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.557e+00  3.226e+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.510e-01  1.286e-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:  1.176e+00  1.128e-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/590226/cmap_HighResolution_262396801_262656001_4FGL_J1432.2+5051_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-09 23:20:31.827163', job_id='590226', GAL2='0.85', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631254831.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='89' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:20:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 590226: <4FGL_J1432.2+5051_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin89 218.068 50.8596 262396801 262656001 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 :                                   842.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

