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


Performing analysis on: 4FGL_J1432.2+5051_daily_bin73
RA = 218.068, Dec = 50.8596
tmin = 258249601, tmax = 258508801
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='590202', job_status='RUN', time_executed='2021-09-09 23:09:28.272389', time_epoch_executed='1631254168.27' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590202

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590202/ft1_4FGL_J1432.2+5051_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590202/ft1_4FGL_J1432.2+5051_daily_bin73.fits outfile=/scratch/kocevski/590202/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin73.fits ra=218.068 dec=50.8596 rad=12.0 tmin=258249601.0 tmax=258508801.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.16
user 0.99
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590202/ft1_filtered_4FGL_J1432.2+5051_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/590202/ltcube_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.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/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits
.....................!
real 9.50
user 9.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590202/ft1_filtered_4FGL_J1432.2+5051_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/590202/ltcube_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.fits outfile=/scratch/kocevski/590202/expmap_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.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/590202/ltcube_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.fits
.....................!
real 192.68
user 187.70
sys 4.25

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/590202/ft1_filtered_4FGL_J1432.2+5051_daily_bin73.fits scfile=/scratch/kocevski/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits outfile=/scratch/kocevski/590202/cmap_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590202/ft1_filtered_4FGL_J1432.2+5051_daily_bin73.fits scfile=/scratch/kocevski/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits outfile=/scratch/kocevski/590202/cmap_HighResolution_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.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/590202/ft1_filtered_4FGL_J1432.2+5051_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/590202/ft2_4FGL_J1432.2+5051_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590202/Model_4FGL_J1432.2+5051_daily_bin73.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/590202/ft1_filtered_4FGL_J1432.2+5051_daily_bin73.fits....................!
real 33.65
user 32.33
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .66525E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .11439E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.631       1.0000         .10000E-03   10000.    
     8 'norm      '    .20454E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.3418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10147E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13203E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18491E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.347       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.994       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76485E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    101.32       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29223E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.640       1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.807       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13971E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.3490       1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.040       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98571       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .83238       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=   3296.797     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4629 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.042       -.43753E-06** at limit **
   2  Prefactor     19.760        28.308       -.11257E-05    .67312E-05
   3  Prefactor     .10002E-03    820.45       -.17198E-04** at limit **
   4  norm          .10000E-03    8.8829        .55993E-06** at limit **
   5  Prefactor     .10000E-03    29.771        .10188E-06** at limit **
   6  Prefactor     .10000E-03    22.105        .97199E-07** at limit **
   7  norm          12.629        3.7419       -.26803E-06    .18003E-03
   8  norm          .10000E-03    126.67       -.66996E-06** at limit **
   9  norm          7.3409        7.4719        .27931E-05   -.11490E-03
  10  Prefactor     .10001E-03    258.61        .14326E-05** at limit **
  11  Prefactor     .10000E-03    29.864        .24926E-06** at limit **
  12  Prefactor     .10000E-03    65.736        .68767E-06** at limit **
  13  Prefactor     .10000E-03    13.017        .70521E-07** at limit **
  14  Prefactor     26.388        41.057        .21202E-06   -.43757E-04
  15  Prefactor     10.993        5.1741        .12737E-06   -.13666E-03
  16  Prefactor     .10000E-03    438.47        .58454E-05** at limit **
  17  Prefactor     .10000E-03    22.336        .17266E-06** at limit **
  18  Prefactor     101.41        111.03        .11907E-05    .40653E-04
  19  Prefactor     .10000E-03    26.436       -.24041E-06** at limit **
  20  Prefactor     .10000E-03    32.542        .15780E-07** at limit **
  21  Prefactor     .10000E-03    43.822        .16884E-06** at limit **
  22  Prefactor     .10000E-03    67.883        .35754E-05** at limit **
  23  Prefactor     26.608        25.250       -.10714E-06   -.11594E-03
  24  norm          .10000E-03    1.8496        .36635E-06** at limit **
  25  Prefactor     17.806        13.519        .30115E-06   -.46127E-04
  26  Prefactor     .10000E-03    2.4568        .41255E-08** at limit **
  27  Prefactor     .10000E-03    3.2612        .14256E-07** at limit **
  28  norm          .10000E-03    1.7217       -.91676E-08** at limit **
  29  Prefactor     .10000E-03    21.723        .27400E-06** at limit **
  30  Prefactor     5.4204        139.91       -.50596E-06    .81634E-05
  31  Prefactor     13.041        27.412        .54677E-06   -.46153E-05
  32  Normalizat    .98563        .24596       -.13320E-05   -.52966E-04
  33  Prefactor     .83225        .24219       -.56620E-06   -.68428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.7603
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6292
  norm       = 0.000100001
  norm       = 7.34087
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3881
  Prefactor  = 10.9928
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 101.406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6076
  norm       = 0.0001
  Prefactor  = 17.806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42037
  Prefactor  = 13.0406
  Normalizat = 0.985626
  Prefactor  = 0.832245
 **********
 **   18 **HESSE 
 **********

 FCN=   3296.797     FROM HESSE     STATUS=OK           691 CALLS     5320 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.760        28.179        .90064E-04   -1.4819    
   3  Prefactor     .10002E-03    842.52        .37562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.0510        .33151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.629        3.7473        .57001E-04   -1.4997    
   8  norm          .10000E-03    126.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.3409        7.5061        .74013E-03   -1.5166    
  10  Prefactor     .10001E-03    259.41        .20753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    65.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.388        41.831        .78045E-04   -1.4680    
  15  Prefactor     10.993        5.1732        .42545E-03   -1.5045    
  16  Prefactor     .10000E-03    453.53        .37107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     101.41        111.16        .19971E-03   -1.3691    
  19  Prefactor     .10000E-03    26.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    43.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    68.477        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.608        24.732        .77616E-04   -1.4676    
  24  norm          .10000E-03    3.3866        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.806        13.537        .94911E-04   -1.4864    
  26  Prefactor     .10000E-03    2.4591        .87888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.2648        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.7269        .73484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    22.245        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.4204        131.60        .17377E-03   -1.5242    
  31  Prefactor     13.041        26.569        .11092E-03   -1.4986    
  32  Normalizat    .98563        .29454        .23760E-03   -.93514    
  33  Prefactor     .83225        .28580        .28464E-03   -.98550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18546e-10
