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


Performing analysis on: 4FGL_J1432.2+5051_monthly_bin122
RA = 218.068, Dec = 50.8596
tmin = 553219201, tmax = 555811201
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='806474', job_status='RUN', time_executed='2021-10-26 05:16:48.682700', time_epoch_executed='1635250608.68' WHERE source_name='4FGL J1432.2+5051' and cadence='monthly' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806474

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806474/ft1_4FGL_J1432.2+5051_monthly_bin122.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806474/ft1_4FGL_J1432.2+5051_monthly_bin122.fits outfile=/scratch/kocevski/806474/ft1_filteredMKT_4FGL_J1432.2+5051_monthly_bin122.fits ra=218.068 dec=50.8596 rad=12.0 tmin=553219201.0 tmax=555811201.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 28.35
user 27.63
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.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/806474/ft1_filteredMKT_4FGL_J1432.2+5051_monthly_bin122.fits evtable="EVENTS" outfile="/scratch/kocevski/806474/ft1_filtered_4FGL_J1432.2+5051_monthly_bin122.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.85
user 0.64
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806474/ft1_filtered_4FGL_J1432.2+5051_monthly_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/806474/ltcube_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.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/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.fits
.....................!
real 123.69
user 123.06
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806474/ft1_filtered_4FGL_J1432.2+5051_monthly_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/806474/ltcube_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.fits outfile=/scratch/kocevski/806474/expmap_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.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/806474/ltcube_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.fits
.....................!
real 192.09
user 185.98
sys 5.52

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/806474/ft1_filtered_4FGL_J1432.2+5051_monthly_bin122.fits scfile=/scratch/kocevski/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.fits outfile=/scratch/kocevski/806474/cmap_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.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 1.72
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806474/ft1_filtered_4FGL_J1432.2+5051_monthly_bin122.fits scfile=/scratch/kocevski/806474/ft2_4FGL_J1432.2+5051_monthly_bin122.fits outfile=/scratch/kocevski/806474/cmap_HighResolution_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.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.97
user 0.62
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2173       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7655       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1022       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0397       1.0000         .10000E-03   10000.    
     8 'norm      '    .10502E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8239       1.0000         .10000E-03   10000.    
    10 'Prefactor '    131.07       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11521E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7944       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7813       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.926       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6671       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.486       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8911       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9625       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7378       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3892       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8347       1.0000         .10000E-03   10000.    
    28 'norm      '    .54560       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .14266E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91786       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=   92345.64     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     4791 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.290        8.3996       -.96136E-06   -.26260E-04
   2  Prefactor     5.9425        4.1443       -.37547E-06   -.26878E-04
   3  Prefactor     9.2101        6.9805        .12252E-05    .21122E-04
   4  norm          1.7652        .92933        .11030E-06    .60381E-04
   5  Prefactor     11.116        11.581       -.15479E-05    .16469E-06
   6  Prefactor     3.1019        8.8703        .16585E-06    .73230E-05
   7  norm          3.0397        .41131       -.22603E-07   -.71814E-04
   8  norm          .10000E-03    3.9998       -.10248E-06** at limit **
   9  norm          4.8227        1.0925        .34783E-07    .45072E-04
  10  Prefactor     131.58        82.310        .14972E-05    .78436E-06
  11  Prefactor     25.310        10.077       -.28644E-05   -.17620E-05
  12  Prefactor     .10000E-03    7.4295        .55964E-07** at limit **
  13  Prefactor     .14016        .33608       -.62954E-07   -.59068E-03
  14  Prefactor     2.4668        3.6511        .13730E-06   -.80457E-03
  15  Prefactor     3.7940        .79543        .68468E-07    .16033E-03
  16  Prefactor     1.7936        5.8193       -.15140E-06    .67334E-04
  17  Prefactor     8.9314        6.1704        .14876E-07   -.14106E-03
  18  Prefactor     17.939        9.6225        .60653E-05    .42039E-04
  19  Prefactor     8.6553        5.6049       -.45648E-06   -.90827E-05
  20  Prefactor     3.9179        6.5885       -.22670E-05   -.53485E-05
  21  Prefactor     18.486        8.8722        .61983E-06    .40176E-05
  22  Prefactor     5.8917        3.2633       -.71807E-06   -.10836E-03
  23  Prefactor     2.9626        3.0727       -.11340E-06   -.34099E-04
  24  norm          2.7378        .42540       -.15713E-07   -.18675E-04
  25  Prefactor     .10000E-03    .33040       -.28848E-07** at limit **
  26  Prefactor     1.3898        1.0532       -.63799E-07   -.23565E-03
  27  Prefactor     2.8355        .91797       -.10032E-08   -.35461E-02
  28  norm          .54565        .50120        .16894E-07   -.29835E-03
  29  Prefactor     .10000E-03    .47011        .31151E-07** at limit **
  30  Prefactor     .10000E-03    2.8214        .27263E-07** at limit **
  31  Prefactor     .10000E-03    .60584       -.38447E-08** at limit **
  32  Normalizat    1.1751        .46323E-01    .98253E-07    .13460E-03
  33  Prefactor     .91784        .51558E-01   -.13656E-07    .16973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2898
  Prefactor  = 5.94255
  Prefactor  = 9.21006
  norm       = 1.76523
  Prefactor  = 11.1156
  Prefactor  = 3.10192
  norm       = 3.03975
  norm       = 0.0001
  norm       = 4.82266
  Prefactor  = 131.575
  Prefactor  = 25.3096
  Prefactor  = 0.0001
  Prefactor  = 0.140162
  Prefactor  = 2.46677
  Prefactor  = 3.79401
  Prefactor  = 1.79356
  Prefactor  = 8.93135
  Prefactor  = 17.9388
  Prefactor  = 8.65533
  Prefactor  = 3.91793
  Prefactor  = 18.4862
  Prefactor  = 5.89172
  Prefactor  = 2.96258
  norm       = 2.73778
  Prefactor  = 0.0001
  Prefactor  = 1.38976
  Prefactor  = 2.83547
  norm       = 0.545645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17508
  Prefactor  = 0.917843
 **********
 **   18 **HESSE 
 **********

 FCN=   92345.64     FROM HESSE     STATUS=OK           719 CALLS     5510 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.290        8.3745        .11014E-03   -1.4979    
   2  Prefactor     5.9425        4.0909        .16469E-03   -1.5220    
   3  Prefactor     9.2101        6.9566        .13201E-03   -1.5101    
   4  norm          1.7652        .91406        .18904E-03   -1.5442    
   5  Prefactor     11.116        11.569        .12037E-03   -1.5041    
   6  Prefactor     3.1019        8.8657        .23023E-03   -1.5356    
   7  norm          3.0397        .41104        .68741E-04   -1.5359    
   8  norm          .10000E-03    4.0174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8227        1.0898        .14282E-03   -1.5269    
  10  Prefactor     131.58        82.327        .35170E-04   -1.3409    
  11  Prefactor     25.310        10.068        .79617E-04   -1.4701    
  12  Prefactor     .10000E-03    7.6931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14016        .48379        .26089E-02   -1.5633    
  14  Prefactor     2.4668        4.1227        .13026E-02   -1.5394    
  15  Prefactor     3.7940        .78901        .10719E-03   -1.5318    
  16  Prefactor     1.7936        5.6834        .31356E-03   -1.5440    
  17  Prefactor     8.9314        6.1572        .67088E-03   -1.5110    
  18  Prefactor     17.939        9.6199        .94598E-04   -1.4861    
  19  Prefactor     8.6553        5.6074        .13616E-03   -1.5119    
  20  Prefactor     3.9179        6.4677        .20338E-03   -1.5312    
  21  Prefactor     18.486        8.8719        .93153E-04   -1.4848    
  22  Prefactor     5.8917        3.2540        .16545E-03   -1.5222    
  23  Prefactor     2.9626        3.0439        .23592E-03   -1.5364    
  24  norm          2.7378        .42375        .74207E-04   -1.5377    
  25  Prefactor     .10000E-03    1.5420        .32911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.3898        1.0370        .25896E-03   -1.5472    
  27  Prefactor     2.8355        1.8421        .12076E-02   -1.5371    
  28  norm          .54565        .46430        .19796E-02   -1.5560    
  29  Prefactor     .10000E-03    .48492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .61195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1751        .56222E-01    .22128E-03   -.87376    
  33  Prefactor     .91784        .60843E-01    .28751E-03   -.95520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01303e-06
