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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin636
RA = 324.062, Dec = 0.5488
tmin = 404179201, tmax = 404438401
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='611997', job_status='RUN', time_executed='2021-09-26 20:22:47.346830', time_epoch_executed='1632712967.35' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611997/ft1_4FGL_J2136.2+0032_daily_bin636.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611997/ft2_4FGL_J2136.2+0032_daily_bin636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611997/ft1_4FGL_J2136.2+0032_daily_bin636.fits outfile=/scratch/kocevski/611997/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin636.fits ra=324.062 dec=0.5488 rad=12.0 tmin=404179201.0 tmax=404438401.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.00
user 2.78
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611997/ft1_filtered_4FGL_J2136.2+0032_daily_bin636.fits" evtable="EVENTS" scfile=/scratch/kocevski/611997/ft2_4FGL_J2136.2+0032_daily_bin636.fits sctable="SC_DATA" outfile=/scratch/kocevski/611997/ltcube_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.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/611997/ft2_4FGL_J2136.2+0032_daily_bin636.fits
.....................!
real 11.76
user 11.44
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611997/ft1_filtered_4FGL_J2136.2+0032_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/611997/ft2_4FGL_J2136.2+0032_daily_bin636.fits sctable="SC_DATA" expcube=/scratch/kocevski/611997/ltcube_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.fits outfile=/scratch/kocevski/611997/expmap_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.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/611997/ltcube_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.fits
.....................!
real 150.94
user 146.59
sys 4.04

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/611997/ft1_filtered_4FGL_J2136.2+0032_daily_bin636.fits scfile=/scratch/kocevski/611997/ft2_4FGL_J2136.2+0032_daily_bin636.fits outfile=/scratch/kocevski/611997/cmap_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.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.45
user 0.30
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.887       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11723E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25248E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    40.059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5688       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.037       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4249       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67753       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=   5620.878     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2882 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3029        7.1429       -.51366E-06   -.29322E-03
   2  Prefactor     .10000E-03    23.599       -.18579E-06** at limit **
   3  Prefactor     36.420        29.465       -.32892E-06    .77623E-04
   4  Prefactor     .10000E-03    12.887       -.63302E-05** at limit **
   5  Prefactor     31.889        61.547        .25307E-05   -.55738E-05
   6  Prefactor     5.0732        16.146       -.47029E-06   -.39040E-04
   7  Prefactor     .10000E-03    70.021       -.15181E-04** at limit **
   8  Prefactor     .10002E-03    3.5585       -.31652E-06** at limit **
   9  Prefactor     5.3401        5.6740       -.12117E-05    .37558E-04
  10  Prefactor     .10000E-03    1.4117        .24145E-07** at limit **
  11  Prefactor     .10000E-03    14.247        .45407E-05** at limit **
  12  Prefactor     .10000E-03    53.330        .17682E-04** at limit **
  13  Prefactor     .10000E-03    45.880        .97917E-05** at limit **
  14  Prefactor     .10000E-03    37.899       -.11726E-04** at limit **
  15  norm          .10000E-03    .78094       -.86800E-07** at limit **
  16  norm          40.063        21.812        .53823E-06    .35292E-04
  17  Prefactor     .10000E-03    5.2389       -.19359E-06** at limit **
  18  Prefactor     1.5638        29.355       -.26645E-05   -.18098E-03
  19  Prefactor     .10000E-03    7.6341        .88690E-06** at limit **
  20  Prefactor     .10000E-03    7.6702       -.75492E-06** at limit **
  21  Prefactor     .10000E-03    11.498        .27986E-05** at limit **
  22  Prefactor     22.033        28.374       -.25406E-05    .37645E-04
  23  Prefactor     11.930        16.895       -.16214E-05   -.64138E-03
  24  Normalizat    1.4247        .24353        .89038E-06    .65212E-04
  25  Prefactor     .67762        .11556       -.16570E-06    .14547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3029
  Prefactor  = 0.0001
  Prefactor  = 36.4204
  Prefactor  = 0.0001
  Prefactor  = 31.8892
  Prefactor  = 5.07324
  Prefactor  = 0.000100002
  Prefactor  = 0.000100021
  Prefactor  = 5.34005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 40.0629
  Prefactor  = 0.0001
  Prefactor  = 1.56382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0331
  Prefactor  = 11.9297
  Normalizat = 1.42468
  Prefactor  = 0.677622
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.878     FROM HESSE     STATUS=OK           425 CALLS     3307 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3029        7.1641        .19421E-03   -1.5293    
   2  Prefactor     .10000E-03    23.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.420        29.469        .66408E-04   -1.4500    
   4  Prefactor     .10000E-03    12.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.889        61.537        .70958E-04   -1.4578    
   6  Prefactor     5.0732        16.146        .17855E-03   -1.5257    
   7  Prefactor     .10000E-03    69.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    42.632        .27262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3401        5.6844        .17392E-03   -1.5246    
  10  Prefactor     .10000E-03    1.4498        .17378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .80844        .12932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          40.063        21.862        .63331E-04   -1.4441    
  17  Prefactor     .10000E-03    5.2823        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5638        30.317        .33946E-03   -1.5458    
  19  Prefactor     .10000E-03    7.6433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.033        28.404        .85325E-04   -1.4769    
  23  Prefactor     11.930        17.484        .57990E-03   -1.5017    
  24  Normalizat    1.4247        .29142        .27793E-03   -.79917    
  25  Prefactor     .67762        .13780        .19206E-03   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3713e-09
Minuit parameter uncertainties:
  1  7.16553
  2  1.35822e-06
  3  29.4805
  4  0.000146226
  5  61.6598
  6  16.1603
  7  0.000760604
  8  0.00189854
  9  5.68493
  10  1.47563e-06
  11  0.00011061
  12  0.000862542
  13  0.000435342
  14  0.000435202
  15  1.51327e-06
  16  21.8663
  17  3.833e-06
  18  13.7787
  19  1.2606e-05
  20  2.11353e-05
  21  5.02619e-05
  22  28.4217
  23  17.4917
  24  0.29176
  25  0.13787
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.106e-04  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:  6.776e-01  1.379e-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.425e+00  2.918e-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: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611997/likelihoodResults_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.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) = 5620.87858386
delta logL = -0.000335204609655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5620.878249
delta logL = -3.47899003827e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8798       1.0000          .0000       10.000    
     3 'Normalizat'    1.4245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67770       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=   5620.878     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      252 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1366.6        .18142E-02** at limit **
   2  Index         3.0154        5.9640        .50000       -.97089E-08
   3  Normalizat    1.4247        .67686E-01    .27793E-03   -.18571E-04
   4  Prefactor     .67762        .33760E-01    .19206E-03   -.27821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.01537
  Normalizat = 1.42468
  Prefactor  = 0.677622
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.878     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0154        5.8574        .50000       -.40817    
   3  Normalizat    1.4247        .27269        .11117E-04   -.79917    
   4  Prefactor     .67762        .13608        .76823E-05   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5597e-11
Minuit parameter uncertainties:
  1  0.000307712
  2  614.259
  3  0.272967
  4  0.136148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611997': 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) = 5620.87824863
delta logL = 2.27964846999e-08

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.077e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.015e+00  6.143e+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:  6.776e-01  1.361e-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.425e+00  2.730e-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/611997/cmap_HighResolution_404179201_404438401_4FGL_J2136.2+0032_daily_bin636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2021-09-26 20:31:32.299129', job_id='611997', GAL2='0.68', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632713492.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='636' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 611997: <4FGL_J2136.2+0032_daily_bin636> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin636 324.062 0.5488 404179201 404438401 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            974 sec.

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

