/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 170 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_bin880
RA = 324.062, Dec = 0.5488
tmin = 467424001, tmax = 467683201
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='613481', job_status='RUN', time_executed='2021-09-26 20:27:13.374272', time_epoch_executed='1632713233.37' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='880'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613481/ft1_4FGL_J2136.2+0032_daily_bin880.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613481/ft2_4FGL_J2136.2+0032_daily_bin880.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613481/ft1_4FGL_J2136.2+0032_daily_bin880.fits outfile=/scratch/kocevski/613481/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin880.fits ra=324.062 dec=0.5488 rad=12.0 tmin=467424001.0 tmax=467683201.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.93
user 2.74
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613481/ft1_filtered_4FGL_J2136.2+0032_daily_bin880.fits evtable="EVENTS" scfile=/scratch/kocevski/613481/ft2_4FGL_J2136.2+0032_daily_bin880.fits sctable="SC_DATA" expcube=/scratch/kocevski/613481/ltcube_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.fits outfile=/scratch/kocevski/613481/expmap_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.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/613481/ltcube_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.fits
.....................!
real 155.91
user 152.19
sys 3.45

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/613481/ft1_filtered_4FGL_J2136.2+0032_daily_bin880.fits scfile=/scratch/kocevski/613481/ft2_4FGL_J2136.2+0032_daily_bin880.fits outfile=/scratch/kocevski/613481/cmap_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613481/ft1_filtered_4FGL_J2136.2+0032_daily_bin880.fits scfile=/scratch/kocevski/613481/ft2_4FGL_J2136.2+0032_daily_bin880.fits outfile=/scratch/kocevski/613481/cmap_HighResolution_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.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.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.405       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13399E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3568       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.456       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .78420       1.0000         .10000E-03   10000.    
    16 'norm      '    .14160E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.122       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2002       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84121       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=   6069.821     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2868 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0132       -.42714E-08** at limit **
   2  Prefactor     .10000E-03    18.531       -.18116E-06** at limit **
   3  Prefactor     14.394        23.906        .10437E-05   -.53576E-04
   4  Prefactor     .10000E-03    17.676       -.47247E-06** at limit **
   5  Prefactor     5.0946        288.52        .72963E-05   -.10119E-04
   6  Prefactor     15.470        31.507        .17619E-05   -.68654E-04
   7  Prefactor     .10000E-03    17.275        .17412E-06** at limit **
   8  Prefactor     .10000E-03    5.4407       -.34260E-07** at limit **
   9  Prefactor     2.5484        7.1895        .45700E-05   -.15635E-03
  10  Prefactor     1.3572        2.3832        .11594E-06   -.73209E-04
  11  Prefactor     .10000E-03    11.380       -.11682E-06** at limit **
  12  Prefactor     19.471        25.039        .21087E-06   -.12575E-04
  13  Prefactor     42.512        80.382       -.10153E-04    .23214E-04
  14  Prefactor     .10000E-03    15.943        .19087E-06** at limit **
  15  norm          .78018        2.1853        .18628E-05    .66388E-03
  16  norm          .10003E-03    10.356        .10141E-05** at limit **
  17  Prefactor     .10000E-03    3.5665       -.52486E-07** at limit **
  18  Prefactor     8.4292        10.120        .17334E-06   -.10565E-04
  19  Prefactor     55.748        29.976        .65648E-06   -.91277E-04
  20  Prefactor     28.125        20.782        .21851E-07    .16046E-04
  21  Prefactor     .10000E-03    14.089       -.16794E-06** at limit **
  22  Prefactor     34.084        32.633        .39061E-06   -.35138E-04
  23  Prefactor     .10000E-03    11.148        .24874E-06** at limit **
  24  Normalizat    1.2001        .25399       -.63144E-06   -.98647E-04
  25  Prefactor     .84128        .12281       -.80736E-06   -.18714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3942
  Prefactor  = 0.0001
  Prefactor  = 5.09463
  Prefactor  = 15.47
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54836
  Prefactor  = 1.35723
  Prefactor  = 0.0001
  Prefactor  = 19.4711
  Prefactor  = 42.512
  Prefactor  = 0.0001
  norm       = 0.780182
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 8.4292
  Prefactor  = 55.7479
  Prefactor  = 28.1255
  Prefactor  = 0.0001
  Prefactor  = 34.084
  Prefactor  = 0.0001
  Normalizat = 1.20012
  Prefactor  = 0.841283
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.821     FROM HESSE     STATUS=OK           425 CALLS     3293 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0481        .13204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.394        23.857        .10553E-03   -1.4949    
   4  Prefactor     .10000E-03    17.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0946        288.54        .17787E-03   -1.5257    
   6  Prefactor     15.470        31.460        .10179E-03   -1.4921    
   7  Prefactor     .10000E-03    17.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4858        .17743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5484        7.2123        .12789E-02   -1.5389    
  10  Prefactor     1.3572        2.3483        .15151E-03   -1.5475    
  11  Prefactor     .10000E-03    11.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.471        25.025        .90763E-04   -1.4825    
  13  Prefactor     42.512        80.527        .61524E-04   -1.4403    
  14  Prefactor     .10000E-03    15.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78018        2.1483        .17173E-03   -1.5531    
  16  norm          .10003E-03    45.749        .47248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5818        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4292        10.115        .13807E-03   -1.5127    
  19  Prefactor     55.748        29.959        .53721E-04   -1.4213    
  20  Prefactor     28.125        20.790        .75547E-04   -1.4647    
  21  Prefactor     .10000E-03    14.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.084        32.625        .68636E-04   -1.4540    
  23  Prefactor     .10000E-03    11.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2001        .30817        .32255E-03   -.86599    
  25  Prefactor     .84128        .14967        .18629E-03   -.98224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11643e-10
