/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 40 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2136.2+0032_daily_bin353
RA = 324.062, Dec = 0.5488
tmin = 330825601, tmax = 331084801
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='610463', job_status='RUN', time_executed='2021-09-26 20:13:56.680000', time_epoch_executed='1632712436.68' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610463/ft1_4FGL_J2136.2+0032_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610463/ft1_4FGL_J2136.2+0032_daily_bin353.fits outfile=/scratch/kocevski/610463/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin353.fits ra=324.062 dec=0.5488 rad=12.0 tmin=330825601.0 tmax=331084801.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.39
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610463/ft1_filtered_4FGL_J2136.2+0032_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/610463/ltcube_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.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/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits
.....................!
real 14.01
user 13.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610463/ft1_filtered_4FGL_J2136.2+0032_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/610463/ltcube_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.fits outfile=/scratch/kocevski/610463/expmap_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.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/610463/ltcube_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.fits
.....................!
real 194.00
user 187.85
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 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/610463/ft1_filtered_4FGL_J2136.2+0032_daily_bin353.fits scfile=/scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits outfile=/scratch/kocevski/610463/cmap_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610463/ft1_filtered_4FGL_J2136.2+0032_daily_bin353.fits scfile=/scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits outfile=/scratch/kocevski/610463/cmap_HighResolution_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/610463/ft1_filtered_4FGL_J2136.2+0032_daily_bin353.fits', '/scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits', expMap='/scratch/kocevski/610463/expmap_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.fits', expCube='/scratch/kocevski/610463/ltcube_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/610463/Model_4FGL_J2136.2+0032_daily_bin353.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/610463/ft1_filtered_4FGL_J2136.2+0032_daily_bin353.fits
Spacecraft file(s): /scratch/kocevski/610463/ft2_4FGL_J2136.2+0032_daily_bin353.fits
Exposure map: /scratch/kocevski/610463/expmap_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.fits
Exposure cube: /scratch/kocevski/610463/ltcube_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/610463/Model_4FGL_J2136.2+0032_daily_bin353.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) = 5442.15375904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.989       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.428       1.0000         .10000E-03   10000.    
    15 'norm      '    12.296       1.0000         .10000E-03   10000.    
    16 'norm      '    29.271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0036       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.372       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7694       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49010       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89184       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=   5442.150     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2943 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    3.4563       -.25695E-05** at limit **
   2  Prefactor     .10000E-03    37.609       -.53125E-06** at limit **
   3  Prefactor     33.983        19.920       -.48252E-07    .24325E-04
   4  Prefactor     .10000E-03    17.995        .32360E-06** at limit **
   5  Prefactor     74.744        61.837        .41382E-06    .98208E-04
   6  Prefactor     .10000E-03    6.6497       -.10417E-05** at limit **
   7  Prefactor     39.533        45.319        .15290E-05    .17924E-03
   8  Prefactor     2.2394        5.1018       -.10780E-05    .12908E-03
   9  Prefactor     4.3356        4.4343       -.13541E-06   -.10206E-03
  10  Prefactor     2.3873        2.3192       -.23857E-06   -.10827E-03
  11  Prefactor     .10000E-03    7.1312        .60352E-06** at limit **
  12  Prefactor     .10000E-03    51.276       -.43554E-06** at limit **
  13  Prefactor     .10000E-03    49.682       -.47235E-06** at limit **
  14  Prefactor     48.421        37.676        .69689E-06    .10962E-03
  15  norm          12.295        3.6424       -.73886E-07    .17107E-03
  16  norm          29.270        18.383       -.99187E-07    .30015E-04
  17  Prefactor     6.3120        6.1720       -.58466E-06    .19250E-03
  18  Prefactor     .10000E-03    5.1764       -.38079E-06** at limit **
  19  Prefactor     4.0025        10.711       -.39582E-06    .48548E-04
  20  Prefactor     .32963        99.199       -.23939E-04    .17195E-03
  21  Prefactor     20.384        18.373        .21212E-05    .18373E-03
  22  Prefactor     2.7590        66.182       -.98897E-06    .42490E-04
  23  Prefactor     .10000E-03    11.865       -.96900E-06** at limit **
  24  Normalizat    .49012        .24215        .19874E-05    .14862E-03
  25  Prefactor     .89187        .11697        .23344E-06    .21007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 33.9829
  Prefactor  = 0.0001
  Prefactor  = 74.7444
  Prefactor  = 0.0001
  Prefactor  = 39.5329
  Prefactor  = 2.23939
  Prefactor  = 4.33556
  Prefactor  = 2.38726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4211
  norm       = 12.2948
  norm       = 29.2697
  Prefactor  = 6.31199
  Prefactor  = 0.0001
  Prefactor  = 4.00255
  Prefactor  = 0.329632
  Prefactor  = 20.3842
  Prefactor  = 2.759
  Prefactor  = 0.0001
  Normalizat = 0.49012
  Prefactor  = 0.891868
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.150     FROM HESSE     STATUS=OK           427 CALLS     3370 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6.1755        .25251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.983        19.905        .68735E-04   -1.4541    
   4  Prefactor     .10000E-03    18.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.744        61.861        .46438E-04   -1.3977    
   6  Prefactor     .10000E-03    6.6933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.533        45.439        .63734E-04   -1.4450    
   8  Prefactor     2.2394        5.0763        .24254E-03   -1.5409    
   9  Prefactor     4.3356        4.4372        .15262E-03   -1.5291    
  10  Prefactor     2.3873        2.3109        .10035E-03   -1.5399    
  11  Prefactor     .10000E-03    7.1329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.421        37.634        .57622E-04   -1.4315    
  15  norm          12.295        3.6355        .70715E-04   -1.5007    
  16  norm          29.270        18.380        .74053E-04   -1.4625    
  17  Prefactor     6.3120        6.1514        .79888E-03   -1.5205    
  18  Prefactor     .10000E-03    5.2200        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0025        10.680        .20156E-03   -1.5308    
  20  Prefactor     .32963        117.20        .43885E-02   -1.5593    
  21  Prefactor     20.384        18.513        .88739E-04   -1.4805    
  22  Prefactor     2.7590        66.493        .24456E-03   -1.5376    
  23  Prefactor     .10000E-03    12.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .49012        .27012        .40478E-03   -1.1288    
  25  Prefactor     .89187        .13306        .15752E-03   -.96426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42945e-09
