/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 178 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 = 7493
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1432.2+5051_daily_bin724
RA = 218.068, Dec = 50.8596
tmin = 426988801, tmax = 427248001
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='595975', job_status='RUN', time_executed='2021-09-09 23:29:20.864104', time_epoch_executed='1631255360.86' WHERE source_name='4FGL J1432.2+5051' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595975

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595975/ft1_4FGL_J1432.2+5051_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595975/ft2_4FGL_J1432.2+5051_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595975/ft1_4FGL_J1432.2+5051_daily_bin724.fits outfile=/scratch/kocevski/595975/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin724.fits ra=218.068 dec=50.8596 rad=12.0 tmin=426988801.0 tmax=427248001.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.33
user 4.09
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595975/ft2_4FGL_J1432.2+5051_daily_bin724.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/595975/ft1_filteredMKT_4FGL_J1432.2+5051_daily_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/595975/ft1_filtered_4FGL_J1432.2+5051_daily_bin724.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.40
user 0.25
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595975/ft1_filtered_4FGL_J1432.2+5051_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/595975/ft2_4FGL_J1432.2+5051_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/595975/ltcube_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.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/595975/ft2_4FGL_J1432.2+5051_daily_bin724.fits
.....................!
real 8.78
user 8.48
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595975/ft1_filtered_4FGL_J1432.2+5051_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/595975/ft2_4FGL_J1432.2+5051_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/595975/ltcube_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.fits outfile=/scratch/kocevski/595975/expmap_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.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/595975/ltcube_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.fits
.....................!
real 140.79
user 136.79
sys 3.76

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/595975/ft1_filtered_4FGL_J1432.2+5051_daily_bin724.fits scfile=/scratch/kocevski/595975/ft2_4FGL_J1432.2+5051_daily_bin724.fits outfile=/scratch/kocevski/595975/cmap_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.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.44
user 0.27
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595975/ft1_filtered_4FGL_J1432.2+5051_daily_bin724.fits scfile=/scratch/kocevski/595975/ft2_4FGL_J1432.2+5051_daily_bin724.fits outfile=/scratch/kocevski/595975/cmap_HighResolution_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.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.44
user 0.28
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11945E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.431       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0948       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11479E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.330       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.054       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11842E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8455       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13632E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.650       1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.867       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.268       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .81828       1.0000         .10000E-03   10000.    
    24 'norm      '    4.7860       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.819       1.0000         .10000E-03   10000.    
    28 'norm      '    .62946       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.891       1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.2335       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .62849       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=   4535.353     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     4622 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.865        48.285       -.52883E-07    .12882E-04
   2  Prefactor     18.041        15.412       -.50816E-07   -.27345E-04
   3  Prefactor     .10000E-03    45.147       -.21330E-05** at limit **
   4  norm          .10000E-03    1.5437       -.12127E-08** at limit **
   5  Prefactor     .10000E-03    14.421       -.24397E-07** at limit **
   6  Prefactor     45.421        33.591       -.50013E-06   -.10722E-03
   7  norm          4.0948        1.8729       -.14302E-08   -.20227E-04
   8  norm          .10000E-03    47.873        .30102E-05** at limit **
   9  norm          .12298E-01    2.3371        .52231E-06   -.46959E-03
  10  Prefactor     .10000E-03    264.05        .30741E-05** at limit **
  11  Prefactor     .10000E-03    23.221       -.35901E-07** at limit **
  12  Prefactor     55.314        50.785        .22079E-07   -.44958E-04
  13  Prefactor     .10000E-03    2.4517       -.60090E-07** at limit **
  14  Prefactor     .10000E-03    18.532        .84150E-06** at limit **
  15  Prefactor     10.053        3.9207        .73720E-08   -.16189E-03
  16  Prefactor     .10000E-03    18.191       -.10442E-05** at limit **
  17  Prefactor     5.8439        19.632        .31096E-06   -.76084E-05
  18  Prefactor     .10000E-03    179.14       -.52724E-06** at limit **
  19  Prefactor     22.651        26.857        .18823E-06    .50703E-05
  20  Prefactor     77.863        47.989       -.99308E-07   -.11788E-04
  21  Prefactor     .10000E-03    65.933       -.86314E-06** at limit **
  22  Prefactor     18.241        20.503       -.38859E-06   -.27345E-03
  23  Prefactor     .88948        19.368        .23528E-05   -.35891E-03
  24  norm          4.7848        2.1948        .10120E-06   -.40220E-03
  25  Prefactor     .10000E-03    16.874        .21531E-07** at limit **
  26  Prefactor     .10000E-03    4.4696        .43144E-08** at limit **
  27  Prefactor     18.815        9.6247        .23109E-07   -.53083E-04
  28  norm          .62603        4.2224        .25183E-05    .19170E-03
  29  Prefactor     .10000E-03    6.3867       -.12529E-06** at limit **
  30  Prefactor     21.902        31.745        .16950E-06   -.13514E-04
  31  Prefactor     7.2408        16.665       -.93759E-06   -.62039E-04
  32  Normalizat    1.0100        .19241        .17397E-06   -.25790E-03
  33  Prefactor     .62813        .20641       -.45202E-06   -.14484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.8651
  Prefactor  = 18.0411
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4209
  norm       = 4.09483
  norm       = 0.000100003
  norm       = 0.012298
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 55.3139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0528
  Prefactor  = 0.0001
  Prefactor  = 5.84388
  Prefactor  = 0.0001
  Prefactor  = 22.6507
  Prefactor  = 77.8634
  Prefactor  = 0.0001
  Prefactor  = 18.2413
  Prefactor  = 0.889476
  norm       = 4.78475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8145
  norm       = 0.626031
  Prefactor  = 0.0001
  Prefactor  = 21.9018
  Prefactor  = 7.24079
  Normalizat = 1.01003
  Prefactor  = 0.628135
 **********
 **   18 **HESSE 
 **********

 FCN=   4535.353     FROM HESSE     STATUS=OK           697 CALLS     5319 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.865        48.349        .49452E-04   -1.4083    
   2  Prefactor     18.041        15.432        .94289E-04   -1.4858    
   3  Prefactor     .10000E-03    45.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5470        .81666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.421        33.686        .59484E-04   -1.4359    
   7  norm          4.0948        1.8752        .60092E-04   -1.5303    
   8  norm          .10000E-03    48.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .12298E-01    4.6142        .35018E-01   -1.5686    
  10  Prefactor     .10000E-03    265.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     55.314        50.962        .53926E-04   -1.4219    
  13  Prefactor     .10000E-03    2.4583        .10294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.053        3.9204        .75785E-04   -1.5074    
  16  Prefactor     .10000E-03    18.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8439        19.606        .16611E-03   -1.5224    
  18  Prefactor     .10000E-03    181.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.651        26.985        .84164E-04   -1.4756    
  20  Prefactor     77.863        47.974        .45508E-04   -1.3941    
  21  Prefactor     .10000E-03    66.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.241        20.852        .93708E-04   -1.4854    
  23  Prefactor     .88948        141.54        .46480E-02   -1.5519    
  24  norm          4.7848        2.2093        .62930E-04   -1.5270    
  25  Prefactor     .10000E-03    17.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.5001        .13883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.815        9.6449        .92327E-04   -1.4840    
  28  norm          .62603        4.3512        .25412E-03   -1.5550    
  29  Prefactor     .10000E-03    6.4404        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     21.902        31.607        .85608E-04   -1.4772    
  31  Prefactor     7.2408        16.593        .14914E-03   -1.5170    
  32  Normalizat    1.0100        .23472        .21536E-03   -.92695    
  33  Prefactor     .62813        .24671        .30162E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91774e-09
