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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin923
RA = 324.062, Dec = 0.5488
tmin = 478569601, tmax = 478828801
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='613551', job_status='RUN', time_executed='2021-09-26 20:26:43.045946', time_epoch_executed='1632713203.05' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613551/ft1_4FGL_J2136.2+0032_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613551/ft2_4FGL_J2136.2+0032_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613551/ft1_4FGL_J2136.2+0032_daily_bin923.fits outfile=/scratch/kocevski/613551/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin923.fits ra=324.062 dec=0.5488 rad=12.0 tmin=478569601.0 tmax=478828801.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 2.85
user 2.64
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613551/ft1_filtered_4FGL_J2136.2+0032_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/613551/ft2_4FGL_J2136.2+0032_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/613551/ltcube_478569601_478828801_4FGL_J2136.2+0032_daily_bin923.fits outfile=/scratch/kocevski/613551/expmap_478569601_478828801_4FGL_J2136.2+0032_daily_bin923.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/613551/ltcube_478569601_478828801_4FGL_J2136.2+0032_daily_bin923.fits
.....................!
real 157.33
user 152.80
sys 4.23

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/613551/ft1_filtered_4FGL_J2136.2+0032_daily_bin923.fits scfile=/scratch/kocevski/613551/ft2_4FGL_J2136.2+0032_daily_bin923.fits outfile=/scratch/kocevski/613551/cmap_478569601_478828801_4FGL_J2136.2+0032_daily_bin923.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.46
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613551/ft1_filtered_4FGL_J2136.2+0032_daily_bin923.fits scfile=/scratch/kocevski/613551/ft2_4FGL_J2136.2+0032_daily_bin923.fits outfile=/scratch/kocevski/613551/cmap_HighResolution_478569601_478828801_4FGL_J2136.2+0032_daily_bin923.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.47
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8611       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.218       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9718       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7590       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .89680E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4581       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8212       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4141       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76482       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=   7206.414     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2943 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90405        2.7756        .91306E-07   -.32038E-03
   2  Prefactor     1.8559        87.332        .44177E-05   -.86656E-06
   3  Prefactor     .10000E-03    53.560       -.44493E-05** at limit **
   4  Prefactor     .10000E-03    11.482        .17314E-07** at limit **
   5  Prefactor     .10000E-03    17.747        .45209E-05** at limit **
   6  Prefactor     54.215        30.708       -.41743E-06   -.21640E-04
   7  Prefactor     .10000E-03    13.094       -.83936E-05** at limit **
   8  Prefactor     7.9718        6.6463        .37487E-08   -.23748E-04
   9  Prefactor     11.291        7.4177       -.15837E-05   -.37460E-03
  10  Prefactor     .10000E-03    .70579       -.81348E-08** at limit **
  11  Prefactor     56.564        35.340        .29661E-05    .97736E-04
  12  Prefactor     .10000E-03    19.855       -.22394E-05** at limit **
  13  Prefactor     .10000E-03    47.032        .35735E-05** at limit **
  14  Prefactor     .10000E-03    104.40        .18848E-05** at limit **
  15  norm          3.7590        2.6924        .19971E-08   -.14917E-03
  16  norm          .10000E-03    15.634       -.37753E-05** at limit **
  17  Prefactor     .10000E-03    13.216        .96731E-05** at limit **
  18  Prefactor     11.938        13.939       -.49521E-06   -.89023E-04
  19  Prefactor     .32108E-01    10.114       -.27083E-06    .55457E-04
  20  Prefactor     12.367        15.124       -.11790E-06   -.27426E-04
  21  Prefactor     6.4595        18.146       -.16604E-05   -.59561E-04
  22  Prefactor     .10000E-03    7.0728       -.16396E-07** at limit **
  23  Prefactor     1.8174        9.3864        .50670E-05   -.10104E-02
  24  Normalizat    1.4141        .23824       -.37745E-06   -.71965E-04
  25  Prefactor     .76485        .11131        .21415E-08   -.10812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.904052
  Prefactor  = 1.85591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 54.2153
  Prefactor  = 0.000100002
  Prefactor  = 7.97177
  Prefactor  = 11.2905
  Prefactor  = 0.0001
  Prefactor  = 56.5639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75898
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.9383
  Prefactor  = 0.0321077
  Prefactor  = 12.367
  Prefactor  = 6.45946
  Prefactor  = 0.0001
  Prefactor  = 1.81738
  Normalizat = 1.4141
  Prefactor  = 0.764849
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.414     FROM HESSE     STATUS=OK           437 CALLS     3380 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90405        2.9439        .23880E-02   -1.5518    
   2  Prefactor     1.8559        87.922        .30545E-03   -1.5435    
   3  Prefactor     .10000E-03    54.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.215        30.784        .54474E-04   -1.4234    
   7  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9718        6.6461        .14201E-03   -1.5143    
   9  Prefactor     11.291        7.4563        .11922E-03   -1.5036    
  10  Prefactor     .10000E-03    .71096        .69613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.564        35.467        .53334E-04   -1.4202    
  12  Prefactor     .10000E-03    19.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    104.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7590        2.6914        .11244E-03   -1.5320    
  16  norm          .10000E-03    15.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.938        13.934        .11593E-03   -1.5017    
  19  Prefactor     .32108E-01    16.524        .96636E-01   -1.5672    
  20  Prefactor     12.367        15.101        .11391E-03   -1.5004    
  21  Prefactor     6.4595        18.106        .15793E-03   -1.5200    
  22  Prefactor     .10000E-03    7.0741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8174        30.433        .15471E-02   -1.5438    
  24  Normalizat    1.4141        .29123        .31092E-03   -.80222    
  25  Prefactor     .76485        .13435        .19787E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2751e-08
