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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin921
RA = 324.062, Dec = 0.5488
tmin = 478051201, tmax = 478310401
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='613548', job_status='RUN', time_executed='2021-09-26 20:27:00.396588', time_epoch_executed='1632713220.4' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613548/ft1_4FGL_J2136.2+0032_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613548/ft2_4FGL_J2136.2+0032_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613548/ft1_4FGL_J2136.2+0032_daily_bin921.fits outfile=/scratch/kocevski/613548/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin921.fits ra=324.062 dec=0.5488 rad=12.0 tmin=478051201.0 tmax=478310401.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.83
user 2.62
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613548/ft1_filtered_4FGL_J2136.2+0032_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/613548/ft2_4FGL_J2136.2+0032_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/613548/ltcube_478051201_478310401_4FGL_J2136.2+0032_daily_bin921.fits outfile=/scratch/kocevski/613548/expmap_478051201_478310401_4FGL_J2136.2+0032_daily_bin921.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/613548/ltcube_478051201_478310401_4FGL_J2136.2+0032_daily_bin921.fits
.....................!
real 155.68
user 150.97
sys 4.36

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/613548/ft1_filtered_4FGL_J2136.2+0032_daily_bin921.fits scfile=/scratch/kocevski/613548/ft2_4FGL_J2136.2+0032_daily_bin921.fits outfile=/scratch/kocevski/613548/cmap_478051201_478310401_4FGL_J2136.2+0032_daily_bin921.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.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613548/ft1_filtered_4FGL_J2136.2+0032_daily_bin921.fits scfile=/scratch/kocevski/613548/ft2_4FGL_J2136.2+0032_daily_bin921.fits outfile=/scratch/kocevski/613548/cmap_HighResolution_478051201_478310401_4FGL_J2136.2+0032_daily_bin921.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.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.895       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.955       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.979       1.0000         .10000E-03   10000.    
    15 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11091E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13594E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.290       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.908       1.0000         .10000E-03   10000.    
    22 'Prefactor '    94.171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.032       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52525       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2184       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=   6240.443     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2929 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4054       -.80556E-07** at limit **
   2  Prefactor     .10000E-03    30.352        .40839E-07** at limit **
   3  Prefactor     17.898        21.341       -.41290E-06   -.11703E-03
   4  Prefactor     .10000E-03    15.053        .56288E-07** at limit **
   5  Prefactor     .10001E-03    75.233       -.15817E-05** at limit **
   6  Prefactor     7.2156        28.407       -.59408E-06    .48679E-04
   7  Prefactor     .10000E-03    15.360       -.72626E-06** at limit **
   8  Prefactor     .10000E-03    3.8199        .28328E-07** at limit **
   9  Prefactor     .10000E-03    3.9070       -.71497E-07** at limit **
  10  Prefactor     .33323        1.1330       -.14066E-05   -.21915E-02
  11  Prefactor     70.035        43.328        .20398E-05    .82360E-05
  12  Prefactor     .10000E-03    10.779       -.12232E-06** at limit **
  13  Prefactor     .10000E-03    42.395        .13291E-06** at limit **
  14  Prefactor     38.214        62.540        .59444E-05   -.52727E-04
  15  norm          .10000E-03    1.4298        .79952E-07** at limit **
  16  norm          .10000E-03    12.189        .22529E-06** at limit **
  17  Prefactor     .10001E-03    32.284        .23645E-04** at limit **
  18  Prefactor     .10000E-03    9.8623       -.91864E-06** at limit **
  19  Prefactor     5.1621        13.412        .25079E-06    .20896E-04
  20  Prefactor     17.288        16.655       -.12910E-06    .16013E-04
  21  Prefactor     17.924        24.974        .46877E-06   -.62394E-04
  22  Prefactor     94.192        47.690        .14471E-07    .85287E-06
  23  Prefactor     19.030        18.661       -.83831E-07    .51782E-04
  24  Normalizat    .52516        .29376        .20625E-05    .14022E-03
  25  Prefactor     1.2185        .14019       -.24803E-06    .11546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.8984
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 7.2156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.333225
  Prefactor  = 70.0354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.214
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100002
  Prefactor  = 5.16213
  Prefactor  = 17.2879
  Prefactor  = 17.924
  Prefactor  = 94.1918
  Prefactor  = 19.0301
  Normalizat = 0.525159
  Prefactor  = 1.21849
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.443     FROM HESSE     STATUS=OK           423 CALLS     3352 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4285        .11962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.898        21.336        .94678E-04   -1.4862    
   4  Prefactor     .10000E-03    15.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    75.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2156        28.276        .14925E-03   -1.5171    
   7  Prefactor     .10000E-03    15.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8519        .15074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9309        .15246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33323        1.3124        .15087E-02   -1.5593    
  11  Prefactor     70.035        43.265        .47994E-04   -1.4032    
  12  Prefactor     .10000E-03    10.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.214        62.539        .65036E-04   -1.4471    
  15  norm          .10000E-03    1.4841        .18433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    32.567        .34291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1621        13.383        .17693E-03   -1.5254    
  20  Prefactor     17.288        16.634        .96320E-04   -1.4876    
  21  Prefactor     17.924        24.879        .94644E-04   -1.4861    
  22  Prefactor     94.192        47.601        .41415E-04   -1.3764    
  23  Prefactor     19.030        18.614        .91807E-04   -1.4835    
  24  Normalizat    .52516        .30524        .46609E-03   -1.1126    
  25  Prefactor     1.2185        .14959        .16497E-03   -.85764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10983e-09
