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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin588
RA = 324.062, Dec = 0.5488
tmin = 391737601, tmax = 391996801
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='614764', job_status='RUN', time_executed='2021-09-26 20:28:39.774727', time_epoch_executed='1632713319.77' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614764

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614764/ft1_4FGL_J2136.2+0032_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614764/ft2_4FGL_J2136.2+0032_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614764/ft1_4FGL_J2136.2+0032_daily_bin588.fits outfile=/scratch/kocevski/614764/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin588.fits ra=324.062 dec=0.5488 rad=12.0 tmin=391737601.0 tmax=391996801.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.29
user 3.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614764/ft1_filtered_4FGL_J2136.2+0032_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/614764/ft2_4FGL_J2136.2+0032_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/614764/ltcube_391737601_391996801_4FGL_J2136.2+0032_daily_bin588.fits outfile=/scratch/kocevski/614764/expmap_391737601_391996801_4FGL_J2136.2+0032_daily_bin588.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/614764/ltcube_391737601_391996801_4FGL_J2136.2+0032_daily_bin588.fits
.....................!
real 192.77
user 186.65
sys 5.72

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/614764/ft1_filtered_4FGL_J2136.2+0032_daily_bin588.fits scfile=/scratch/kocevski/614764/ft2_4FGL_J2136.2+0032_daily_bin588.fits outfile=/scratch/kocevski/614764/cmap_391737601_391996801_4FGL_J2136.2+0032_daily_bin588.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614764/ft1_filtered_4FGL_J2136.2+0032_daily_bin588.fits scfile=/scratch/kocevski/614764/ft2_4FGL_J2136.2+0032_daily_bin588.fits outfile=/scratch/kocevski/614764/cmap_HighResolution_391737601_391996801_4FGL_J2136.2+0032_daily_bin588.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2321       1.0000         .10000E-03   10000.    
    16 'norm      '    41.056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.451       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2992       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91569       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97339       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=   7413.679     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2874 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7623       -.19636E-07** at limit **
   2  Prefactor     .10000E-03    18.964        .14571E-06** at limit **
   3  Prefactor     .10000E-03    45.769       -.12758E-04** at limit **
   4  Prefactor     .10000E-03    9.6147        .14218E-05** at limit **
   5  Prefactor     .10000E-03    37.957       -.14161E-04** at limit **
   6  Prefactor     .10000E-03    10.314       -.56098E-06** at limit **
   7  Prefactor     .10000E-03    80.838        .21624E-04** at limit **
   8  Prefactor     4.8893        7.2915       -.10394E-05   -.18926E-03
   9  Prefactor     .10000E-03    3.4680       -.25739E-06** at limit **
  10  Prefactor     2.2623        2.4217        .19498E-05   -.11154E-03
  11  Prefactor     60.237        40.964       -.32736E-04   -.37129E-04
  12  Prefactor     .10000E-03    12.904        .10267E-05** at limit **
  13  Prefactor     .10000E-03    30.122        .13855E-04** at limit **
  14  Prefactor     .10000E-03    55.619        .76508E-05** at limit **
  15  norm          2.2321        2.3411       -.44919E-06   -.74080E-03
  16  norm          41.067        22.337        .59824E-06    .14196E-04
  17  Prefactor     .10000E-03    3.5901        .13611E-06** at limit **
  18  Prefactor     .10000E-03    9.6722       -.11812E-05** at limit **
  19  Prefactor     .10000E-03    18.513       -.26211E-05** at limit **
  20  Prefactor     1.1102        44.088       -.73780E-05   -.25555E-03
  21  Prefactor     .10000E-03    7.0281       -.15577E-07** at limit **
  22  Prefactor     20.416        31.799       -.21159E-04    .14922E-04
  23  Prefactor     7.3034        9.8407       -.86028E-06   -.44586E-05
  24  Normalizat    .91444        .22189        .12423E-04   -.17944E-03
  25  Prefactor     .97405        .10606       -.12663E-05    .69456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88926
  Prefactor  = 0.0001
  Prefactor  = 2.26231
  Prefactor  = 60.2369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23215
  norm       = 41.0675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1102
  Prefactor  = 0.0001
  Prefactor  = 20.4157
  Prefactor  = 7.30342
  Normalizat = 0.914445
  Prefactor  = 0.974051
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.679     FROM HESSE     STATUS=OK           417 CALLS     3291 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7686        .11161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    81.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8893        7.2807        .18193E-03   -1.5266    
   9  Prefactor     .10000E-03    3.5024        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2623        2.3953        .12849E-03   -1.5407    
  11  Prefactor     60.237        40.900        .51672E-04   -1.4154    
  12  Prefactor     .10000E-03    12.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2321        2.3237        .12682E-03   -1.5409    
  16  norm          41.067        22.297        .62560E-04   -1.4425    
  17  Prefactor     .10000E-03    3.6069        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1102        45.767        .44805E-03   -1.5497    
  21  Prefactor     .10000E-03    7.0355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.416        31.781        .88569E-04   -1.4804    
  23  Prefactor     7.3034        9.8324        .14846E-03   -1.5167    
  24  Normalizat    .91444        .26225        .35061E-03   -.95954    
  25  Prefactor     .97405        .12715        .17208E-03   -.93600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39008e-09
