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


Performing analysis on: 4FGL_J1432.2+5051_daily_bin72
RA = 218.068, Dec = 50.8596
tmin = 257990401, tmax = 258249601
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='590200', job_status='RUN', time_executed='2021-09-09 23:08:46.262518', time_epoch_executed='1631254126.26' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590200/ft1_4FGL_J1432.2+5051_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590200/ft2_4FGL_J1432.2+5051_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590200/ft1_4FGL_J1432.2+5051_daily_bin72.fits outfile=/scratch/kocevski/590200/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin72.fits ra=218.068 dec=50.8596 rad=12.0 tmin=257990401.0 tmax=258249601.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.41
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590200/ft2_4FGL_J1432.2+5051_daily_bin72.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/590200/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/590200/ft1_filtered_4FGL_J1432.2+5051_daily_bin72.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/590200/ft1_filtered_4FGL_J1432.2+5051_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/590200/ft2_4FGL_J1432.2+5051_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/590200/ltcube_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.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/590200/ft2_4FGL_J1432.2+5051_daily_bin72.fits
.....................!
real 12.41
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590200/ft1_filtered_4FGL_J1432.2+5051_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/590200/ft2_4FGL_J1432.2+5051_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/590200/ltcube_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.fits outfile=/scratch/kocevski/590200/expmap_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.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/590200/ltcube_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.fits
.....................!
real 190.80
user 185.11
sys 5.24

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/590200/ft1_filtered_4FGL_J1432.2+5051_daily_bin72.fits scfile=/scratch/kocevski/590200/ft2_4FGL_J1432.2+5051_daily_bin72.fits outfile=/scratch/kocevski/590200/cmap_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=218.068 yref=50.8596 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590200/ft1_filtered_4FGL_J1432.2+5051_daily_bin72.fits scfile=/scratch/kocevski/590200/ft2_4FGL_J1432.2+5051_daily_bin72.fits outfile=/scratch/kocevski/590200/cmap_HighResolution_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2741       1.0000         .10000E-03   10000.    
     6 'Prefactor '    106.23       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3775       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0042       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58970E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.643       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.369       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .18196       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7851       1.0000         .10000E-03   10000.    
    28 'norm      '    2.8203       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .13137E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2066       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80080       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=   4430.545     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4643 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1040        62.614        .11014E-05   -.76474E-05
   2  Prefactor     22.228        20.668        .11871E-08    .44652E-05
   3  Prefactor     .10000E-03    77.355        .31746E-06** at limit **
   4  norm          1.2767        3.2962        .13479E-06    .93330E-05
   5  Prefactor     5.2855        208.77       -.95109E-06    .21993E-05
   6  Prefactor     106.23        78.832        .11299E-07    .63543E-05
   7  norm          5.3777        2.1946       -.64256E-08    .25650E-04
   8  norm          .10000E-03    32.981        .17327E-05** at limit **
   9  norm          3.0041        5.4872        .16583E-06    .25532E-04
  10  Prefactor     .10000E-03    698.22        .10893E-04** at limit **
  11  Prefactor     .10000E-03    26.614       -.13988E-05** at limit **
  12  Prefactor     41.700        41.379        .21683E-05    .61036E-04
  13  Prefactor     .10000E-03    4.9692       -.15773E-05** at limit **
  14  Prefactor     2.6628        13.472        .53675E-05    .10081E-03
  15  Prefactor     6.1702        4.0762       -.41593E-08    .69142E-04
  16  Prefactor     .10000E-03    15.189        .21182E-07** at limit **
  17  Prefactor     .10000E-03    10.645       -.25747E-07** at limit **
  18  Prefactor     21.820        51.590        .41870E-06    .13861E-04
  19  Prefactor     13.364        25.824       -.65537E-07    .92817E-05
  20  Prefactor     .10000E-03    21.147        .11429E-05** at limit **
  21  Prefactor     .10000E-03    20.334       -.85025E-06** at limit **
  22  Prefactor     .10000E-03    38.065       -.37131E-06** at limit **
  23  Prefactor     11.203        11.912       -.56898E-07    .52972E-04
  24  norm          .10000E-03    .46735       -.51468E-08** at limit **
  25  Prefactor     .10000E-03    38.984       -.75541E-06** at limit **
  26  Prefactor     .20676        8.9159       -.17452E-05    .24407E-03
  27  Prefactor     2.7775        11.290        .96226E-06    .51845E-04
  28  norm          2.8212        4.6061        .11297E-06   -.28573E-04
  29  Prefactor     .10000E-03    8.6210        .26465E-07** at limit **
  30  Prefactor     .10000E-03    23.876        .27906E-06** at limit **
  31  Prefactor     .10002E-03    13.810        .92095E-06** at limit **
  32  Normalizat    1.2067        .21488       -.36598E-06    .15296E-03
  33  Prefactor     .80083        .22631       -.29302E-06    .96904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10403
  Prefactor  = 22.228
  Prefactor  = 0.0001
  norm       = 1.27673
  Prefactor  = 5.28552
  Prefactor  = 106.235
  norm       = 5.37766
  norm       = 0.0001
  norm       = 3.00405
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 41.7004
  Prefactor  = 0.0001
  Prefactor  = 2.66278
  Prefactor  = 6.17021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8203
  Prefactor  = 13.3637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.206757
  Prefactor  = 2.77753
  norm       = 2.82121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 1.20668
  Prefactor  = 0.800829
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.545     FROM HESSE     STATUS=OK           699 CALLS     5342 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1040        62.432        .23069E-03   -1.5356    
   2  Prefactor     22.228        20.571        .84954E-04   -1.4765    
   3  Prefactor     .10000E-03    78.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2767        3.2255        .18168E-03   -1.5482    
   5  Prefactor     5.2855        206.41        .17502E-03   -1.5248    
   6  Prefactor     106.23        78.920        .39017E-04   -1.3643    
   7  norm          5.3777        2.1997        .59985E-04   -1.5244    
   8  norm          .10000E-03    32.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0041        5.4448        .19480E-03   -1.5361    
  10  Prefactor     .10000E-03    696.28        .18966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.700        41.553        .62119E-04   -1.4416    
  13  Prefactor     .10000E-03    10.346        .27443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6628        14.154        .12501E-02   -1.5382    
  15  Prefactor     6.1702        4.0697        .10264E-03   -1.5211    
  16  Prefactor     .10000E-03    15.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.820        51.557        .85737E-04   -1.4773    
  19  Prefactor     13.364        25.885        .10955E-03   -1.4977    
  20  Prefactor     .10000E-03    21.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.203        11.898        .11967E-03   -1.5038    
  24  norm          .10000E-03    .46917        .44430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .20676        48.131        .34294E-02   -1.5617    
  27  Prefactor     2.7775        11.093        .24382E-03   -1.5375    
  28  norm          2.8212        4.4366        .16768E-03   -1.5372    
  29  Prefactor     .10000E-03    8.6514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10002E-03    108.56        .45022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2067        .25845        .22264E-03   -.86397    
  33  Prefactor     .80083        .27188        .30061E-03   -.99698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90107e-09
