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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1076
RA = 324.062, Dec = 0.5488
tmin = 518227201, tmax = 518486401
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='614857', job_status='RUN', time_executed='2021-09-26 20:26:45.327797', time_epoch_executed='1632713205.33' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614857

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614857/ft1_4FGL_J2136.2+0032_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614857/ft2_4FGL_J2136.2+0032_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614857/ft1_4FGL_J2136.2+0032_daily_bin1076.fits outfile=/scratch/kocevski/614857/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1076.fits ra=324.062 dec=0.5488 rad=12.0 tmin=518227201.0 tmax=518486401.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 3.64
user 3.36
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614857/ft1_filtered_4FGL_J2136.2+0032_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/614857/ft2_4FGL_J2136.2+0032_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/614857/ltcube_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.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/614857/ft2_4FGL_J2136.2+0032_daily_bin1076.fits
.....................!
real 13.35
user 12.93
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614857/ft1_filtered_4FGL_J2136.2+0032_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/614857/ft2_4FGL_J2136.2+0032_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/614857/ltcube_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.fits outfile=/scratch/kocevski/614857/expmap_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.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/614857/ltcube_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.fits
.....................!
real 191.75
user 184.74
sys 5.86

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/614857/ft1_filtered_4FGL_J2136.2+0032_daily_bin1076.fits scfile=/scratch/kocevski/614857/ft2_4FGL_J2136.2+0032_daily_bin1076.fits outfile=/scratch/kocevski/614857/cmap_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.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.64
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    129.44       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4247       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12312E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.197       1.0000         .10000E-03   10000.    
    15 'norm      '    .94656       1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45644E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.675       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82127       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=   6233.290     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2923 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5489       -.14437E-05** at limit **
   2  Prefactor     .10000E-03    27.956       -.10769E-05** at limit **
   3  Prefactor     8.8973        14.299       -.32848E-06    .25514E-04
   4  Prefactor     .10000E-03    6.9520       -.52009E-07** at limit **
   5  Prefactor     129.42        70.119        .85218E-06    .18854E-03
   6  Prefactor     18.671        26.199       -.46166E-09    .93596E-04
   7  Prefactor     .10000E-03    44.656        .38127E-06** at limit **
   8  Prefactor     3.5904        4.1933        .36586E-06    .62022E-03
   9  Prefactor     1.4245        4.1212       -.24254E-06    .33371E-05
  10  Prefactor     .10000E-03    1.4836       -.10522E-05** at limit **
  11  Prefactor     .10000E-03    61.326       -.33978E-05** at limit **
  12  Prefactor     31.874        43.958        .55504E-06    .12953E-03
  13  Prefactor     .10000E-03    132.76       -.96007E-06** at limit **
  14  Prefactor     24.324        46.532       -.35473E-06   -.25045E-03
  15  norm          .94478        1.7435       -.33860E-07    .52111E-04
  16  norm          .10000E-03    21.582       -.84383E-06** at limit **
  17  Prefactor     .10079E-03    18.665        .50603E-05** at limit **
  18  Prefactor     .10000E-03    9.9328       -.82081E-06** at limit **
  19  Prefactor     14.366        18.057        .36082E-06   -.86380E-05
  20  Prefactor     .10000E-03    7.1081       -.37646E-06** at limit **
  21  Prefactor     10.639        15.843        .19820E-06    .25746E-04
  22  Prefactor     .10000E-03    20.768       -.27585E-06** at limit **
  23  Prefactor     15.676        15.507        .57628E-07    .67701E-04
  24  Normalizat    1.1005        .24395       -.25958E-05    .39221E-03
  25  Prefactor     .82146        .11662        .27397E-05    .11764E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 8.89732
  Prefactor  = 0.0001
  Prefactor  = 129.423
  Prefactor  = 18.6711
  Prefactor  = 0.0001
  Prefactor  = 3.59036
  Prefactor  = 1.42453
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 31.8743
  Prefactor  = 0.0001
  Prefactor  = 24.3237
  norm       = 0.944779
  norm       = 0.0001
  Prefactor  = 0.000100787
  Prefactor  = 0.000100001
  Prefactor  = 14.3661
  Prefactor  = 0.0001
  Prefactor  = 10.6388
  Prefactor  = 0.0001
  Prefactor  = 15.6756
  Normalizat = 1.10053
  Prefactor  = 0.821459
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.290     FROM HESSE     STATUS=OK           421 CALLS     3344 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8973        14.301        .13435E-03   -1.5111    
   4  Prefactor     .10000E-03    6.9538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     129.42        70.284        .17694E-03   -1.3428    
   6  Prefactor     18.671        26.216        .92686E-04   -1.4843    
   7  Prefactor     .10000E-03    44.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5904        4.2026        .85265E-03   -1.5329    
   9  Prefactor     1.4245        4.0803        .26445E-03   -1.5469    
  10  Prefactor     .10000E-03    2.6205        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.874        43.880        .70975E-04   -1.4578    
  13  Prefactor     .10000E-03    133.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.324        47.219        .81433E-04   -1.4721    
  15  norm          .94478        1.6958        .13527E-03   -1.5514    
  16  norm          .10000E-03    21.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10079E-03    57.113        .36141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.366        18.021        .10570E-03   -1.4950    
  20  Prefactor     .10000E-03    7.1259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.639        15.843        .12285E-03   -1.5056    
  22  Prefactor     .10000E-03    20.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.676        15.543        .10116E-03   -1.4916    
  24  Normalizat    1.1005        .26964        .30682E-03   -.89735    
  25  Prefactor     .82146        .12922        .17681E-03   -.98942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56106e-08
