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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1336
RA = 324.062, Dec = 0.5488
tmin = 585619201, tmax = 585878401
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='616055', job_status='RUN', time_executed='2021-09-26 20:31:01.287064', time_epoch_executed='1632713461.29' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/616055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/616055/ft1_4FGL_J2136.2+0032_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/616055/ft2_4FGL_J2136.2+0032_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/616055/ft1_4FGL_J2136.2+0032_daily_bin1336.fits outfile=/scratch/kocevski/616055/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1336.fits ra=324.062 dec=0.5488 rad=12.0 tmin=585619201.0 tmax=585878401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.69
user 2.48
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/616055/ft1_filtered_4FGL_J2136.2+0032_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/616055/ft2_4FGL_J2136.2+0032_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/616055/ltcube_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.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/616055/ft2_4FGL_J2136.2+0032_daily_bin1336.fits
.....................!
real 14.48
user 13.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/616055/ft1_filtered_4FGL_J2136.2+0032_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/616055/ft2_4FGL_J2136.2+0032_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/616055/ltcube_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.fits outfile=/scratch/kocevski/616055/expmap_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.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/616055/ltcube_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.fits
.....................!
real 193.54
user 185.58
sys 5.71

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/616055/ft1_filtered_4FGL_J2136.2+0032_daily_bin1336.fits scfile=/scratch/kocevski/616055/ft2_4FGL_J2136.2+0032_daily_bin1336.fits outfile=/scratch/kocevski/616055/cmap_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.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.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    129.16       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.112       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1452       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.486       1.0000         .10000E-03   10000.    
    15 'norm      '    .47557       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .48319E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.699       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.879       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.761       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .39029       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97869       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=   3555.236     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2920 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.811        .68735E-06** at limit **
   2  Prefactor     11.072        126.41       -.10534E-05   -.45125E-05
   3  Prefactor     .10000E-03    24.623        .92806E-07** at limit **
   4  Prefactor     .10000E-03    8.9037        .91307E-07** at limit **
   5  Prefactor     .10000E-03    57.932       -.14221E-05** at limit **
   6  Prefactor     40.364        37.839        .98127E-06    .90860E-04
   7  Prefactor     129.16        139.28        .70387E-06    .24178E-04
   8  Prefactor     .10000E-03    3.0300        .13797E-06** at limit **
   9  Prefactor     12.117        26.853        .51338E-06    .28531E-04
  10  Prefactor     1.1441        5.1812        .71198E-06    .36960E-04
  11  Prefactor     .10000E-03    94.626        .22376E-05** at limit **
  12  Prefactor     .10000E-03    83.583       -.14871E-06** at limit **
  13  Prefactor     .10000E-03    41.680        .14384E-05** at limit **
  14  Prefactor     33.589        61.989        .25612E-05    .11581E-04
  15  norm          .47573        2.3640        .58203E-06   -.19797E-03
  16  norm          .10000E-03    10.302       -.77912E-07** at limit **
  17  Prefactor     .10000E-03    42.466        .86847E-05** at limit **
  18  Prefactor     9.4586        17.816        .10679E-05    .10410E-03
  19  Prefactor     .10000E-03    12.488        .24270E-06** at limit **
  20  Prefactor     13.700        17.324        .19666E-06    .62470E-04
  21  Prefactor     21.889        30.286        .12069E-05    .89324E-04
  22  Prefactor     29.758        33.951        .89459E-06    .67989E-04
  23  Prefactor     .10000E-03    54.357        .18939E-06** at limit **
  24  Normalizat    .39011        .38472       -.92562E-05    .25392E-04
  25  Prefactor     .97877        .17322        .18719E-05    .41512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.0717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 40.3642
  Prefactor  = 129.165
  Prefactor  = 0.0001
  Prefactor  = 12.1166
  Prefactor  = 1.1441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5888
  norm       = 0.475728
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.45861
  Prefactor  = 0.0001
  Prefactor  = 13.6997
  Prefactor  = 21.8891
  Prefactor  = 29.7582
  Prefactor  = 0.000100001
  Normalizat = 0.39011
  Prefactor  = 0.978774
 **********
 **   18 **HESSE 
 **********

 FCN=   3555.236     FROM HESSE     STATUS=OK           425 CALLS     3345 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.072        125.99        .12059E-03   -1.5042    
   3  Prefactor     .10000E-03    24.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9072        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.364        38.132        .63094E-04   -1.4436    
   7  Prefactor     129.16        131.85        .35426E-04   -1.3430    
   8  Prefactor     .10000E-03    3.0574        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.117        26.904        .11510E-03   -1.5012    
  10  Prefactor     1.1441        4.6523        .22171E-03   -1.5494    
  11  Prefactor     .10000E-03    94.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    83.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.589        62.070        .69247E-04   -1.4548    
  15  norm          .47573        3.5233        .15673E-02   -1.5570    
  16  norm          .10000E-03    10.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.205        .39055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4586        17.875        .13034E-03   -1.5093    
  19  Prefactor     .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.700        17.305        .10822E-03   -1.4968    
  21  Prefactor     21.889        30.301        .85631E-04   -1.4772    
  22  Prefactor     29.758        34.050        .73442E-04   -1.4616    
  23  Prefactor     .10000E-03    55.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .39011        .39053        .48631E-03   -1.1782    
  25  Prefactor     .97877        .17899        .15542E-03   -.93440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58596e-09