Minuit parameter uncertainties:
  1  2.94438
  2  25.5873
  3  0.000309872
  4  3.311e-06
  5  0.000195845
  6  30.7934
  7  0.000330833
  8  6.64676
  9  7.45691
  10  1.96475e-06
  11  35.4807
  12  0.000106885
  13  0.000263719
  14  0.000127395
  15  2.69144
  16  0.000167307
  17  0.000257464
  18  13.9377
  19  1.4549
  20  15.1053
  21  18.1216
  22  2.77842e-07
  23  14.8825
  24  0.291574
  25  0.134407
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.656e+01  3.548e+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:  7.648e-01  1.344e-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.414e+00  2.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.22
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 9.38e-08 +/- 5.88e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.25e-05

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) = 7206.03187267
delta logL = 0.382594490546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7206.01013867
delta logL = 0.404328491073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.972       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2617       1.0000          .0000       10.000    
     3 'Normalizat'    1.4621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74883       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=   7206.010     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.963        38.027       -.46547E-05   -.16526E-03
   2  Index         2.2615        .62907       -.19786E-04    .45852E-04
   3  Normalizat    1.4620        .23308        .23283E-05    .15155E-03
   4  Prefactor     .74886        .11121       -.81197E-06    .25658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.9633
  Index      = 2.26154
  Normalizat = 1.46205
  Prefactor  = 0.748864
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.963        37.314        .57303E-04   -1.4307    
   2  Index         2.2615        .61613        .81949E-02   -.57960    
   3  Normalizat    1.4620        .27598        .30663E-03   -.78850    
   4  Prefactor     .74886        .13260        .19970E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07992e-10
Minuit parameter uncertainties:
  1  37.3317
  2  0.618377
  3  0.276264
  4  0.132659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613551': 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) = 7206.01013855
delta logL = 0.40432860182

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.896e+01  3.733e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.262e+00  6.184e-01  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.489e-01  1.327e-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.462e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 324.062 0.549
Photon Index (Free Index): 2.26 +/- 0.62
Photon Flux (Free Index): 5.79e-08 +/- 5.31e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/613551/cmap_HighResolution_478569601_478828801_4FGL_J2136.2+0032_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.38e-08', energy_flux2='2.33e-05', photon_flux_error='5.88e-08', dlogl='4.04e-01', energy_flux='2.00e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-26 20:36:06.754210', photon_index_error2='0.62', photon_index2='2.26', ts='5.22', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.41', time_epoch_completed='1632713766.75', return_code='0', job_id='613551', GAL2='0.75', EG2='1.46', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.31e-08', ts2='5.99', photon_index='2.88' WHERE bin_id='923' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 613551: <4FGL_J2136.2+0032_daily_bin923> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin923 324.062 0.5488 478569601 478828801 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 :                                   561.00 sec.
    Max Memory :                                 1015 MB
    Average Memory :                             305.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            942 sec.

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