Minuit parameter uncertainties:
  1  0.000705881
  2  0.000223621
  3  19.9089
  4  1.07162e-05
  5  61.9146
  6  0.000115503
  7  45.4787
  8  5.07726
  9  4.43751
  10  2.31101
  11  4.92159e-05
  12  0.000253675
  13  0.000114717
  14  37.6522
  15  3.63555
  16  18.3832
  17  6.15201
  18  2.19894e-05
  19  10.6847
  20  12.4538
  21  18.5182
  22  27.1224
  23  7.45963e-05
  24  0.270842
  25  0.133105
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.922e-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:  8.919e-01  1.331e-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:  4.901e-01  2.708e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/610463/likelihoodResults_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.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) = 5442.15098601
delta logL = -0.000666483845635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5442.15031953
delta logL = 7.694325177e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8758       1.0000          .0000       10.000    
     3 'Normalizat'    .49012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89187       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=   5442.150     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    769.71        .18142E-02** at limit **
   2  Index         2.7563        5.9920        .50000       -.33151E-07
   3  Normalizat    .49012        .65667E-01    .40477E-03   -.16594E-03
   4  Prefactor     .89187        .34182E-01    .15752E-03   -.44148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.75627
  Normalizat = 0.490117
  Prefactor  = 0.891868
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.150     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7563        7.4217        .50000       -.46536    
   3  Normalizat    .49012        .25291        .16191E-04   -1.1288    
   4  Prefactor     .89187        .13190        .31503E-04   -.96426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12575e-10
Minuit parameter uncertainties:
  1  2.26849e-05
  2  379.378
  3  0.253508
  4  0.131943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610463': 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) = 5442.1503195
delta logL = 2.91083779302e-08

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.268e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.756e+00  3.794e+02  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.919e-01  1.319e-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:  4.901e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.062 0.549

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/610463/cmap_HighResolution_330825601_331084801_4FGL_J2136.2+0032_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-26 20:25:00.073333', job_id='610463', GAL2='0.89', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1632713100.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='353' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:25:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 610463: <4FGL_J2136.2+0032_daily_bin353> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin353> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 20:10:16 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:13:07 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:13:07 2021
Terminated at Sun Sep 26 20:25:00 2021
Results reported at Sun Sep 26 20:25:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin353 324.062 0.5488 330825601 331084801 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 :                                   659.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            884 sec.

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

