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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin660
RA = 324.062, Dec = 0.5488
tmin = 410400001, tmax = 410659201
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='612032', job_status='RUN', time_executed='2021-09-26 20:23:11.582202', time_epoch_executed='1632712991.58' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/612032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/612032/ft1_4FGL_J2136.2+0032_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/612032/ft2_4FGL_J2136.2+0032_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/612032/ft1_4FGL_J2136.2+0032_daily_bin660.fits outfile=/scratch/kocevski/612032/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin660.fits ra=324.062 dec=0.5488 rad=12.0 tmin=410400001.0 tmax=410659201.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 5.39
user 5.12
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/612032/ft1_filtered_4FGL_J2136.2+0032_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/612032/ft2_4FGL_J2136.2+0032_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/612032/ltcube_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.fits outfile=/scratch/kocevski/612032/expmap_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.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/612032/ltcube_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.fits
.....................!
real 155.00
user 150.90
sys 3.84

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/612032/ft1_filtered_4FGL_J2136.2+0032_daily_bin660.fits scfile=/scratch/kocevski/612032/ft2_4FGL_J2136.2+0032_daily_bin660.fits outfile=/scratch/kocevski/612032/cmap_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/612032/ft1_filtered_4FGL_J2136.2+0032_daily_bin660.fits scfile=/scratch/kocevski/612032/ft2_4FGL_J2136.2+0032_daily_bin660.fits outfile=/scratch/kocevski/612032/cmap_HighResolution_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.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.51
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5137       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.979       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.097       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.022       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5701       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62497       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=   4751.377     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2869 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7481        4.3984        .61892E-06   -.27590E-04
   2  Prefactor     7.5286        30.445       -.16654E-06   -.40698E-04
   3  Prefactor     .10000E-03    17.193        .57448E-07** at limit **
   4  Prefactor     .10000E-03    14.918       -.21303E-06** at limit **
   5  Prefactor     78.670        71.029        .21813E-06    .90668E-05
   6  Prefactor     .10000E-03    8.9130       -.35950E-08** at limit **
   7  Prefactor     .10000E-03    13.817        .78236E-08** at limit **
   8  Prefactor     9.0042        9.3179       -.16748E-06   -.57849E-04
   9  Prefactor     17.983        10.909        .85433E-07   -.35037E-05
  10  Prefactor     .10000E-03    1.8532       -.14824E-06** at limit **
  11  Prefactor     31.106        32.511       -.10244E-06   -.52295E-04
  12  Prefactor     .10000E-03    20.632       -.21262E-06** at limit **
  13  Prefactor     21.238        113.89       -.73225E-05   -.20766E-04
  14  Prefactor     .10000E-03    486.11        .90563E-06** at limit **
  15  norm          .10000E-03    2.5619        .62292E-05** at limit **
  16  norm          .10000E-03    27.185        .12729E-05** at limit **
  17  Prefactor     .65609        9.7088        .77024E-06   -.16901E-03
  18  Prefactor     .10000E-03    31.423       -.55724E-06** at limit **
  19  Prefactor     .10000E-03    20.168       -.20859E-06** at limit **
  20  Prefactor     .10000E-03    16.682        .56992E-07** at limit **
  21  Prefactor     .10000E-03    32.534       -.51305E-06** at limit **
  22  Prefactor     .10000E-03    55.359        .75208E-07** at limit **
  23  Prefactor     17.023        18.427        .33835E-07   -.38999E-05
  24  Normalizat    1.5700        .27995       -.16408E-07   -.14882E-03
  25  Prefactor     .62487        .12412       -.37411E-06   -.16599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74806
  Prefactor  = 7.52858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.6699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00421
  Prefactor  = 17.9834
  Prefactor  = 0.0001
  Prefactor  = 31.1058
  Prefactor  = 0.0001
  Prefactor  = 21.2378
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.656088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0234
  Normalizat = 1.57002
  Prefactor  = 0.624871
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.377     FROM HESSE     STATUS=OK           417 CALLS     3286 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7481        4.3715        .21716E-03   -1.5444    
   2  Prefactor     7.5286        30.519        .14631E-03   -1.5159    
   3  Prefactor     .10000E-03    17.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     78.670        71.153        .45283E-04   -1.3932    
   6  Prefactor     .10000E-03    8.9170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0042        9.3203        .66786E-03   -1.5108    
   9  Prefactor     17.983        10.946        .94457E-04   -1.4860    
  10  Prefactor     .10000E-03    1.8846        .91544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.106        32.552        .71851E-04   -1.4592    
  12  Prefactor     .10000E-03    20.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.238        114.63        .87354E-04   -1.4786    
  14  Prefactor     .10000E-03    492.30        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5660        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .65609        30.987        .41077E-02   -1.5546    
  18  Prefactor     .10000E-03    32.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.023        18.452        .97077E-04   -1.4883    
  24  Normalizat    1.5700        .33507        .29116E-03   -.75829    
  25  Prefactor     .62487        .14850        .19824E-03   -1.0655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19368e-10
