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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1145
RA = 324.062, Dec = 0.5488
tmin = 536112001, tmax = 536371201
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='614963', job_status='RUN', time_executed='2021-09-26 20:27:36.040024', time_epoch_executed='1632713256.04' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614963/ft1_4FGL_J2136.2+0032_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614963/ft2_4FGL_J2136.2+0032_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614963/ft1_4FGL_J2136.2+0032_daily_bin1145.fits outfile=/scratch/kocevski/614963/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1145.fits ra=324.062 dec=0.5488 rad=12.0 tmin=536112001.0 tmax=536371201.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.55
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614963/ft2_4FGL_J2136.2+0032_daily_bin1145.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/614963/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1145.fits evtable="EVENTS" outfile="/scratch/kocevski/614963/ft1_filtered_4FGL_J2136.2+0032_daily_bin1145.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.49
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614963/ft1_filtered_4FGL_J2136.2+0032_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/614963/ft2_4FGL_J2136.2+0032_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/614963/ltcube_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.fits outfile=/scratch/kocevski/614963/expmap_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.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/614963/ltcube_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.fits
.....................!
real 190.62
user 185.73
sys 4.46

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/614963/ft1_filtered_4FGL_J2136.2+0032_daily_bin1145.fits scfile=/scratch/kocevski/614963/ft2_4FGL_J2136.2+0032_daily_bin1145.fits outfile=/scratch/kocevski/614963/cmap_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614963/ft1_filtered_4FGL_J2136.2+0032_daily_bin1145.fits scfile=/scratch/kocevski/614963/ft2_4FGL_J2136.2+0032_daily_bin1145.fits outfile=/scratch/kocevski/614963/cmap_HighResolution_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20648E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2887       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    140.18       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4983       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17241E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    85.491       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13637       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85306       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0008       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=   6653.070     FROM MIGRAD    STATUS=CONVERGED   1054 CALLS     3477 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8216        5.0592        .90320E-03    .49403E-03
   2  Prefactor     .10000E-03    18.186        .18142E-02** at limit **
   3  Prefactor     .10000E-03    21.471        .18142E-02** at limit **
   4  Prefactor     .10000E-03    31.683        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.447        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.9298        .18142E-02** at limit **
   7  Prefactor     .10000E-03    131.72        .18142E-02** at limit **
   8  Prefactor     .10000E-03    7.0669        .57472E-01** at limit **
   9  Prefactor     1.1419        3.9782        .29895E-03    .25441E-04
  10  Prefactor     3.2893        2.8290        .11766E-03    .31403E-04
  11  Prefactor     37.791        39.145        .65213E-04    .36261E-04
  12  Prefactor     39.740        44.834        .63593E-04    .24170E-04
  13  Prefactor     .10000E-03    103.52        .18142E-02** at limit **
  14  Prefactor     140.23        71.040        .17012E-03    .14702E-05
  15  norm          1.5000        2.5552        .15741E-03   -.16972E-04
  16  norm          7.7579        24.198        .14404E-03   -.11918E-04
  17  Prefactor     .10000E-03    6.9316        .18142E-02** at limit **
  18  Prefactor     10.054        10.926        .12638E-03    .91399E-04
  19  Prefactor     .10000E-03    12.172        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.4123        .18142E-02** at limit **
  21  Prefactor     .10000E-03    20.177        .90457E-01** at limit **
  22  Prefactor     85.513        44.274        .43448E-04    .52855E-04
  23  Prefactor     .29087        109.07        .46752E-02    .67122E-04
  24  Normalizat    .85238        .31175        .37591E-03    .35139E-03
  25  Prefactor     1.0010        .14356        .17486E-03    .27608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.14189
  Prefactor  = 3.28934
  Prefactor  = 37.7912
  Prefactor  = 39.7398
  Prefactor  = 0.0001
  Prefactor  = 140.235
  norm       = 1.5
  norm       = 7.75793
  Prefactor  = 0.000100001
  Prefactor  = 10.0539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.5133
  Prefactor  = 0.290865
  Normalizat = 0.852383
  Prefactor  = 1.00097
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.070     FROM HESSE     STATUS=OK           423 CALLS     3900 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8216        5.0573        .36128E-04   -1.5269    
   2  Prefactor     .10000E-03    18.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    131.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7473        .59354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1419        3.9777        .11958E-04   -1.5494    
  10  Prefactor     3.2893        2.8282        .47063E-05   -1.5345    
  11  Prefactor     37.791        39.125        .26085E-05   -1.4478    
  12  Prefactor     39.740        44.827        .12719E-04   -1.4446    
  13  Prefactor     .10000E-03    103.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     140.23        71.009        .68048E-05   -1.3334    
  15  norm          1.5000        2.5539        .62965E-05   -1.5463    
  16  norm          7.7579        24.187        .57617E-05   -1.5151    
  17  Prefactor     .10000E-03    6.9344        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.054        10.926        .50550E-05   -1.5074    
  19  Prefactor     .10000E-03    12.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.962        .94112E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     85.513        44.265        .86896E-05   -1.3856    
  23  Prefactor     .29087        111.88        .18701E-03   -1.5600    
  24  Normalizat    .85238        .31071        .15036E-04   -.98154    
  25  Prefactor     1.0010        .14359        .34971E-04   -.92697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03788e-09
