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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin974
RA = 324.062, Dec = 0.5488
tmin = 491788801, tmax = 492048001
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='613630', job_status='RUN', time_executed='2021-09-26 20:27:38.110374', time_epoch_executed='1632713258.11' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613630/ft1_4FGL_J2136.2+0032_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613630/ft2_4FGL_J2136.2+0032_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613630/ft1_4FGL_J2136.2+0032_daily_bin974.fits outfile=/scratch/kocevski/613630/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin974.fits ra=324.062 dec=0.5488 rad=12.0 tmin=491788801.0 tmax=492048001.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.51
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613630/ft2_4FGL_J2136.2+0032_daily_bin974.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/613630/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/613630/ft1_filtered_4FGL_J2136.2+0032_daily_bin974.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613630/ft1_filtered_4FGL_J2136.2+0032_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/613630/ft2_4FGL_J2136.2+0032_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/613630/ltcube_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.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/613630/ft2_4FGL_J2136.2+0032_daily_bin974.fits
.....................!
real 10.15
user 9.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613630/ft1_filtered_4FGL_J2136.2+0032_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/613630/ft2_4FGL_J2136.2+0032_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/613630/ltcube_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.fits outfile=/scratch/kocevski/613630/expmap_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.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/613630/ltcube_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.fits
.....................!
real 156.22
user 151.72
sys 4.17

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/613630/ft1_filtered_4FGL_J2136.2+0032_daily_bin974.fits scfile=/scratch/kocevski/613630/ft2_4FGL_J2136.2+0032_daily_bin974.fits outfile=/scratch/kocevski/613630/cmap_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613630/ft1_filtered_4FGL_J2136.2+0032_daily_bin974.fits scfile=/scratch/kocevski/613630/ft2_4FGL_J2136.2+0032_daily_bin974.fits outfile=/scratch/kocevski/613630/cmap_HighResolution_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.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.49
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    149.19       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.291       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2627       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    339.86       1.0000         .10000E-03   10000.    
    14 'Prefactor '    151.38       1.0000         .10000E-03   10000.    
    15 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.496       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.355       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2463       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=   1806.806     FROM MIGRAD    STATUS=CONVERGED     73 CALLS     2495 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.816        1.0191       -.67793E-08   -.12302E-03
   2  Prefactor     .10143E-03    37.764       -.23068E-05** at limit **
   3  Prefactor     .13719E-03    73.247       -.22465E-05** at limit **
   4  Prefactor     149.19        1.0046       -.79838E-09    .37746E-03
   5  Prefactor     .10397E-03    18.350       -.28307E-05** at limit **
   6  Prefactor     29.292        1.0082        .20471E-08   -.23559E-03
   7  Prefactor     .10003E-03    34.165       -.76713E-06** at limit **
   8  Prefactor     .10083E-03    22.802       -.19540E-05** at limit **
   9  Prefactor     5.2625        8.1433        .87970E-07    .11856E-02
  10  Prefactor     .10000E-03    2.5162       -.53633E-06** at limit **
  11  Prefactor     49.540        1.1154        .65366E-08   -.11298E-02
  12  Prefactor     35.982        1.5038        .18890E-07   -.20058E-02
  13  Prefactor     339.86        1.0010        .14571E-09   -.30126E-03
  14  Prefactor     151.38        1.0468       -.29023E-08    .12653E-02
  15  norm          .10007E-03    16.498       -.26815E-05** at limit **
  16  norm          .10044E-03    15.167       -.26007E-05** at limit **
  17  Prefactor     .10000E-03    20.565       -.22219E-05** at limit **
  18  Prefactor     53.076        1.0751       -.74081E-08    .56253E-03
  19  Prefactor     .10604E-03    18.306       -.23965E-05** at limit **
  20  Prefactor     37.497        1.0606        .34421E-08   -.75662E-03
  21  Prefactor     .10079E-03    17.566       -.27408E-05** at limit **
  22  Prefactor     .10610E-03    18.712       -.23920E-05** at limit **
  23  Prefactor     21.352        1.0269       -.84407E-08   -.47881E-04
  24  Normalizat    .10000E-01    7.2358       -.83030E-04** at limit **
  25  Prefactor     1.2463        .13333        .40130E-06    .47290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8156
  Prefactor  = 0.000101427
  Prefactor  = 0.000137192
  Prefactor  = 149.188
  Prefactor  = 0.000103969
  Prefactor  = 29.2915
  Prefactor  = 0.000100033
  Prefactor  = 0.000100829
  Prefactor  = 5.2625
  Prefactor  = 0.0001
  Prefactor  = 49.5397
  Prefactor  = 35.9823
  Prefactor  = 339.856
  Prefactor  = 151.376
  norm       = 0.000100072
  norm       = 0.00010044
  Prefactor  = 0.000100001
  Prefactor  = 53.0763
  Prefactor  = 0.00010604
  Prefactor  = 37.4966
  Prefactor  = 0.000100794
  Prefactor  = 0.000106102
  Prefactor  = 21.3522
  Normalizat = 0.01
  Prefactor  = 1.24632
 **********
 **   18 **HESSE 
 **********

 FCN=   1806.806     FROM HESSE     STATUS=OK           473 CALLS     2968 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.816        22.019        .21946E-02   -1.4795    
   2  Prefactor     .10143E-03    125.82        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13719E-03    172.49        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     149.19        221.19        .82489E-03   -1.3259    
   5  Prefactor     .10397E-03    62.128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.292        88.089        .18507E-02   -1.4625    
   7  Prefactor     .10003E-03    34.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10083E-03    43.201        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2625        8.2433        .43803E-02   -1.5249    
  10  Prefactor     .10000E-03    2.5061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.540        84.809        .14244E-02   -1.4299    
  12  Prefactor     35.982        64.306        .16704E-02   -1.4508    
  13  Prefactor     339.86        789.08        .55190E-03   -1.2000    
  14  Prefactor     151.38        204.39        .81900E-03   -1.3241    
  15  norm          .10007E-03    18.129        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10044E-03    79.481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.076        39.054        .13763E-02   -1.4250    
  19  Prefactor     .10604E-03    100.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.497        55.321        .16363E-02   -1.4483    
  21  Prefactor     .10079E-03    69.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10610E-03    101.21        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.352        26.509        .21669E-02   -1.4783    
  24  Normalizat    .10000E-01    .66419        .32198       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2463        .21691        .33618E-01   -.84918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97685e-07
