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


Performing analysis on: 4FGL_J1432.2+5051_daily_bin269
RA = 218.068, Dec = 50.8596
tmin = 309052801, tmax = 309312001
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='592982', job_status='RUN', time_executed='2021-09-09 23:16:20.352320', time_epoch_executed='1631254580.35' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592982

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592982/ft1_4FGL_J1432.2+5051_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592982/ft2_4FGL_J1432.2+5051_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592982/ft1_4FGL_J1432.2+5051_daily_bin269.fits outfile=/scratch/kocevski/592982/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin269.fits ra=218.068 dec=50.8596 rad=12.0 tmin=309052801.0 tmax=309312001.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 3.39
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592982/ft2_4FGL_J1432.2+5051_daily_bin269.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/592982/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin269.fits evtable="EVENTS" outfile="/scratch/kocevski/592982/ft1_filtered_4FGL_J1432.2+5051_daily_bin269.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.66
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592982/ft1_filtered_4FGL_J1432.2+5051_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/592982/ft2_4FGL_J1432.2+5051_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/592982/ltcube_309052801_309312001_4FGL_J1432.2+5051_daily_bin269.fits outfile=/scratch/kocevski/592982/expmap_309052801_309312001_4FGL_J1432.2+5051_daily_bin269.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/592982/ltcube_309052801_309312001_4FGL_J1432.2+5051_daily_bin269.fits
.....................!
real 189.86
user 185.08
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/592982/ft1_filtered_4FGL_J1432.2+5051_daily_bin269.fits scfile=/scratch/kocevski/592982/ft2_4FGL_J1432.2+5051_daily_bin269.fits outfile=/scratch/kocevski/592982/cmap_309052801_309312001_4FGL_J1432.2+5051_daily_bin269.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.786       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3531       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16527E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.861       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7859       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.296       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5431       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.782       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1687       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26957E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .32151E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    15.092       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3712       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .43642       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=   4943.573     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     5395 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9373       -.11342E-05** at limit **
   2  Prefactor     .10000E-03    11.169       -.49571E-06** at limit **
   3  Prefactor     .10000E-03    9.1623        .13706E-05** at limit **
   4  norm          2.1585        2.3891        .13534E-07    .12416E-03
   5  Prefactor     3.6683        293.69       -.18435E-05    .20469E-05
   6  Prefactor     51.775        42.031        .71146E-06    .13741E-03
   7  norm          1.3530        1.2658       -.12806E-07    .20699E-03
   8  norm          .10001E-03    36.331        .30703E-05** at limit **
   9  norm          1.4186        4.1940       -.20610E-06    .44802E-03
  10  Prefactor     .10001E-03    201.15        .31545E-05** at limit **
  11  Prefactor     36.852        45.710        .67124E-06    .11953E-03
  12  Prefactor     32.580        45.339        .20413E-05    .23277E-03
  13  Prefactor     .86850        5.5417       -.10308E-05    .43892E-03
  14  Prefactor     6.7826        20.483        .12728E-05    .18136E-03
  15  Prefactor     .10000E-03    1.3734        .19375E-06** at limit **
  16  Prefactor     28.293        28.128        .10609E-06    .21964E-04
  17  Prefactor     1.5263        55.799       -.10345E-05    .42826E-04
  18  Prefactor     .10000E-03    19.421       -.23421E-05** at limit **
  19  Prefactor     .10000E-03    7.8334        .17512E-07** at limit **
  20  Prefactor     .10000E-03    17.362        .10740E-05** at limit **
  21  Prefactor     10.335        24.433       -.47791E-07    .96952E-05
  22  Prefactor     .10000E-03    17.317        .10947E-05** at limit **
  23  Prefactor     13.779        17.713        .21536E-06    .43447E-04
  24  norm          1.1692        1.8949       -.64540E-07    .33571E-03
  25  Prefactor     12.625        14.003       -.28176E-06   -.48551E-03
  26  Prefactor     .10001E-03    4.0960        .14693E-05** at limit **
  27  Prefactor     .10000E-03    45.000        .16692E-04** at limit **
  28  norm          .10000E-03    1.1183        .13886E-07** at limit **
  29  Prefactor     .10000E-03    2.9121        .36392E-07** at limit **
  30  Prefactor     .10025E-03    29.528        .80322E-05** at limit **
  31  Prefactor     15.092        12.372        .32072E-08   -.81437E-04
  32  Normalizat    1.3714        .20696       -.53147E-06    .55363E-04
  33  Prefactor     .43623        .21785        .15690E-05    .13679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.15849
  Prefactor  = 3.66832
  Prefactor  = 51.7754
  norm       = 1.35305
  norm       = 0.000100007
  norm       = 1.41861
  Prefactor  = 0.000100007
  Prefactor  = 36.8517
  Prefactor  = 32.5795
  Prefactor  = 0.868497
  Prefactor  = 6.78259
  Prefactor  = 0.0001
  Prefactor  = 28.2927
  Prefactor  = 1.52632
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.3346
  Prefactor  = 0.000100001
  Prefactor  = 13.7788
  norm       = 1.16919
  Prefactor  = 12.6249
  Prefactor  = 0.000100007
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100248
  Prefactor  = 15.0922
  Normalizat = 1.37138
  Prefactor  = 0.436233
 **********
 **   18 **HESSE 
 **********

 FCN=   4943.573     FROM HESSE     STATUS=OK           699 CALLS     6094 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1585        2.3884        .11111E-03   -1.5414    
   5  Prefactor     3.6683        291.10        .21126E-03   -1.5325    
   6  Prefactor     51.775        42.078        .55732E-04   -1.4268    
   7  norm          1.3530        1.2483        .73612E-04   -1.5475    
   8  norm          .10001E-03    36.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4186        4.1392        .23184E-03   -1.5470    
  10  Prefactor     .10001E-03    201.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.852        45.655        .66011E-04   -1.4493    
  12  Prefactor     32.580        45.493        .70193E-04   -1.4566    
  13  Prefactor     .86850        5.4904        .30599E-03   -1.5522    
  14  Prefactor     6.7826        20.621        .15403E-03   -1.5187    
  15  Prefactor     .10000E-03    1.3898        .80276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.293        28.071        .75315E-04   -1.4644    
  17  Prefactor     1.5263        55.240        .34314E-03   -1.5461    
  18  Prefactor     .10000E-03    19.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.335        24.422        .12464E-03   -1.5065    
  22  Prefactor     .10000E-03    17.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.779        17.180        .10789E-03   -1.4965    
  24  norm          1.1692        1.8353        .11082E-03   -1.5492    
  25  Prefactor     12.625        12.815        .11274E-03   -1.4997    
  26  Prefactor     .10001E-03    37.201        .25339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    47.822        .35318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.1216        .72570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.9163        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10025E-03    219.67        .55218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     15.092        11.539        .10310E-03   -1.4931    
  32  Normalizat    1.3714        .23400        .18860E-03   -.81460    
  33  Prefactor     .43623        .24107        .35710E-03   -1.1500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5719e-09
