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


Performing analysis on: 4FGL_J1432.2+5051_daily_bin144
RA = 218.068, Dec = 50.8596
tmin = 276652801, tmax = 276912001
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='591549', job_status='RUN', time_executed='2021-09-09 23:11:19.154694', time_epoch_executed='1631254279.15' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591549/ft1_4FGL_J1432.2+5051_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591549/ft2_4FGL_J1432.2+5051_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591549/ft1_4FGL_J1432.2+5051_daily_bin144.fits outfile=/scratch/kocevski/591549/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin144.fits ra=218.068 dec=50.8596 rad=12.0 tmin=276652801.0 tmax=276912001.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.64
user 4.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591549/ft2_4FGL_J1432.2+5051_daily_bin144.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/591549/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/591549/ft1_filtered_4FGL_J1432.2+5051_daily_bin144.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.53
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591549/ft1_filtered_4FGL_J1432.2+5051_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/591549/ft2_4FGL_J1432.2+5051_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/591549/ltcube_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.fits outfile=/scratch/kocevski/591549/expmap_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.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/591549/ltcube_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.fits
.....................!
real 189.83
user 184.64
sys 4.65

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/591549/ft1_filtered_4FGL_J1432.2+5051_daily_bin144.fits scfile=/scratch/kocevski/591549/ft2_4FGL_J1432.2+5051_daily_bin144.fits outfile=/scratch/kocevski/591549/cmap_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.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.54
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591549/ft1_filtered_4FGL_J1432.2+5051_daily_bin144.fits scfile=/scratch/kocevski/591549/ft2_4FGL_J1432.2+5051_daily_bin144.fits outfile=/scratch/kocevski/591549/cmap_HighResolution_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.210       1.0000         .10000E-03   10000.    
     7 'norm      '    6.9854       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11856E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.451       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.770       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .57616E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4990       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.459       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.9576       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.7463       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.0640       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98385       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1244       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=   5203.376     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4717 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.561       -.99857E-07** at limit **
   2  Prefactor     .10000E-03    28.214        .65799E-06** at limit **
   3  Prefactor     .10000E-03    10.636        .15404E-07** at limit **
   4  norm          .10000E-03    5.5331        .80111E-08** at limit **
   5  Prefactor     49.993        62.933       -.10164E-05   -.85014E-05
   6  Prefactor     63.201        60.764        .66037E-07   -.17510E-04
   7  norm          6.9848        2.3934        .12948E-07   -.49768E-04
   8  norm          .10000E-03    152.61        .16973E-05** at limit **
   9  norm          .10000E-03    1.7914        .18149E-06** at limit **
  10  Prefactor     .10000E-03    275.46       -.59748E-05** at limit **
  11  Prefactor     .10000E-03    20.968        .36254E-07** at limit **
  12  Prefactor     25.476        44.144       -.45393E-06   -.40721E-04
  13  Prefactor     1.7993        3.2553        .31997E-07   -.20514E-04
  14  Prefactor     30.442        25.135        .13775E-06   -.63994E-04
  15  Prefactor     .76728        1.5404        .98289E-06    .14582E-02
  16  Prefactor     .10000E-03    61.720        .17364E-06** at limit **
  17  Prefactor     .10000E-03    21.773        .49370E-07** at limit **
  18  Prefactor     .10000E-03    14.940        .25458E-06** at limit **
  19  Prefactor     11.767        20.090        .14610E-06   -.13029E-04
  20  Prefactor     .10000E-03    32.725       -.81601E-07** at limit **
  21  Prefactor     .10000E-03    18.441       -.35692E-06** at limit **
  22  Prefactor     .10000E-03    6.0841       -.72024E-08** at limit **
  23  Prefactor     .10104E-03    19.371        .44773E-05** at limit **
  24  norm          2.4996        1.5607        .11972E-07   -.70685E-03
  25  Prefactor     13.458        11.533        .15205E-06   -.47337E-04
  26  Prefactor     .10000E-03    2.4474        .33339E-07** at limit **
  27  Prefactor     .10000E-03    3.3696       -.12601E-09** at limit **
  28  norm          1.9601        3.3868        .83388E-08   -.10940E-04
  29  Prefactor     1.7267        34.245        .30391E-05    .15275E-03
  30  Prefactor     .10000E-03    170.32        .10911E-04** at limit **
  31  Prefactor     8.0939        22.649       -.38607E-05   -.13558E-03
  32  Normalizat    .98427        .19403       -.53150E-06   -.32673E-03
  33  Prefactor     1.1240        .21354        .25394E-06   -.29101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.9935
  Prefactor  = 63.201
  norm       = 6.98477
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 25.4761
  Prefactor  = 1.79932
  Prefactor  = 30.4415
  Prefactor  = 0.767278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101044
  norm       = 2.49959
  Prefactor  = 13.4581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96007
  Prefactor  = 1.72666
  Prefactor  = 0.000100005
  Prefactor  = 8.09386
  Normalizat = 0.984268
  Prefactor  = 1.124
 **********
 **   18 **HESSE 
 **********

 FCN=   5203.376     FROM HESSE     STATUS=OK           689 CALLS     5406 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7082        .33106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.993        62.885        .56704E-04   -1.4293    
   6  Prefactor     63.201        60.921        .50473E-04   -1.4116    
   7  norm          6.9848        2.3969        .62434E-04   -1.5179    
   8  norm          .10000E-03    152.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7972        .94171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    269.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.476        44.215        .79351E-04   -1.4698    
  13  Prefactor     1.7993        3.2152        .16857E-03   -1.5440    
  14  Prefactor     30.442        25.296        .72608E-04   -1.4604    
  15  Prefactor     .76728        1.4216        .14153E-02   -1.5533    
  16  Prefactor     .10000E-03    62.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.767        20.098        .11677E-03   -1.5022    
  20  Prefactor     .10000E-03    32.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0928        .17376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10104E-03    83.463        .45316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4996        1.5482        .68406E-04   -1.5392    
  25  Prefactor     13.458        11.536        .54591E-03   -1.4974    
  26  Prefactor     .10000E-03    2.4607        .11017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3951        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.9601        3.3912        .15166E-03   -1.5428    
  29  Prefactor     1.7267        39.385        .15868E-02   -1.5445    
  30  Prefactor     .10000E-03    173.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     8.0939        23.730        .14119E-03   -1.5139    
  32  Normalizat    .98427        .23218        .24128E-03   -.93559    
  33  Prefactor     1.1240        .25509        .26742E-03   -.88703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35943e-08