Minuit parameter uncertainties:
  1  1.19815e-05
  2  0.000334794
  3  21.3453
  4  0.00013509
  5  0.00135715
  6  28.3281
  7  0.000106771
  8  7.08251e-06
  9  1.31809e-05
  10  1.31249
  11  43.2839
  12  4.07755e-05
  13  0.000143742
  14  62.6464
  15  1.46775e-05
  16  0.000164577
  17  0.00109268
  18  0.000273273
  19  13.3909
  20  16.638
  21  24.8935
  22  47.6201
  23  18.6198
  24  0.30622
  25  0.149647
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  7.004e+01  4.328e+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.218e+00  1.496e-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:  5.252e-01  3.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 7.17e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.53e-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) = 6240.07526464
delta logL = 0.368162176048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6240.0546498
delta logL = 0.3887770107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.575       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3932       1.0000          .0000       10.000    
     3 'Normalizat'    .44281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2553       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=   6240.055     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      304 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.533        55.111        .74947E-04   -.50312E-03
   2  Index         4.3954        2.0533        .78254E-02   -.10804E-03
   3  Normalizat    .44280        .29521        .50561E-03    .37977E-04
   4  Prefactor     1.2552        .15154        .16288E-03    .56418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5328
  Index      = 4.39544
  Normalizat = 0.4428
  Prefactor  = 1.25523
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.055     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.533        39.310        .14989E-04   -1.4639    
   2  Index         4.3954        1.4840        .31302E-03   -.12121    
   3  Normalizat    .44280        .29504        .20225E-04   -1.1514    
   4  Prefactor     1.2552        .15115        .32576E-04   -.84648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7538e-10
Minuit parameter uncertainties:
  1  39.3458
  2  1.50701
  3  0.296089
  4  0.151201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613548': 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) = 6240.05464752
delta logL = 0.388779295102

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.853e+01  3.935e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  4.395e+00  1.507e+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.255e+00  1.512e-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.428e-01  2.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 324.062 0.549
Photon Index (Free Index): 4.40 +/- 1.51
Photon Flux (Free Index): 1.61e-07 +/- 9.00e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.27e-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/613548/cmap_HighResolution_478051201_478310401_4FGL_J2136.2+0032_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.28e-05', photon_flux_error='7.17e-08', dlogl='3.89e-01', energy_flux='2.48e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-26 20:35:51.010341', photon_index_error2='1.51', photon_index2='4.40', ts='4.21', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.53', time_epoch_completed='1632713751.01', return_code='0', job_id='613548', GAL2='1.26', EG2='0.44', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='9.00e-08', ts2='5.33', photon_index='2.88' WHERE bin_id='921' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:35:51 PDT 2021


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

Job <4FGL_J2136.2+0032_daily_bin921> 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) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:24:49 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:49 2021
Terminated at Sun Sep 26 20:35:51 2021
Results reported at Sun Sep 26 20:35:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin921 324.062 0.5488 478051201 478310401 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 :                                   526.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            926 sec.

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

