/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 3 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2136.2+0032_daily_bin390
RA = 324.062, Dec = 0.5488
tmin = 340416001, tmax = 340675201
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='610517', job_status='RUN', time_executed='2021-09-26 20:13:58.421359', time_epoch_executed='1632712438.42' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610517

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610517/ft1_4FGL_J2136.2+0032_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610517/ft2_4FGL_J2136.2+0032_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610517/ft1_4FGL_J2136.2+0032_daily_bin390.fits outfile=/scratch/kocevski/610517/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin390.fits ra=324.062 dec=0.5488 rad=12.0 tmin=340416001.0 tmax=340675201.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.78
user 6.48
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/610517/ft2_4FGL_J2136.2+0032_daily_bin390.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/610517/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/610517/ft1_filtered_4FGL_J2136.2+0032_daily_bin390.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610517/ft1_filtered_4FGL_J2136.2+0032_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/610517/ft2_4FGL_J2136.2+0032_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/610517/ltcube_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.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/610517/ft2_4FGL_J2136.2+0032_daily_bin390.fits
.....................!
real 14.30
user 13.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610517/ft1_filtered_4FGL_J2136.2+0032_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/610517/ft2_4FGL_J2136.2+0032_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/610517/ltcube_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.fits outfile=/scratch/kocevski/610517/expmap_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.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/610517/ltcube_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.fits
.....................!
real 192.89
user 186.13
sys 5.65

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/610517/ft1_filtered_4FGL_J2136.2+0032_daily_bin390.fits scfile=/scratch/kocevski/610517/ft2_4FGL_J2136.2+0032_daily_bin390.fits outfile=/scratch/kocevski/610517/cmap_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610517/ft1_filtered_4FGL_J2136.2+0032_daily_bin390.fits scfile=/scratch/kocevski/610517/ft2_4FGL_J2136.2+0032_daily_bin390.fits outfile=/scratch/kocevski/610517/cmap_HighResolution_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2633       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28113E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11441E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11437E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6820       1.0000         .10000E-03   10000.    
    16 'norm      '    .20332E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.431       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14914E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.861       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1766       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86975       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=   5977.719     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2970 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2609        9.8549        .11027E-05    .44823E-04
   2  Prefactor     .10000E-03    48.134        .21624E-05** at limit **
   3  Prefactor     9.5551        24.998       -.31718E-05    .19290E-04
   4  Prefactor     2.2239        39.587        .11126E-04    .46906E-04
   5  Prefactor     .10206E-03    72.149       -.80152E-05** at limit **
   6  Prefactor     40.022        34.611       -.67317E-07    .41517E-04
   7  Prefactor     10.046        48.463        .16695E-05    .79619E-04
   8  Prefactor     .10000E-03    5.6465        .40125E-07** at limit **
   9  Prefactor     8.1215        5.5368        .12319E-07    .24260E-04
  10  Prefactor     .10000E-03    1.8764       -.38827E-06** at limit **
  11  Prefactor     25.084        41.709        .56325E-06    .11276E-03
  12  Prefactor     52.872        49.764       -.37191E-06    .29711E-04
  13  Prefactor     .10000E-03    36.925        .42104E-05** at limit **
  14  Prefactor     .10000E-03    38.045       -.29638E-05** at limit **
  15  norm          2.6816        2.5290       -.32212E-07    .14765E-04
  16  norm          .10055E-03    15.164       -.16993E-05** at limit **
  17  Prefactor     .10000E-03    2.3009       -.67120E-08** at limit **
  18  Prefactor     14.425        16.107        .28349E-06    .75029E-04
  19  Prefactor     .10000E-03    37.442       -.24037E-05** at limit **
  20  Prefactor     .10008E-03    16.978        .24518E-05** at limit **
  21  Prefactor     .10000E-03    12.124       -.30261E-07** at limit **
  22  Prefactor     10.866        37.144        .13991E-05    .50961E-04
  23  Prefactor     10.758        12.914        .14010E-05    .20270E-03
  24  Normalizat    1.1766        .26169        .88125E-06    .28839E-03
  25  Prefactor     .86976        .12168       -.62113E-06    .43801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26087
  Prefactor  = 0.000100001
  Prefactor  = 9.55515
  Prefactor  = 2.22395
  Prefactor  = 0.000102057
  Prefactor  = 40.0218
  Prefactor  = 10.0463
  Prefactor  = 0.0001
  Prefactor  = 8.12147
  Prefactor  = 0.0001
  Prefactor  = 25.0838
  Prefactor  = 52.8715
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 2.68158
  norm       = 0.000100545
  Prefactor  = 0.0001
  Prefactor  = 14.4251
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 10.8657
  Prefactor  = 10.7583
  Normalizat = 1.17658
  Prefactor  = 0.869759
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.719     FROM HESSE     STATUS=OK           445 CALLS     3415 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2609        9.8957        .39656E-03   -1.5483    
   2  Prefactor     .10000E-03    48.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5551        25.226        .12964E-03   -1.5090    
   4  Prefactor     2.2239        41.899        .13804E-02   -1.5410    
   5  Prefactor     .10206E-03    53.738        .16460       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.022        34.638        .63358E-04   -1.4442    
   7  Prefactor     10.046        44.836        .12626E-03   -1.5074    
   8  Prefactor     .10000E-03    5.7734        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1215        5.5379        .14069E-03   -1.5138    
  10  Prefactor     .10000E-03    2.7741        .19149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.084        41.486        .79937E-04   -1.4706    
  12  Prefactor     52.872        49.693        .55160E-04   -1.4252    
  13  Prefactor     .10000E-03    37.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6816        2.5213        .11229E-03   -1.5380    
  16  norm          .10055E-03    14.396        .90499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3035        .11453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.425        15.916        .10544E-03   -1.4948    
  19  Prefactor     .10000E-03    38.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    89.957        .56036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.866        37.222        .12157E-03   -1.5049    
  23  Prefactor     10.758        12.914        .12205E-03   -1.5052    
  24  Normalizat    1.1766        .31376        .32247E-03   -.87330    
  25  Prefactor     .86976        .14573        .18387E-03   -.97206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59834e-09