Minuit parameter uncertainties:
  1  5.0578
  2  1.2737e-05
  3  3.59814e-05
  4  8.81118e-05
  5  2.25144e-05
  6  9.98539e-06
  7  0.000808104
  8  0.000154821
  9  3.97858
  10  2.82833
  11  39.1518
  12  44.8651
  13  3.06424e-05
  14  71.0527
  15  2.55405
  16  24.2179
  17  0.000175243
  18  10.9282
  19  8.40049e-05
  20  5.33606e-06
  21  8.8862e-05
  22  44.2818
  23  11.4285
  24  0.311358
  25  0.143649
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.779e+01  3.915e+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.001e+00  1.436e-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:  8.524e-01  3.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 6.48e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/614963/likelihoodResults_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.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) = 6652.81945029
delta logL = 0.250850622216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6652.80763705
delta logL = 0.262663854353

Fit tolerance = 1e-08

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

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

 FCN=   6652.808     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      215 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.172        40.954        .15417E-02    .93874E-05
   2  Index         2.2865        .51990        .24362       -.48060E-04
   3  Normalizat    .87312        .23543        .83961E-01    .28673E-04
   4  Prefactor     .99161        .11786        .46166E-01    .40104E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.172
  Index      = 2.28645
  Normalizat = 0.873116
  Prefactor  = 0.991613
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.808     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.172        39.769        .61667E-04   -1.4408    
   2  Index         2.2865        .70161        .92117E-02   -.57366    
   3  Normalizat    .87312        .28284        .37175E-03   -.97411    
   4  Prefactor     .99161        .14136        .17553E-03   -.93010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09622e-09
Minuit parameter uncertainties:
  1  39.7937
  2  0.704915
  3  0.283317
  4  0.141417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614963': 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) = 6652.80763008
delta logL = 0.262670826219

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.217e+01  3.979e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.286e+00  7.049e-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:  9.916e-01  1.414e-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:  8.731e-01  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 324.062 0.549
Photon Index (Free Index): 2.29 +/- 0.70
Photon Flux (Free Index): 5.03e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.95e-05 +/- 2.11e-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/614963/cmap_HighResolution_536112001_536371201_4FGL_J2136.2+0032_daily_bin1145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='1.95e-05', photon_flux_error='6.48e-08', dlogl='2.63e-01', energy_flux='1.34e-05', photon_flux2='5.03e-08', job_status='DONE', time_completed='2021-09-26 20:40:33.408823', photon_index_error2='0.70', photon_index2='2.29', ts='1.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='2.11e-05', EG='0.85', time_epoch_completed='1632714033.41', return_code='0', job_id='614963', GAL2='0.99', EG2='0.87', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.34e-08', ts2='1.97', photon_index='2.88' WHERE bin_id='1145' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:40:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 614963: <4FGL_J2136.2+0032_daily_bin1145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1145 324.062 0.5488 536112001 536371201 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 :                                   769.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            905 sec.

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