Minuit parameter uncertainties:
  1  0.000253238
  2  0.000261379
  3  14.3067
  4  1.07664e-05
  5  70.3292
  6  26.2324
  7  0.000206917
  8  4.20297
  9  4.08113
  10  5.21481e-05
  11  0.00110099
  12  43.9246
  13  0.000360274
  14  47.2913
  15  1.69588
  16  0.00018158
  17  0.0134183
  18  0.00016772
  19  18.0283
  20  5.99873e-05
  21  15.8494
  22  0.000151017
  23  15.5467
  24  0.269982
  25  0.129268
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.101e-03  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.215e-01  1.293e-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.101e+00  2.700e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614857/likelihoodResults_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.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) = 6233.28961583
delta logL = -7.66736575315e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6232.94177915
delta logL = 0.34776000636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7499       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5967       1.0000          .0000       10.000    
     3 'Normalizat'    1.0379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84119       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=   6232.942     FROM MIGRAD    STATUS=FAILED        86 CALLS      307 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7503        243.81        .16460E-03    .60069E-03
   2  Index         5.5967        5.4129        .13007E-01    .97754E-04
   3  Normalizat    1.0379        .26508        .31483E-03    .12054E-03
   4  Prefactor     .84120        .12693        .17491E-03    .20214E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6232.942     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      396 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7503        243.81        .15192E-03    .60069E-03
   2  Index         5.5967        5.4129        .15658E-02    .97754E-04
   3  Normalizat    1.0379        .26508        .20335E-03    .12054E-03
   4  Prefactor     .84120        .12693        .94525E-04    .20214E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6232.942     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      427 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7505        9.3221        .65840E-05    .35571E-04
   2  Index         5.5966        2.9472        .52027E-03    .31029E-05
   3  Normalizat    1.0379        .26280        .12593E-04    .32500E-05
   4  Prefactor     .84120        .13056        .69965E-05   -.32498E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75047
  Index      = 5.59664
  Normalizat = 1.03791
  Prefactor  = 0.841201
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.942     FROM HESSE     STATUS=OK            23 CALLS      450 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7505        9.1288        .13168E-05   -1.5376    
   2  Index         5.5966        2.8943        .20811E-04    .11961    
   3  Normalizat    1.0379        .26344        .25186E-05   -.91771    
   4  Prefactor     .84120        .13087        .13993E-05   -.98227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81161e-13
Minuit parameter uncertainties:
  1  9.13346
  2  3.09002
  3  0.263769
  4  0.130923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614857': 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) = 6232.94177915
delta logL = 0.347760013516

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.750e+00  9.133e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  5.597e+00  3.090e+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.412e-01  1.309e-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.038e+00  2.638e-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/614857/cmap_HighResolution_518227201_518486401_4FGL_J2136.2+0032_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-26 20:38:55.580106', job_id='614857', GAL2='0.84', fit_tolerance='1e-08', EG2='1.04', EG='1.10', time_epoch_completed='1632713935.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.48e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1076' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:38:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 614857: <4FGL_J2136.2+0032_daily_bin1076> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1076> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 20:25:19 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:26:32 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:26:32 2021
Terminated at Sun Sep 26 20:38:56 2021
Results reported at Sun Sep 26 20:38:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1076 324.062 0.5488 518227201 518486401 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            817 sec.

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