Minuit parameter uncertainties:
  1  27.8748
  2  20.5775
  3  0.000253401
  4  3.22595
  5  66.3065
  6  78.9986
  7  2.19969
  8  0.000109062
  9  5.44571
  10  0.00320981
  11  5.94437e-05
  12  41.5823
  13  3.40023e-05
  14  12.2827
  15  4.06986
  16  1.02713e-06
  17  2.9515e-06
  18  51.663
  19  25.9067
  20  5.70813e-05
  21  4.58121e-05
  22  1.59845e-05
  23  11.9006
  24  1.90199e-07
  25  1.02196e-05
  26  6.31278
  27  11.1009
  28  4.43708
  29  2.61115e-06
  30  1.67041e-05
  31  0.00263818
  32  0.258729
  33  0.272332
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  2.182e+01  5.166e+01  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.008e-01  2.723e-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.207e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590200/likelihoodResults_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.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) = 4430.5277976
delta logL = 0.0169485817805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4430.52080584
delta logL = 0.0239403482465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.821       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5096       1.0000          .0000       10.000    
     3 'Normalizat'    1.2039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80230       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=   4430.521     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.804        55.775        .10069E-03    .86935E-04
   2  Index         2.5098        1.4546        .97143E-02    .40475E-04
   3  Normalizat    1.2039        .23781        .22285E-03   -.11859E-02
   4  Prefactor     .80232        .26746        .30034E-03   -.89168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8036
  Index      = 2.50984
  Normalizat = 1.2039
  Prefactor  = 0.802317
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.521     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.804        47.885        .40278E-05   -1.4913    
   2  Index         2.5098        1.2549        .38857E-03   -.52133    
   3  Normalizat    1.2039        .23796        .44570E-04   -.86482    
   4  Prefactor     .80232        .26759        .60067E-04   -.99643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97824e-09
Minuit parameter uncertainties:
  1  48.0019
  2  1.27307
  3  0.238173
  4  0.268023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590200': 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) = 4430.52080576
delta logL = 0.0239404241702

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.580e+01  4.800e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.510e+00  1.273e+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.023e-01  2.680e-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.204e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/590200/cmap_HighResolution_257990401_258249601_4FGL_J1432.2+5051_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-09 23:22:19.076297', job_id='590200', GAL2='0.80', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1631254939.08', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.39e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='72' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:22:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 590200: <4FGL_J1432.2+5051_daily_bin72> in cluster <slac> Done

Job <4FGL_J1432.2+5051_daily_bin72> 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) <bullet0264>, 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:22:19 2021
Results reported at Thu Sep  9 23:22:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin72 218.068 50.8596 257990401 258249601 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 :                                   811.14 sec.
    Max Memory :                                 1209 MB
    Average Memory :                             296.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

