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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin749
RA = 324.062, Dec = 0.5488
tmin = 433468801, tmax = 433728001
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='615960', job_status='RUN', time_executed='2021-09-26 20:33:09.959844', time_epoch_executed='1632713589.96' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/615960/ft1_4FGL_J2136.2+0032_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/615960/ft2_4FGL_J2136.2+0032_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615960/ft1_4FGL_J2136.2+0032_daily_bin749.fits outfile=/scratch/kocevski/615960/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin749.fits ra=324.062 dec=0.5488 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.07
user 5.72
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615960/ft2_4FGL_J2136.2+0032_daily_bin749.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/615960/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/615960/ft1_filtered_4FGL_J2136.2+0032_daily_bin749.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/615960/ft1_filtered_4FGL_J2136.2+0032_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/615960/ft2_4FGL_J2136.2+0032_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/615960/ltcube_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.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/615960/ft2_4FGL_J2136.2+0032_daily_bin749.fits
.....................!
real 14.45
user 14.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615960/ft1_filtered_4FGL_J2136.2+0032_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/615960/ft2_4FGL_J2136.2+0032_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/615960/ltcube_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.fits outfile=/scratch/kocevski/615960/expmap_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.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/615960/ltcube_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.fits
.....................!
real 192.05
user 186.36
sys 4.91

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/615960/ft1_filtered_4FGL_J2136.2+0032_daily_bin749.fits scfile=/scratch/kocevski/615960/ft2_4FGL_J2136.2+0032_daily_bin749.fits outfile=/scratch/kocevski/615960/cmap_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615960/ft1_filtered_4FGL_J2136.2+0032_daily_bin749.fits scfile=/scratch/kocevski/615960/ft2_4FGL_J2136.2+0032_daily_bin749.fits outfile=/scratch/kocevski/615960/cmap_HighResolution_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37698E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59725E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2173       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.441       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67309       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84190       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=   4192.344     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     3329 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2897        4.0862        .18025E-06    .44362E-04
   2  Prefactor     61.206        55.542       -.27947E-06   -.98510E-05
   3  Prefactor     33.115        40.385        .85095E-06    .18846E-04
   4  Prefactor     .10000E-03    52.524        .15036E-05** at limit **
   5  Prefactor     .10000E-03    241.63       -.67057E-05** at limit **
   6  Prefactor     39.744        37.066        .38890E-07    .12394E-04
   7  Prefactor     88.784        65.325        .64483E-06    .62198E-04
   8  Prefactor     32.301        18.279        .23052E-07    .32135E-04
   9  Prefactor     .10000E-03    3.3758        .30598E-06** at limit **
  10  Prefactor     .10000E-03    2.0284       -.14092E-05** at limit **
  11  Prefactor     .10000E-03    16.635       -.42342E-06** at limit **
  12  Prefactor     .10000E-03    110.02       -.12347E-05** at limit **
  13  Prefactor     7.0421        411.30       -.63348E-05   -.30182E-05
  14  Prefactor     .10000E-03    31.072        .15404E-06** at limit **
  15  norm          .10000E-03    4.1606       -.15181E-05** at limit **
  16  norm          .10000E-03    12.921       -.10565E-06** at limit **
  17  Prefactor     .10000E-03    8.1211        .29851E-06** at limit **
  18  Prefactor     .10000E-03    6.4751        .16765E-06** at limit **
  19  Prefactor     8.2218        39.467       -.41609E-06   -.64563E-05
  20  Prefactor     .10000E-03    41.466        .88800E-06** at limit **
  21  Prefactor     .10000E-03    36.977        .85769E-06** at limit **
  22  Prefactor     32.450        44.571        .29574E-07    .15020E-05
  23  Prefactor     12.336        19.467       -.16038E-07   -.11616E-04
  24  Normalizat    .67306        .30215       -.34434E-05    .59990E-04
  25  Prefactor     .84185        .13445        .10536E-05   -.32101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28971
  Prefactor  = 61.2055
  Prefactor  = 33.1148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.7444
  Prefactor  = 88.7836
  Prefactor  = 32.3006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04212
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.22179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4499
  Prefactor  = 12.3364
  Normalizat = 0.673058
  Prefactor  = 0.841851
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.344     FROM HESSE     STATUS=OK           425 CALLS     3754 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2897        4.0590        .16632E-03   -1.5405    
   2  Prefactor     61.206        55.593        .25632E-03   -1.4142    
   3  Prefactor     33.115        40.338        .69644E-04   -1.4556    
   4  Prefactor     .10000E-03    52.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    243.43        .21291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.744        37.055        .63576E-04   -1.4446    
   7  Prefactor     88.784        65.798        .21315E-03   -1.3821    
   8  Prefactor     32.301        18.267        .70508E-04   -1.4571    
   9  Prefactor     .10000E-03    3.4108        .11624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0795        .90302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    110.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0421        419.62        .14956E-03   -1.5177    
  14  Prefactor     .10000E-03    31.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2092        .25490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.834        .35696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4867        .16094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2218        39.544        .13986E-03   -1.5134    
  20  Prefactor     .10000E-03    42.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.450        44.517        .70351E-04   -1.4568    
  23  Prefactor     12.336        19.528        .11407E-03   -1.5005    
  24  Normalizat    .67306        .34000        .37631E-03   -1.0497    
  25  Prefactor     .84185        .15561        .16241E-03   -.98204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24532e-10