Minuit parameter uncertainties:
  1  6.47782e-06
  2  1.30235e-05
  3  2.07686e-08
  4  4.63158e-06
  5  62.9683
  6  60.9811
  7  2.39689
  8  0.000394804
  9  9.00667e-07
  10  0.00145192
  11  4.95645e-06
  12  44.2716
  13  3.21552
  14  25.3049
  15  1.42167
  16  8.03072e-05
  17  5.99116e-05
  18  1.79391e-05
  19  20.1099
  20  6.74215e-06
  21  2.30594e-05
  22  6.4363e-06
  23  0.018698
  24  1.54823
  25  11.5377
  26  3.52746e-06
  27  1.55411e-06
  28  3.39152
  29  16.5048
  30  0.00179196
  31  23.7578
  32  0.23242
  33  0.255372
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.794e-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.124e+00  2.554e-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:  9.843e-01  2.324e-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: 4.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591549/likelihoodResults_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.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) = 5203.37589737
delta logL = -0.000308541190861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5203.37558884
delta logL = -1.029275154e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2141       1.0000          .0000       10.000    
     3 'Normalizat'    .98426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1240       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=   5203.376     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      247 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10585E-03    13.848        .18142E-01** at limit **
   2  Index         2.0755        8.0580        .50000        .11756E-04
   3  Normalizat    .98427        .40070E-02    .24128E-03   -.38637E-05
   4  Prefactor     1.1240        .47314E-02    .26742E-03    .22957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010585
  Index      = 2.07552
  Normalizat = 0.984268
  Prefactor  = 1.124
 **********
 **   18 **HESSE 
 **********

 FCN=   5203.376     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10585E-03    140.22        .29684E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0755        8.9622        .50000       -.62475    
   3  Normalizat    .98427        .12869E-01    .96513E-05   -.93559    
   4  Prefactor     1.1240        .15196E-01    .10697E-04   -.88703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54511e-09
Minuit parameter uncertainties:
  1  0.0574173
  2  551.671
  3  0.0128689
  4  0.0151957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591549': 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) = 5203.37558846
delta logL = 3.6716573959e-07

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.059e-04  5.742e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.076e+00  5.517e+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.124e+00  1.520e-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:  9.843e-01  1.287e-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/591549/cmap_HighResolution_276652801_276912001_4FGL_J1432.2+5051_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-09 23:26:48.870297', job_id='591549', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631255208.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='144' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 591549: <4FGL_J1432.2+5051_daily_bin144> in cluster <slac> Done

Job <4FGL_J1432.2+5051_daily_bin144> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 23:11:00 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 23:11:02 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:11:02 2021
Terminated at Thu Sep  9 23:26:49 2021
Results reported at Thu Sep  9 23:26:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin144 218.068 50.8596 276652801 276912001 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 :                                   925.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