Minuit parameter uncertainties:
  1  0.000121412
  2  28.198
  3  0.00760292
  4  6.52422e-05
  5  7.04334e-05
  6  6.2521e-05
  7  3.74732
  8  0.00050852
  9  7.50707
  10  0.00232132
  11  7.30473e-05
  12  9.66993e-06
  13  2.1126e-05
  14  41.8778
  15  5.17343
  16  0.00227088
  17  5.62064e-05
  18  111.385
  19  1.62152e-05
  20  4.65751e-05
  21  0.000133802
  22  3.25055e-05
  23  24.7411
  24  4.1827e-05
  25  13.5398
  26  1.54294e-06
  27  9.45234e-07
  28  4.3683e-07
  29  3.18184e-05
  30  53.5484
  31  26.5928
  32  0.295028
  33  0.28631
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.014e+02  1.114e+02  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.322e-01  2.863e-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.856e-01  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 218.068 50.860
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 2.31e-05

TS (Fixed Index): 1.24
Ra Dec: 218.068 50.860
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590202/likelihoodResults_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.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): 0
logL (Free Index) = 3296.47088571
delta logL = 0.325854634322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3296.46440792
delta logL = 0.33233241678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.766       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0002       1.0000          .0000       10.000    
     3 'Normalizat'    .93286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86637       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=   3296.464     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.834        139.26        .66097E-04   -.16505E-03
   2  Index         2.9998        1.7564        .36409E-02   -.96605E-04
   3  Normalizat    .93225        .26996        .24317E-03   -.26786E-03
   4  Prefactor     .86702        .29014        .27905E-03    .37025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8336
  Index      = 2.99981
  Normalizat = 0.932246
  Prefactor  = 0.867023
 **********
 **   18 **HESSE 
 **********

 FCN=   3296.464     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.834        81.567        .13219E-04   -1.4493    
   2  Index         2.9998        1.0383        .14564E-03   -.41156    
   3  Normalizat    .93225        .26110        .48633E-04   -.95336    
   4  Prefactor     .86702        .28221        .55809E-04   -.97303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36203e-09
Minuit parameter uncertainties:
  1  81.8151
  2  1.04745
  3  0.261452
  4  0.282683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590202': 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): 0
logL (Free Index) = 3296.4644044
delta logL = 0.332335938186

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  3.683e+01  8.182e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  3.000e+00  1.047e+00  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.670e-01  2.827e-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.322e-01  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 218.068 50.860
Photon Index (Free Index): 3.00 +/- 1.05
Photon Flux (Free Index): 1.00e-07 +/- 9.34e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.68e-05

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/590202/cmap_HighResolution_258249601_258508801_4FGL_J1432.2+5051_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.00e-05', photon_flux_error='5.52e-08', dlogl='3.32e-01', energy_flux='2.10e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-09 23:20:52.983811', photon_index_error2='1.05', photon_index2='3.00', ts='1.24', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.68e-05', EG='0.99', time_epoch_completed='1631254852.98', return_code='0', job_id='590202', GAL2='0.87', EG2='0.93', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='9.34e-08', ts2='1.93', photon_index='2.24' WHERE bin_id='73' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 590202: <4FGL_J1432.2+5051_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin73 218.068 50.8596 258249601 258508801 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 :                                   683.40 sec.
    Max Memory :                                 1225 MB
    Average Memory :                             287.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