Minuit parameter uncertainties:
  1  8.37527
  2  4.0911
  3  6.95723
  4  0.914071
  5  11.571
  6  8.86948
  7  0.411039
  8  2.42485e-08
  9  1.08982
  10  82.3984
  11  10.0687
  12  4.57212e-06
  13  0.483807
  14  4.12318
  15  0.789015
  16  5.68513
  17  6.15767
  18  9.62078
  19  5.60771
  20  6.46885
  21  8.87255
  22  3.25409
  23  3.04405
  24  0.42375
  25  1.5833e-05
  26  1.03699
  27  1.84215
  28  0.464306
  29  5.15162e-07
  30  1.4739e-06
  31  3.91461e-07
  32  0.0562244
  33  0.060848
Done.

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

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  1.794e+01  9.621e+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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.178e-01  6.085e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.175e+00  5.622e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 218.068 50.860
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 8.90e-09 +/- 4.77e-09
Energy Flux (Fixed Index): 3.72e-06 +/- 1.99e-06

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) = 92345.3561999
delta logL = 0.280618772376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 92345.3118074
delta logL = 0.32501128588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.203       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9147       1.0000          .0000       10.000    
     3 'Normalizat'    1.1785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91609       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=   92345.31     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      232 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.203        51.371        .21746E-02   -.38954E-03
   2  Index         1.9147        .27293        .50000        .11823E-04
   3  Normalizat    1.1785        .50140E-02    .35443E-01    .71571E-04
   4  Prefactor     .91609        .57775E-02    .65060E-01    .23318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2033
  Index      = 1.91468
  Normalizat = 1.17845
  Prefactor  = 0.916093
 **********
 **   18 **HESSE 
 **********

 FCN=   92345.31     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.203        11.519        .86984E-04   -1.4787    
   2  Index         1.9147        .39265        .45786E-02   -.66501    
   3  Normalizat    1.1785        .51349E-01    .22101E-03   -.87271    
   4  Prefactor     .91609        .59913E-01    .28776E-03   -.95581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00366e-10
