aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 59 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1748
RA = 324.062, Dec = 0.5488
tmin = 692409601, tmax = 692668801
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='896914', job_status='RUN', time_executed='2022-12-14 01:16:37.564142', time_epoch_executed='1671009397.56' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896914/ft1_4FGL_J2136.2+0032_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896914/ft1_4FGL_J2136.2+0032_daily_bin1748.fits outfile=/scratch/kocevski/896914/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1748.fits ra=324.062 dec=0.5488 rad=12.0 tmin=692409601.0 tmax=692668801.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.56
user 3.34
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.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/896914/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 531

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/896914/ltcube_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.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/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits
.....................!
real 12.00
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/896914/ltcube_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.fits outfile=/scratch/kocevski/896914/expmap_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.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/896914/ltcube_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.fits
.....................!
real 190.27
user 184.96
sys 4.93

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J2136.2+0032 @ 324.062 0.5488

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits scfile=/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits outfile=/scratch/kocevski/896914/cmap_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.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=324.062 yref=0.5488 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits scfile=/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits outfile=/scratch/kocevski/896914/cmap_HighResolution_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.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=324.062 yref=0.5488 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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/896914/Model_4FGL_J2136.2+0032_daily_bin1748.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/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits.....................!
real 59.80
user 58.34
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits', '/scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits', expMap='/scratch/kocevski/896914/expmap_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.fits', expCube='/scratch/kocevski/896914/ltcube_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/896914/Model_4FGL_J2136.2+0032_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.2+0032'

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  8.984e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/896914/ft1_filtered_4FGL_J2136.2+0032_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/896914/ft2_4FGL_J2136.2+0032_daily_bin1748.fits
Exposure map: /scratch/kocevski/896914/expmap_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.fits
Exposure cube: /scratch/kocevski/896914/ltcube_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/896914/Model_4FGL_J2136.2+0032_daily_bin1748.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) = 5816.17051996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49530E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .46055E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22717E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    26.760       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15472E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7224       1.0000          .0000       .10000E+07
     7 'Prefactor '    .24692E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.9223       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.5712       1.0000          .0000       .10000E+07
    10 'Prefactor '    48.844       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.066       1.0000          .0000       .10000E+07
    12 'norm      '    3.0090       1.0000          .0000       .10000E+07
    13 'norm      '    6.7484       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10492E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22356E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .88710       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.5123       1.0000          .0000       .10000E+07
    18 'Prefactor '    .48235E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .88130       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5816.161     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1524 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.1871        .11664E-06** at limit **
   2  Prefactor     .69778E-07    6.2605        .30838E-05** at limit **
   3  Prefactor     .81435E-07    6.2401       -.42012E-05** at limit **
   4  Prefactor     26.248        10.198        .32849E-06   -.37782E-01
   5  Prefactor     .22204E-09    23.027       -.90099E-06** at limit **
   6  Prefactor     9.1009        116.37       -.17758E-05   -.22995E-01
   7  Prefactor     .27756E-09    5.5272       -.85450E-07** at limit **
   8  Prefactor     7.9173        9.0799       -.15034E-07    .48404E-03
   9  Prefactor     7.4507        4.0898       -.11047E-06    .14555E-01
  10  Prefactor     49.244        33.325        .62846E-06   -.11435    
  11  Prefactor     14.407        28.056       -.11970E-05    .67324E-01
  12  norm          3.0159        2.1350        .45461E-07    .13426E-02
  13  norm          6.5102        5.6828        .12468E-05   -.42887E-01
  14  Prefactor     .27756E-09    2.8141       -.15714E-06** at limit **
  15  Prefactor     .22204E-09    17.570       -.11284E-05** at limit **
  16  Prefactor     .99388        26.347        .32043E-05    .67870E-02
  17  Prefactor     1.5879        14.616        .11470E-05   -.15000E-02
  18  Prefactor     .55511E-09    8.0494        .58855E-06** at limit **
  19  Normalizat    .87776        .27573        .68829E-05    .30853E-03
  20  Prefactor     .86368        .13381       -.51018E-05    .31910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 6.97775e-08
  Prefactor  = 8.14349e-08
  Prefactor  = 26.2482
  Prefactor  = 2.22045e-10
  Prefactor  = 9.10086
  Prefactor  = 2.77556e-10
  Prefactor  = 7.9173
  Prefactor  = 7.45068
  Prefactor  = 49.2441
  Prefactor  = 14.4073
  norm       = 3.01593
  norm       = 6.51023
  Prefactor  = 2.77556e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 0.993876
  Prefactor  = 1.58787
  Prefactor  = 5.55112e-10
  Normalizat = 0.877755
  Prefactor  = 0.863676
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.161     FROM HESSE     STATUS=OK           335 CALLS     1859 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.1821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .69778E-07    6.3334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .81435E-07    6.3099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.248        42.666        .19335E-03   -1.5605    
   5  Prefactor     .22204E-09    22.418        .17355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1009        131.18        .41965E-03   -1.5648    
   7  Prefactor     .27756E-09    5.4891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9173        9.1014        .35600E-03   -1.5652    
   9  Prefactor     7.4507        4.3314        .36423E-03   -1.5653    
  10  Prefactor     49.244        38.037        .14310E-03   -1.5568    
  11  Prefactor     14.407        52.080        .27685E-03   -1.5632    
  12  norm          3.0159        2.1762        .58485E-03   -1.5673    
  13  norm          6.5102        21.767        .38602E-03   -1.5657    
  14  Prefactor     .27756E-09    2.8146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    17.481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .99388        26.418        .46656E-03   -1.5688    
  17  Prefactor     1.5879        14.791        .86928E-03   -1.5683    
  18  Prefactor     .55511E-09    8.0323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87776        .23477        .73770E-01   -.97246    
  20  Prefactor     .86368        .11078        .44532E-01   -.97422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45594e-06