Minuit parameter uncertainties:
  1  4.37225
  2  30.3427
  3  5.85687e-05
  4  6.16487e-05
  5  71.2303
  6  3.79786e-07
  7  1.78438e-05
  8  9.32179
  9  10.9474
  10  2.64585e-06
  11  32.5709
  12  7.06408e-05
  13  98.9755
  14  0.000401241
  15  4.42043e-05
  16  0.00020612
  17  9.02206
  18  3.12926e-05
  19  7.79938e-05
  20  6.90948e-05
  21  0.000143235
  22  7.16687e-05
  23  18.458
  24  0.335549
  25  0.148593
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.111e+01  3.257e+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:  6.249e-01  1.486e-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.570e+00  3.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 5.39e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/612032/likelihoodResults_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.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) = 4750.59142924
delta logL = 0.785331387093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4750.42060578
delta logL = 0.956154846496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6326       1.0000          .0000       10.000    
     3 'Normalizat'    1.6087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61379       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.

 FCN=   4750.421     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.135        14.237        .27654E-02   -.14858E-04
   2  Index         1.6327        .41766        .19589       -.55115E-04
   3  Normalizat    1.6088        .27022        .65168E-01    .49366E-05
   4  Prefactor     .61373        .12276        .41242E-01    .14663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1355
  Index      = 1.63266
  Normalizat = 1.60876
  Prefactor  = 0.613734
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.421     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.135        21.200        .11061E-03   -1.4983    
   2  Index         1.6327        .73422        .73274E-02   -.73889    
   3  Normalizat    1.6088        .32246        .28824E-03   -.74766    
   4  Prefactor     .61373        .14644        .19979E-03   -1.0701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96571e-09
Minuit parameter uncertainties:
  1  21.2125
  2  0.739136
  3  0.322878
  4  0.146529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/612032': 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) = 4750.42060464
delta logL = 0.956155990182

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.314e+01  2.121e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.633e+00  7.391e-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:  6.137e-01  1.465e-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.609e+00  3.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.03
Ra Dec: 324.062 0.549
Photon Index (Free Index): 1.63 +/- 0.74
Photon Flux (Free Index): 1.44e-08 +/- 2.09e-08
Energy Flux (Free Index): 2.93e-05 +/- 5.15e-05

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/612032/cmap_HighResolution_410400001_410659201_4FGL_J2136.2+0032_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='2.93e-05', photon_flux_error='5.39e-08', dlogl='9.56e-01', energy_flux='1.10e-05', photon_flux2='1.44e-08', job_status='DONE', time_completed='2021-09-26 20:31:34.140886', photon_index_error2='0.74', photon_index2='1.63', ts='2.11', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='5.15e-05', EG='1.57', time_epoch_completed='1632713494.14', return_code='0', job_id='612032', GAL2='0.61', EG2='1.61', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.09e-08', ts2='4.03', photon_index='2.88' WHERE bin_id='660' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 612032: <4FGL_J2136.2+0032_daily_bin660> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin660> 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) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:20:41 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:41 2021
Terminated at Sun Sep 26 20:31:34 2021
Results reported at Sun Sep 26 20:31:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin660 324.062 0.5488 410400001 410659201 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 :                                   500.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            972 sec.

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