Minuit parameter uncertainties:
  1  48.3779
  2  15.4354
  3  0.00055
  4  1.2643e-07
  5  2.04488e-06
  6  33.7004
  7  1.87519
  8  0.000799643
  9  0.474522
  10  0.00192987
  11  5.61383e-06
  12  51.0022
  13  1.83077e-06
  14  0.000134359
  15  3.92045
  16  0.000170487
  17  19.6276
  18  0.000535864
  19  26.9997
  20  47.9979
  21  0.00029008
  22  20.8606
  23  22.4936
  24  2.20936
  25  9.90795e-06
  26  1.81818e-05
  27  9.64568
  28  3.30097
  29  5.27949e-05
  30  31.6311
  31  16.6037
  32  0.234958
  33  0.247133
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.359e-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:  6.281e-01  2.471e-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.010e+00  2.350e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595975/likelihoodResults_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.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) = 4535.3529641
delta logL = -2.61798086285e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4535.3529641
delta logL = -2.61793265963e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2401       1.0000          .0000       10.000    
     3 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62813       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=   4535.353     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      187 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    178.83        .90712E-02** at limit **
   2  Index         2.2686        6.1336        .24569       -.13761E-05
   3  Normalizat    1.0100        .17841        .46206E-01    .22655E-04
   4  Prefactor     .62813        .20198        .68155E-01   -.19054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26857
  Normalizat = 1.01004
  Prefactor  = 0.628133
 **********
 **   18 **HESSE 
 **********

 FCN=   4535.353     FROM HESSE     STATUS=OK            27 CALLS      214 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    174.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2686        6.1342        .98275E-02   -.57792    
   3  Normalizat    1.0100        .21064        .21536E-03   -.92695    
   4  Prefactor     .62813        .23807        .30162E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60229e-11
Minuit parameter uncertainties:
  1  0.00029987
  2  4.1886
  3  0.210814
  4  0.238455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595975': 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) = 4535.35293792
delta logL = 9.21954779187e-09

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.999e-04  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.269e+00  4.189e+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:  6.281e-01  2.385e-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.010e+00  2.108e-01  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/595975/cmap_HighResolution_426988801_427248001_4FGL_J1432.2+5051_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-09 23:39:47.992447', job_id='595975', GAL2='0.63', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631255987.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='9.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='724' AND source_name='4FGL J1432.2+5051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:39:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 595975: <4FGL_J1432.2+5051_daily_bin724> in cluster <slac> Done

Job <4FGL_J1432.2+5051_daily_bin724> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 23:26:14 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 23:26:15 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:26:15 2021
Terminated at Thu Sep  9 23:39:48 2021
Results reported at Thu Sep  9 23:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_daily_bin724 218.068 50.8596 426988801 427248001 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 :                                   624.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