Minuit parameter uncertainties:
  1  11.5197
  2  0.393306
  3  0.0513512
  4  0.0599173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806474': 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) = 92345.3118074
delta logL = 0.325011299239

Extracting fit parameters...

4FGL J1432.2+5051
   Spectrum: PowerLaw
319    Prefactor:  2.120e+01  1.152e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.915e+00  3.933e-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:  9.161e-01  5.992e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.178e+00  5.135e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.29
Ra Dec: 218.068 50.860
Photon Index (Free Index): 1.91 +/- 0.39
Photon Flux (Free Index): 5.60e-09 +/- 4.76e-09
Energy Flux (Free Index): 4.83e-06 +/- 3.27e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/806474/cmap_HighResolution_553219201_555811201_4FGL_J1432.2+5051_monthly_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.90e-09', energy_flux2='4.83e-06', photon_flux_error='4.77e-09', dlogl='3.25e-01', energy_flux='3.72e-06', photon_flux2='5.60e-09', job_status='DONE', time_completed='2021-10-26 08:02:32.023882', photon_index_error2='0.39', photon_index2='1.91', ts='6.63', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='3.27e-06', EG='1.18', time_epoch_completed='1635260552.02', return_code='0', job_id='806474', GAL2='0.92', EG2='1.18', return_code2='0', energy_flux_error='1.99e-06', photon_flux_error2='4.76e-09', ts2='7.29', photon_index='2.24' WHERE bin_id='122' AND source_name='4FGL J1432.2+5051' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 26 08:02:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 806474: <4FGL_J1432.2+5051_monthly_bin122> in cluster <slac> Done

Job <4FGL_J1432.2+5051_monthly_bin122> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Oct 26 05:15:18 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 26 05:15:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 26 05:15:19 2021
Terminated at Tue Oct 26 08:02:33 2021
Results reported at Tue Oct 26 08:02:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1432.2+5051_monthly_bin122 218.068 50.8596 553219201 555811201 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 :                                   9841.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             430.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10037 sec.
    Turnaround time :                            10035 sec.

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