Minuit parameter uncertainties:
  1  7.06595
  2  0.00034092
  3  25.2539
  4  19.3213
  5  0.021047
  6  34.6557
  7  42.4998
  8  5.49637e-06
  9  5.53828
  10  2.46045e-05
  11  41.5338
  12  49.7315
  13  0.000568301
  14  0.000374037
  15  2.52138
  16  0.00560452
  17  1.97012e-07
  18  15.9208
  19  0.00023519
  20  0.00520646
  21  1.79121e-05
  22  37.3012
  23  12.9178
  24  0.314267
  25  0.145791
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.508e+01  4.153e+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:  8.698e-01  1.458e-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.177e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/610517/likelihoodResults_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.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) = 5977.69328413
delta logL = 0.0252605685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5977.69084957
delta logL = 0.0276951206042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.888       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2049       1.0000          .0000       10.000    
     3 'Normalizat'    1.1676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87325       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=   5977.691     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      278 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.887        41.661        .83726E-04    .33102E-03
   2  Index         3.2049        1.5385        .16360E-01    .96808E-04
   3  Normalizat    1.1676        .29680        .32355E-03   -.24385E-04
   4  Prefactor     .87325        .14531        .18354E-03   -.11694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8869
  Index      = 3.20493
  Normalizat = 1.16758
  Prefactor  = 0.87325
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.691     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.887        39.704        .16745E-04   -1.4751    
   2  Index         3.2049        1.4677        .65442E-03   -.36721    
   3  Normalizat    1.1676        .29732        .12942E-04   -.87611    
   4  Prefactor     .87325        .14546        .36709E-04   -.97082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84819e-10
Minuit parameter uncertainties:
  1  39.7496
  2  1.49299
  3  0.29775
  4  0.145529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610517': 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) = 5977.69084957
delta logL = 0.0276951210544

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.289e+01  3.975e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.205e+00  1.493e+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:  8.733e-01  1.455e-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.168e+00  2.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/610517/cmap_HighResolution_340416001_340675201_4FGL_J2136.2+0032_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-09-26 20:26:08.357438', job_id='610517', GAL2='0.87', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1632713168.36', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.77e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='390' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:26:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 610517: <4FGL_J2136.2+0032_daily_bin390> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin390> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 20:10:20 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:13:47 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:13:47 2021
Terminated at Sun Sep 26 20:26:09 2021
Results reported at Sun Sep 26 20:26:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin390 324.062 0.5488 340416001 340675201 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            949 sec.

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