Minuit parameter uncertainties:
  1  4.05944
  2  55.6401
  3  40.3711
  4  6.94844e-05
  5  0.000561999
  6  37.0765
  7  65.8525
  8  18.2704
  9  5.84642e-06
  10  9.71211e-06
  11  3.42931e-06
  12  3.21371e-06
  13  109.534
  14  3.79905e-05
  15  1.47667e-06
  16  8.60876e-06
  17  0.000318828
  18  7.2586e-06
  19  36.1009
  20  6.27088e-05
  21  5.2563e-05
  22  44.5625
  23  19.5376
  24  0.34107
  25  0.155695
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.429e-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.419e-01  1.557e-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:  6.731e-01  3.411e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615960/likelihoodResults_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.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) = 4192.34397035
delta logL = -0.000286073479401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4192.34368722
delta logL = -2.9424791137e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8823       1.0000          .0000       10.000    
     3 'Normalizat'    .67306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84185       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=   4192.044     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      333 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30376E-01    2.7048        .36941E-02    .39794E-02
   2  Index        10.0000        9.9423        .50000    ** at limit **
   3  Normalizat    .61370        .10154        .37630E-02    .84829E-04
   4  Prefactor     .86221        .48719E-01    .16241E-03   -.13636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0303759
  Index      = 10
  Normalizat = 0.613698
  Prefactor  = 0.862213
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.044     FROM HESSE     STATUS=OK            35 CALLS      368 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30376E-01    .54343E-01    .17393E-03   -1.5673    
   2  Index        10.0000        7.5892        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .61370        .32311        .75260E-03   -1.0741    
   4  Prefactor     .86221        .15455        .32481E-04   -.97474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75425e-12
Minuit parameter uncertainties:
  1  0.0543427
  2  1.18605e-05
  3  0.324107
  4  0.154626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615960': 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) = 4192.04372746
delta logL = 0.299956819556

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.038e-02  5.434e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.000e+01  1.186e-05  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.622e-01  1.546e-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:  6.137e-01  3.241e-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/615960/cmap_HighResolution_433468801_433728001_4FGL_J2136.2+0032_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.40e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-26 20:43:18.778845', job_id='615960', GAL2='0.86', fit_tolerance='1e-08', EG2='0.61', EG='0.67', time_epoch_completed='1632714198.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.00e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='749' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:43:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 615960: <4FGL_J2136.2+0032_daily_bin749> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin749 324.062 0.5488 433468801 433728001 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            788 sec.

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

