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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin656
RA = 324.062, Dec = 0.5488
tmin = 409363201, tmax = 409622401
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='612026', job_status='RUN', time_executed='2021-09-26 20:20:50.906187', time_epoch_executed='1632712850.91' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/612026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/612026/ft1_4FGL_J2136.2+0032_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/612026/ft2_4FGL_J2136.2+0032_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/612026/ft1_4FGL_J2136.2+0032_daily_bin656.fits outfile=/scratch/kocevski/612026/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin656.fits ra=324.062 dec=0.5488 rad=12.0 tmin=409363201.0 tmax=409622401.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 4.66
user 4.39
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/612026/ft1_filtered_4FGL_J2136.2+0032_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/612026/ft2_4FGL_J2136.2+0032_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/612026/ltcube_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.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/612026/ft2_4FGL_J2136.2+0032_daily_bin656.fits
.....................!
real 13.71
user 13.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/612026/ft1_filtered_4FGL_J2136.2+0032_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/612026/ft2_4FGL_J2136.2+0032_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/612026/ltcube_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.fits outfile=/scratch/kocevski/612026/expmap_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.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/612026/ltcube_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.fits
.....................!
real 155.83
user 151.83
sys 3.63

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/612026/ft1_filtered_4FGL_J2136.2+0032_daily_bin656.fits scfile=/scratch/kocevski/612026/ft2_4FGL_J2136.2+0032_daily_bin656.fits outfile=/scratch/kocevski/612026/cmap_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.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.46
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/612026/ft1_filtered_4FGL_J2136.2+0032_daily_bin656.fits scfile=/scratch/kocevski/612026/ft2_4FGL_J2136.2+0032_daily_bin656.fits outfile=/scratch/kocevski/612026/cmap_HighResolution_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28458       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    109.65       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    98.443       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.981       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.511       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6948       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72376       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=   6021.427     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3005 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3994        .14871E-08** at limit **
   2  Prefactor     .10000E-03    55.925        .17813E-04** at limit **
   3  Prefactor     .10000E-03    9.9155       -.91083E-07** at limit **
   4  Prefactor     .10000E-03    60.757       -.20804E-04** at limit **
   5  Prefactor     52.558        90.391       -.68916E-04    .19593E-04
   6  Prefactor     42.919        32.087        .85351E-05    .62224E-04
   7  Prefactor     .10000E-03    59.184       -.70183E-05** at limit **
   8  Prefactor     .10000E-03    6.6063       -.17288E-06** at limit **
   9  Prefactor     .10000E-03    3.5330       -.14913E-06** at limit **
  10  Prefactor     .10000E-03    2.1608        .27970E-06** at limit **
  11  Prefactor     .10000E-03    23.248       -.54394E-06** at limit **
  12  Prefactor     .10002E-03    39.439       -.99397E-06** at limit **
  13  Prefactor     .10000E-03    71.060        .12232E-04** at limit **
  14  Prefactor     109.59        93.461       -.27440E-04    .12345E-04
  15  norm          .10000E-03    2.7814       -.29661E-06** at limit **
  16  norm          98.428        46.354        .73213E-05    .37581E-04
  17  Prefactor     .10000E-03    7.3042        .40785E-06** at limit **
  18  Prefactor     12.400        16.939       -.97574E-06    .66623E-05
  19  Prefactor     .10000E-03    14.171        .15738E-06** at limit **
  20  Prefactor     .10000E-03    20.947        .59447E-06** at limit **
  21  Prefactor     28.967        35.406        .51905E-05    .21013E-04
  22  Prefactor     34.491        63.300       -.14163E-04    .81933E-05
  23  Prefactor     .10000E-03    15.867       -.41866E-06** at limit **
  24  Normalizat    1.6954        .28035        .70267E-05   -.86465E-04
  25  Prefactor     .72369        .12400        .10277E-05    .30631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.5585
  Prefactor  = 42.9195
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 109.594
  norm       = 0.0001
  norm       = 98.4276
  Prefactor  = 0.0001
  Prefactor  = 12.4002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9665
  Prefactor  = 34.4915
  Prefactor  = 0.0001
  Normalizat = 1.69541
  Prefactor  = 0.723686
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.427     FROM HESSE     STATUS=OK           419 CALLS     3424 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4218        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.558        90.591        .55278E-04   -1.4257    
   6  Prefactor     42.919        32.146        .61183E-04   -1.4397    
   7  Prefactor     .10000E-03    59.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5596        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2483        .22239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    41.161        .14969       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    71.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     109.59        93.521        .19206E-03   -1.3610    
  15  norm          .10000E-03    2.8261        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          98.428        46.372        .40516E-04   -1.3720    
  17  Prefactor     .10000E-03    7.3185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.400        16.934        .11374E-03   -1.5004    
  19  Prefactor     .10000E-03    14.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.967        35.527        .74421E-04   -1.4631    
  22  Prefactor     34.491        63.370        .68215E-04   -1.4533    
  23  Prefactor     .10000E-03    15.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6954        .33774        .31216E-03   -.72426    
  25  Prefactor     .72369        .14886        .20862E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84743e-10
Minuit parameter uncertainties:
  1  2.02825e-07
  2  0.000433331
  3  2.32276e-05
  4  2.69667e-05
  5  90.8293
  6  32.1586
  7  0.000649986
  8  4.2326e-05
  9  2.49193e-05
  10  4.38995e-05
  11  0.00020063
  12  0.00190768
  13  0.000109105
  14  93.6473
  15  4.86121e-05
  16  46.3894
  17  0.000120132
  18  16.9407
  19  1.91144e-05
  20  0.000119435
  21  35.5526
  22  63.4943
  23  6.52596e-05
  24  0.3382
  25  0.148941
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.006e-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:  7.237e-01  1.489e-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.695e+00  3.382e-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.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/612026/likelihoodResults_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.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) = 6021.42691602
delta logL = -0.00020458351446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6021.4267111
delta logL = 3.36915036314e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1190       1.0000          .0000       10.000    
     3 'Normalizat'    1.6955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72368       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=   6021.427     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      257 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .60264        .12220    ** at limit **
   2  Index         4.4251        7.7736        .50000        .82900E-07
   3  Normalizat    1.6954        .19673E-02    .31216E-03   -.35835E-03
   4  Prefactor     .72368        .91087E-03    .20863E-03   -.55422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 4.42509
  Normalizat = 1.69542
  Prefactor  = 0.723682
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.427     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    423.73        .41144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4251        7.4924        .50000       -.11524    
   3  Normalizat    1.6954        .18410E-01    .62432E-04   -.72426    
   4  Prefactor     .72368        .85240E-02    .41725E-04   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36707e-09
Minuit parameter uncertainties:
  1  0.00174112
  2  1367.2
  3  0.0184101
  4  0.00852397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/612026': 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): 102
logL (Free Index) = 6021.4267101
delta logL = 1.33684625325e-06

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.741e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  4.425e+00  1.367e+03  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:  7.237e-01  8.524e-03  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.695e+00  1.841e-02  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/612026/cmap_HighResolution_409363201_409622401_4FGL_J2136.2+0032_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-26 20:30:25.454355', job_id='612026', GAL2='0.72', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1632713425.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='656' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:30:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 612026: <4FGL_J2136.2+0032_daily_bin656> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin656 324.062 0.5488 409363201 409622401 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 :                                   570.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            904 sec.

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