Minuit parameter uncertainties:
  1  2.19531e-05
  2  0.00132941
  3  0.0014338
  4  42.6665
  5  0.000134067
  6  69.1056
  7  8.15217e-05
  8  9.10143
  9  4.33144
  10  38.0375
  11  52.0818
  12  2.17617
  13  21.7671
  14  5.61786e-05
  15  0.000127948
  16  10.2481
  17  9.69257
  18  0.000132715
  19  0.23504
  20  0.110812
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.924e+01  3.804e+01  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.637e-01  1.108e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  8.778e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 8.17e-08 +/- 6.30e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.34e-05

TS (Fixed Index): 2.73
Ra Dec: 324.062 0.549
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896914/likelihoodResults_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.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) = 5816.09843406
delta logL = 0.0622394922102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5816.09134379
delta logL = 0.069329767216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.805       1.0000          .0000       .10000E+07
     2 'Index     '    3.5271       1.0000          .0000       10.000    
     3 'Normalizat'    .84417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5816.091     FROM MIGRAD    STATUS=FAILED        94 CALLS      302 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.864        107.30        .65063E-05   -.40888E-03
   2  Index         3.5241        3.6284        .11923E-01    .31021E-03
   3  Normalizat    .84404        .30231        .33219E-03   -.23101E-04
   4  Prefactor     .87795        .15074        .16565E-03   -.64045E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5816.091     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      374 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.864        107.30        .43580E-04   -1.5585    
   2  Index         3.5241        3.6284        .24027E-02   -.29964    
   3  Normalizat    .84404        .30231        .49056E-03   -.98455    
   4  Prefactor     .87795        .15074        .19319E-03   -.96916    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5816.091     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      409 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.864        65.186        .26025E-06   -.18602E-03
   2  Index         3.5241        2.3865        .23847E-02   -.37424E-05
   3  Normalizat    .84404        .28277        .13287E-04   -.13690E-04
   4  Prefactor     .87795        .14095        .33130E-04   -.38776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.8636
  Index      = 3.52414
  Normalizat = 0.844042
  Prefactor  = 0.877948
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.091     FROM HESSE     STATUS=OK            23 CALLS      432 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.864        61.003        .37157E-06   -1.5585    
   2  Index         3.5241        2.2455        .95388E-04   -.29964    
   3  Normalizat    .84404        .28153        .26575E-05   -.98455    
   4  Prefactor     .87795        .14030        .66261E-05   -.96916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65456e-12
Minuit parameter uncertainties:
  1  61.004
  2  2.33768
  3  0.282024
  4  0.140361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896914': 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) = 5816.09134234
delta logL = 0.0693312110061

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.786e+01  6.100e+01  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  3.524e+00  2.338e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.779e-01  1.404e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  8.440e-01  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 324.062 0.549
Photon Index (Free Index): 3.52 +/- 2.34
Photon Flux (Free Index): 1.01e-07 +/- 8.25e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/896914/cmap_HighResolution_692409601_692668801_4FGL_J2136.2+0032_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='8.17e-08', energy_flux2='1.67e-05', photon_flux_error='6.30e-08', dlogl='6.93e-02', energy_flux='1.74e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2022-12-14 01:25:32.864524', photon_index_error2='2.34', photon_index2='3.52', ts='2.73', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='1.22e-05', EG='0.88', time_epoch_completed='1671009932.86', return_code='0', job_id='896914', GAL2='0.88', EG2='0.84', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='8.25e-08', ts2='2.98', photon_index='2.88' WHERE bin_id='1748' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:25:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 896914: <4FGL_J2136.2+0032_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1748> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec 14 01:15:24 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:15:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:15:25 2022
Terminated at Wed Dec 14 01:25:33 2022
Results reported at Wed Dec 14 01:25:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1748 324.062 0.5488 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2136.2+0032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            609 sec.

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