Minuit parameter uncertainties:
  1  9.85881e-06
  2  2.516e-05
  3  0.000259686
  4  1.25214e-05
  5  0.000160118
  6  4.9985e-06
  7  0.000200812
  8  7.28204
  9  3.70919e-05
  10  2.39545
  11  40.9188
  12  1.26709e-05
  13  5.38489e-06
  14  0.000312328
  15  2.32383
  16  22.3015
  17  2.95667e-05
  18  6.7877e-05
  19  0.000111933
  20  14.2674
  21  1.61351e-05
  22  31.807
  23  9.83461
  24  0.262618
  25  0.127191
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  6.024e+01  4.092e+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:  9.741e-01  1.272e-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:  9.144e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.26
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 9.99e-08 +/- 6.78e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/614764/likelihoodResults_391737601_391996801_4FGL_J2136.2+0032_daily_bin588.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) = 7413.48017363
delta logL = 0.198513255989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7413.47683572
delta logL = 0.201851168945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.643       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3591       1.0000          .0000       10.000    
     3 'Normalizat'    .88308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98577       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=   7413.477     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      295 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.707        41.653        .55278E-04   -.12438E-03
   2  Index         3.3607        .86392        .99383E-02   -.29397E-04
   3  Normalizat    .88267        .26069        .35623E-03   -.60008E-03
   4  Prefactor     .98584        .12877        .17116E-03   -.13609E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.7068
  Index      = 3.36069
  Normalizat = 0.88267
  Prefactor  = 0.985844
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.477     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.707        39.937        .11056E-04   -1.4255    
   2  Index         3.3607        .82774        .39753E-03   -.33404    
   3  Normalizat    .88267        .26103        .71245E-04   -.97072    
   4  Prefactor     .98584        .12885        .34233E-04   -.93203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80177e-10
Minuit parameter uncertainties:
  1  39.9573
  2  0.832035
  3  0.261402
  4  0.128894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614764': 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) = 7413.47682763
delta logL = 0.201859252638

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.271e+01  3.996e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.361e+00  8.320e-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.858e-01  1.289e-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.827e-01  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 324.062 0.549
Photon Index (Free Index): 3.36 +/- 0.83
Photon Flux (Free Index): 1.24e-07 +/- 8.02e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.33e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', comment='SUCCESS', photon_flux='9.99e-08', energy_flux2='2.15e-05', photon_flux_error='6.78e-08', dlogl='2.02e-01', energy_flux='2.13e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-26 20:41:30.439267', photon_index_error2='0.83', photon_index2='3.36', ts='3.26', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.26e-07', energy_flux_error2='1.33e-05', EG='0.91', time_epoch_completed='1632714090.44', return_code='0', job_id='614764', GAL2='0.99', EG2='0.88', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='8.02e-08', ts2='3.77', photon_index='2.88' WHERE bin_id='588' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:41:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 614764: <4FGL_J2136.2+0032_daily_bin588> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin588> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 20:25:12 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:25:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 20:25:52 2021
Terminated at Sun Sep 26 20:41:30 2021
Results reported at Sun Sep 26 20:41:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin588 324.062 0.5488 391737601 391996801 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 :                                   771.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            978 sec.

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