Minuit parameter uncertainties:
  1  0.000182474
  2  5.29479e-05
  3  0.000219827
  4  2.38846
  5  65.6882
  6  42.1021
  7  1.24833
  8  0.00100375
  9  4.14002
  10  0.00238407
  11  45.698
  12  45.5411
  13  4.36765
  14  20.6424
  15  1.55221e-05
  16  28.0836
  17  18.3822
  18  0.000561013
  19  4.92169e-07
  20  0.000241565
  21  24.4454
  22  0.000223181
  23  17.1863
  24  1.83542
  25  12.8174
  26  0.0010346
  27  0.000831934
  28  7.03143e-07
  29  4.40365e-07
  30  0.0148035
  31  11.5404
  32  0.234178
  33  0.24163
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.610e-04  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:  4.362e-01  2.416e-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.371e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592982/likelihoodResults_309052801_309312001_4FGL_J1432.2+5051_daily_bin269.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) = 4943.57353703
delta logL = -0.000240571319409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4943.57329789
delta logL = -1.43628494698e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.9399       1.0000          .0000       10.000    
     3 'Normalizat'    1.3714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43623       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=   4942.869     FROM MIGRAD    STATUS=CONVERGED    195 CALLS      390 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .40684E-02    .31198E-03** at limit **
   2  Index         7.6270        2.3337        .12505        .15089E-03
   3  Normalizat    1.3105        .41020E-01    .31636E-01    .37456E-03
   4  Prefactor     .48413        .45787E-01    .76790E-01    .32092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.62696
  Normalizat = 1.31051
  Prefactor  = 0.484131
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.869     FROM HESSE     STATUS=OK            31 CALLS      421 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .81704E-03    .10038E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6270        .35894        .45671E-02    .55317    
   3  Normalizat    1.3105        .21318        .19191E-03   -.83253    
   4  Prefactor     .48413        .23723        .34007E-03   -1.1271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59301e-10
Minuit parameter uncertainties:
  1  5.66636e-09
  2  0.359362
  3  0.21332
  4  0.237716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592982': 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) = 4942.86869163
delta logL = 0.704604830247

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.666e-09  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  7.627e+00  3.594e-01  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:  4.841e-01  2.377e-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.311e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 218.068 50.860
Photon Index (Free Index): 7.63 +/- 0.36
Photon Flux (Free Index): 4.80e-08 +/- 4.60e-08
Energy Flux (Free Index): 5.62e-06 +/- 5.37e-06

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/592982/cmap_HighResolution_309052801_309312001_4FGL_J1432.2+5051_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', comment='SUCCESS', energy_flux2='5.62e-06', dlogl='7.05e-01', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-09 23:32:27.098993', photon_index_error2='0.36', photon_index2='7.63', ts='-0.00', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='5.02e-08', energy_flux_error2='5.37e-06', EG='1.37', time_epoch_completed='1631255547.1', return_code='0', job_id='592982', GAL2='0.48', EG2='1.31', return_code2='0', photon_flux_error2='4.60e-08', ts2='1.46', photon_index='2.24' WHERE bin_id='269' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:32:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 592982: <4FGL_J1432.2+5051_daily_bin269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin269 218.068 50.8596 309052801 309312001 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 :                                   961.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

