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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin635
RA = 324.062, Dec = 0.5488
tmin = 403920001, tmax = 404179201
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='611996', job_status='RUN', time_executed='2021-09-26 20:22:37.848807', time_epoch_executed='1632712957.85' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611996

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611996/ft1_4FGL_J2136.2+0032_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611996/ft1_4FGL_J2136.2+0032_daily_bin635.fits outfile=/scratch/kocevski/611996/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin635.fits ra=324.062 dec=0.5488 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.23
user 9.87
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.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/611996/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/611996/ltcube_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.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/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits
.....................!
real 10.85
user 10.41
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/611996/ltcube_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.fits outfile=/scratch/kocevski/611996/expmap_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.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/611996/ltcube_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.fits
.....................!
real 192.41
user 185.93
sys 5.47

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/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.fits scfile=/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits outfile=/scratch/kocevski/611996/cmap_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.fits scfile=/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits outfile=/scratch/kocevski/611996/cmap_HighResolution_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.fits', '/scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits', expMap='/scratch/kocevski/611996/expmap_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.fits', expCube='/scratch/kocevski/611996/ltcube_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611996/Model_4FGL_J2136.2+0032_daily_bin635.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  1.000e-04  1.000e+04 ( 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/611996/ft1_filtered_4FGL_J2136.2+0032_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/611996/ft2_4FGL_J2136.2+0032_daily_bin635.fits
Exposure map: /scratch/kocevski/611996/expmap_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.fits
Exposure cube: /scratch/kocevski/611996/ltcube_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611996/Model_4FGL_J2136.2+0032_daily_bin635.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) = 3219.74117356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.263       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18662E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9475       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.526       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6382       1.0000         .10000E-03   10000.    
    16 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4012       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70447       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.

 FCN=   3219.722     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2929 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3772        .97453E-08** at limit **
   2  Prefactor     28.389        58.430        .57010E-05    .23933E-04
   3  Prefactor     .10000E-03    203.50        .19824E-04** at limit **
   4  Prefactor     .10000E-03    68.594        .34455E-06** at limit **
   5  Prefactor     38.906        98.226       -.12011E-05   -.41341E-05
   6  Prefactor     .10000E-03    12.793       -.31182E-06** at limit **
   7  Prefactor     9.9920        138.82       -.54230E-05   -.72576E-05
   8  Prefactor     4.9475        11.370       -.44896E-06   -.81557E-04
   9  Prefactor     .10000E-03    4.4021        .40145E-07** at limit **
  10  Prefactor     .10000E-03    2.9954       -.30111E-06** at limit **
  11  Prefactor     .10000E-03    18.218       -.12345E-06** at limit **
  12  Prefactor     13.634        144.76        .69226E-05    .11731E-04
  13  Prefactor     .10000E-03    67.136       -.68112E-06** at limit **
  14  Prefactor     .10000E-03    30.233        .32228E-06** at limit **
  15  norm          4.6391        2.9948       -.54428E-08   -.24022E-04
  16  norm          .10000E-03    25.737        .24928E-06** at limit **
  17  Prefactor     .10000E-03    3.6789        .49797E-07** at limit **
  18  Prefactor     13.706        19.818       -.11521E-06   -.14611E-04
  19  Prefactor     .10000E-03    10.186        .48071E-06** at limit **
  20  Prefactor     .10000E-03    68.752        .12003E-05** at limit **
  21  Prefactor     .10000E-03    10.112       -.26178E-06** at limit **
  22  Prefactor     .10000E-03    13.826        .43721E-06** at limit **
  23  Prefactor     .10000E-03    5.7508        .32454E-07** at limit **
  24  Normalizat    1.4012        .33342        .48586E-06   -.16859E-03
  25  Prefactor     .70440        .15876       -.88822E-06    .23310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.3892
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 38.9056
  Prefactor  = 0.0001
  Prefactor  = 9.99198
  Prefactor  = 4.94748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.63908
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40118
  Prefactor  = 0.704401
 **********
 **   18 **HESSE 
 **********

 FCN=   3219.722     FROM HESSE     STATUS=OK           417 CALLS     3346 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3798        .85443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.389        58.394        .75359E-04   -1.4642    
   3  Prefactor     .10000E-03    200.60        .58636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    69.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.906        98.370        .64256E-04   -1.4460    
   6  Prefactor     .10000E-03    12.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9920        135.12        .12713E-03   -1.5076    
   8  Prefactor     4.9475        11.378        .90406E-03   -1.5263    
   9  Prefactor     .10000E-03    4.4096        .11628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0045        .94993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.634        144.27        .10891E-03   -1.4969    
  13  Prefactor     .10000E-03    67.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6391        2.9960        .75525E-04   -1.5277    
  16  norm          .10000E-03    26.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6881        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.706        19.820        .10822E-03   -1.4967    
  19  Prefactor     .10000E-03    10.208        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    70.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.118        .17620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7535        .13290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4012        .39074        .28050E-03   -.80594    
  25  Prefactor     .70440        .18240        .18835E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2842e-10