Minuit parameter uncertainties:
  1  22.0279
  2  0.0268555
  3  0.160655
  4  222.434
  5  0.0314388
  6  88.4833
  7  0.00212986
  8  0.0119808
  9  8.2451
  10  1.65648e-05
  11  85.0163
  12  64.4299
  13  816.423
  14  205.361
  15  0.00228828
  16  0.0118396
  17  0.000461743
  18  39.0733
  19  0.0493061
  20  55.3969
  21  0.0149116
  22  0.049787
  23  26.5237
  24  4.38959e-05
  25  0.217068
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.954e+01  8.502e+01  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:  1.246e+00  2.171e-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.000e-02  4.390e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/613630/likelihoodResults_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.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) = 1806.80511554
delta logL = 0.00063325697306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1806.8051034
delta logL = 0.000645389553256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9290       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2462       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=   1806.805     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      239 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.148        84.499        .28569E-03    .40789E-05
   2  Index         2.9263        1.3540        .11152E-01    .14193E-05
   3  Normalizat    .10000E-01    7.1434        .12782E-01** at limit **
   4  Prefactor     1.2462        .13429        .16385E-03    .59682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.148
  Index      = 2.92635
  Normalizat = 0.01
  Prefactor  = 1.24622
 **********
 **   18 **HESSE 
 **********

 FCN=   1806.805     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.148        83.937        .11428E-04   -1.4305    
   2  Index         2.9263        1.3455        .44607E-03   -.42765    
   3  Normalizat    .10000E-01    7.1562        .51129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2462        .13254        .32770E-04   -.84920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90336e-10
Minuit parameter uncertainties:
  1  84.1402
  2  1.36588
  3  0.000140113
  4  0.132574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613630': 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) = 1806.80509932
delta logL = 0.000649472847272

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.915e+01  8.414e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.926e+00  1.366e+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:  1.246e+00  1.326e-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.000e-02  1.401e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/613630/cmap_HighResolution_491788801_492048001_4FGL_J2136.2+0032_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-02', job_status='DONE', photon_flux_upper_limit='4.77e-07', time_completed='2021-09-26 20:33:27.208509', job_id='613630', GAL2='1.25', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632713607.21', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='6.49e-04', ts2='0.50', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='974' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:33:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 613630: <4FGL_J2136.2+0032_daily_bin974> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin974> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 20:20:31 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:25:21 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:25:21 2021
Terminated at Sun Sep 26 20:33:27 2021
Results reported at Sun Sep 26 20:33:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin974 324.062 0.5488 491788801 492048001 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 :                                   343.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   486 sec.
    Turnaround time :                            776 sec.

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