Minuit parameter uncertainties:
  1  6.77269e-07
  2  3.40853e-07
  3  23.8729
  4  0.000101312
  5  77.0744
  6  31.4941
  7  2.03416e-05
  8  8.53862e-08
  9  7.21477
  10  2.34848
  11  1.07145e-06
  12  25.038
  13  80.7339
  14  2.67565e-05
  15  2.14849
  16  0.00218418
  17  2.28374e-06
  18  10.117
  19  29.9667
  20  20.7952
  21  2.55215e-05
  22  32.6416
  23  1.94171e-06
  24  0.30864
  25  0.149747
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.071e-06  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.413e-01  1.497e-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.200e+00  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.062 0.549
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613481/likelihoodResults_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6069.82133064
delta logL = -0.000418098069531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6069.82091254
delta logL = 2.02726369025e-09

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1224.1        .18142E-02** at limit **
   2  Index         2.6451        5.0783        .50000       -.75488E-07
   3  Normalizat    1.2001        .74963E-01    .32255E-03    .82877E-03
   4  Prefactor     .84128        .37177E-01    .18629E-03    .14076E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.64511
  Normalizat = 1.20013
  Prefactor  = 0.841284
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.821     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6451        8.5726        .50000       -.49040    
   3  Normalizat    1.2001        .29797        .64510E-04   -.86599    
   4  Prefactor     .84128        .14790        .37259E-04   -.98224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42006e-09
Minuit parameter uncertainties:
  1  0.000158028
  2  349.901
  3  0.29839
  4  0.147974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613481': 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) = 6069.82091245
delta logL = 8.93014657777e-08

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.580e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.645e+00  3.499e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.413e-01  1.480e-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.200e+00  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/613481/cmap_HighResolution_467424001_467683201_4FGL_J2136.2+0032_daily_bin880.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-26 20:36:35.409551', job_id='613481', GAL2='0.84', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632713795.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='880' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:36:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 613481: <4FGL_J2136.2+0032_daily_bin880> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin880 324.062 0.5488 467424001 467683201 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 :                                   557.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            976 sec.

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