Minuit parameter uncertainties:
  1  4.66869e-07
  2  58.5121
  3  0.00133441
  4  9.19022e-05
  5  98.7839
  6  5.81398e-07
  7  73.6906
  8  11.3827
  9  8.52296e-07
  10  8.18868e-07
  11  1.06398e-05
  12  88.9776
  13  1.1105e-05
  14  2.98494e-05
  15  2.99611
  16  4.71013e-05
  17  3.64705e-06
  18  19.829
  19  1.50759e-05
  20  0.000214211
  21  5.93951e-07
  22  1.35473e-05
  23  1.03219e-06
  24  0.391576
  25  0.182553
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.064e-05  1.000e-04  1.000e+04 ( 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:  7.044e-01  1.826e-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:  1.401e+00  3.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/611996/likelihoodResults_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3219.72176928
delta logL = -0.000260991550476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3219.72151276
delta logL = -4.46733429271e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6069       1.0000          .0000       10.000    
     3 'Normalizat'    1.4012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70441       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.

 FCN=   3219.003     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      331 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53558E-01    2.6965        .28658E-02   -.35437E-02
   2  Index        10.0000        5.7370        .50000    ** at limit **
   3  Normalizat    1.2755        .19083        .28051E-02   -.20341E-03
   4  Prefactor     .74738        .92478E-01    .18835E-02   -.32195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0535581
  Index      = 10
  Normalizat = 1.27552
  Prefactor  = 0.747383
 **********
 **   18 **HESSE 
 **********

 FCN=   3219.003     FROM HESSE     STATUS=OK            31 CALLS      362 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53558E-01    .55675E-01    .13007E-03   -1.5662    
   2  Index        10.0000        8.0305        .46753E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2755        .37557        .11220E-03   -.84300    
   4  Prefactor     .74738        .18422        .75339E-04   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16699e-10
Minuit parameter uncertainties:
  1  0.0556754
  2  2.76587e-06
  3  0.376377
  4  0.184373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611996': 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) = 3219.00283031
delta logL = 0.718677986853

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.356e-02  5.568e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.000e+01  2.766e-06  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:  7.474e-01  1.844e-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:  1.276e+00  3.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 324.062 0.549
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 9.46e-08 +/- 9.53e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.07e-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/611996/cmap_HighResolution_403920001_404179201_4FGL_J2136.2+0032_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='7.19e-01', photon_flux2='9.46e-08', job_status='DONE', time_completed='2021-09-26 20:31:55.417807', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.07e-05', EG='1.40', time_epoch_completed='1632713515.42', return_code='0', job_id='611996', GAL2='0.75', EG2='1.28', return_code2='0', photon_flux_error2='9.53e-08', ts2='1.54', photon_index='2.88' WHERE bin_id='635' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:31:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 611996: <4FGL_J2136.2+0032_daily_bin635> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 20:15:19 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:20:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 20:20:06 2021
Terminated at Sun Sep 26 20:31:56 2021
Results reported at Sun Sep 26 20:31:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin635 324.062 0.5488 403920001 404179201 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            997 sec.

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