Minuit parameter uncertainties:
  1  0.000126437
  2  74.8973
  3  9.34669e-05
  4  5.78311e-06
  5  0.000356683
  6  38.1551
  7  132.153
  8  8.26366e-06
  9  26.9306
  10  4.61462
  11  0.000326024
  12  0.000209896
  13  0.000256381
  14  62.1893
  15  2.58925
  16  1.68464e-05
  17  0.000366556
  18  17.885
  19  1.88348e-05
  20  17.3111
  21  30.3218
  22  34.0722
  23  0.000361613
  24  0.393297
  25  0.179103
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.260e-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:  9.788e-01  1.791e-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:  3.901e-01  3.933e-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: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/616055/likelihoodResults_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.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) = 3555.2364491
delta logL = -5.01577369505e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3555.23639902
delta logL = -8.26457835501e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7679       1.0000          .0000       10.000    
     3 'Normalizat'    .39011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97877       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3555.216     FROM MIGRAD    STATUS=FAILED       162 CALLS      370 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1976        504.10        .18142E-01    .41754E-03
   2  Index         4.8536        7.1747        .50000        .16675E-04
   3  Normalizat    .36233        .40853E-01    .48637E-02    .12623E-03
   4  Prefactor     .98761        .20253E-01    .15542E-03    .34746E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3555.216     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      453 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1976        504.10        .51408E-03    .41754E-03
   2  Index         4.8536        7.1747        .51870E-02    .16675E-04
   3  Normalizat    .36233        .40853E-01    .15309E-03    .12623E-03
   4  Prefactor     .98761        .20253E-01    .18677E-04    .34746E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3555.216     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      489 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1976        94.474        .47953E-03    .55002E-05
   2  Index         4.8536        7.4061        .21115E-01    .34884E-05
   3  Normalizat    .36233        .38057        .97274E-03   -.52593E-06
   4  Prefactor     .98761        .18232        .62166E-05    .29260E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1976
  Index      = 4.8536
  Normalizat = 0.362334
  Prefactor  = 0.987607
 **********
 **   18 **HESSE 
 **********

 FCN=   3555.216     FROM HESSE     STATUS=OK            25 CALLS      514 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1976        41.085        .19181E-04   -1.5350    
   2  Index         4.8536        7.1870        .84460E-03   -.29283E-01
   3  Normalizat    .36233        .37643        .38909E-04   -1.1930    
   4  Prefactor     .98761        .18141        .12433E-05   -.93144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97735e-13
Minuit parameter uncertainties:
  1  22.9427
  2  5.49713
  3  0.379104
  4  0.181526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/616055': 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) = 3555.21619196
delta logL = 0.0202069790985

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.198e+00  2.294e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  4.854e+00  5.497e+00  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.876e-01  1.815e-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:  3.623e-01  3.791e-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/616055/cmap_HighResolution_585619201_585878401_4FGL_J2136.2+0032_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-09-26 20:39:55.051865', job_id='616055', GAL2='0.99', fit_tolerance='1e-08', EG2='0.36', EG='0.39', time_epoch_completed='1632713995.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.02e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1336' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:39:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 616055: <4FGL_J2136.2+0032_daily_bin1336> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1336 324.062 0.5488 585619201 585878401 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 :                                   527.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            575 sec.

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

