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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin541
RA = 264.019, Dec = 20.5559
tmin = 379555201, tmax = 379814401
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='922496', job_status='RUN', time_executed='2021-09-17 23:50:43.152464', time_epoch_executed='1631947843.15' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922496/ft1_4FGL_J1736.0+2033_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922496/ft1_4FGL_J1736.0+2033_daily_bin541.fits outfile=/scratch/kocevski/922496/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin541.fits ra=264.019 dec=20.5559 rad=12.0 tmin=379555201.0 tmax=379814401.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.47
user 3.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.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/922496/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin541.fits evtable="EVENTS" outfile="/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/922496/ltcube_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.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/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits
.....................!
real 12.52
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/922496/ltcube_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.fits outfile=/scratch/kocevski/922496/expmap_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.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/922496/ltcube_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.fits
.....................!
real 190.76
user 185.09
sys 5.04

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1736.0+2033 @ 264.019 20.5559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits scfile=/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits outfile=/scratch/kocevski/922496/cmap_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.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=264.019 yref=20.5559 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits scfile=/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits outfile=/scratch/kocevski/922496/cmap_HighResolution_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.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=264.019 yref=20.5559 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/922496/Model_4FGL_J1736.0+2033_daily_bin541.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/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits.....................!
real 96.72
user 95.18
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits', '/scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits', expMap='/scratch/kocevski/922496/expmap_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.fits', expCube='/scratch/kocevski/922496/ltcube_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/922496/Model_4FGL_J1736.0+2033_daily_bin541.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1736.0+2033'

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  9.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/922496/ft1_filtered_4FGL_J1736.0+2033_daily_bin541.fits
Spacecraft file(s): /scratch/kocevski/922496/ft2_4FGL_J1736.0+2033_daily_bin541.fits
Exposure map: /scratch/kocevski/922496/expmap_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.fits
Exposure cube: /scratch/kocevski/922496/ltcube_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/922496/Model_4FGL_J1736.0+2033_daily_bin541.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) = 11781.8341635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    81.295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8985       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.661       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5086       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9415       1.0000         .10000E-03   10000.    
    10 'norm      '    43.591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    274.79       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24846E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .72432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5547       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.884       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .38851       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11781.74     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2066 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2873        .86102E-06** at limit **
   2  Prefactor     81.265        34.325        .13840E-05    .46129E-04
   3  Prefactor     45.932        36.414        .11892E-05    .17177E-04
   4  Prefactor     .10000E-03    28.421        .17556E-06** at limit **
   5  Prefactor     7.8877        12.102        .14202E-05    .29501E-04
   6  norm          .10000E-03    .82393        .14483E-06** at limit **
   7  Prefactor     10.659        9.9259        .52453E-07    .12911E-04
   8  norm          7.5111        9.4237       -.45001E-06   -.68537E-05
   9  Prefactor     2.9381        3.1316        .71471E-06   -.21887E-03
  10  norm          43.554        60.821        .25243E-06   -.21670E-04
  11  Prefactor     274.55        167.86        .23582E-05   -.98315E-04
  12  Prefactor     .10000E-03    296.75       -.60894E-06** at limit **
  13  norm          .72415        .57239        .31115E-07   -.18749E-04
  14  Prefactor     .10000E-03    15.605       -.29276E-06** at limit **
  15  Prefactor     .10000E-03    20.337       -.88357E-07** at limit **
  16  Prefactor     4.5323        11.191        .23328E-05   -.52942E-05
  17  norm          .10000E-03    2.4477        .18986E-07** at limit **
  18  Prefactor     74.858        45.375        .46203E-06    .93734E-05
  19  Normalizat    .38903        .25305       -.16100E-04   -.36664E-04
  20  Prefactor     1.1571        .88457E-01    .27598E-05   -.83963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 81.2647
  Prefactor  = 45.9323
  Prefactor  = 0.0001
  Prefactor  = 7.88768
  norm       = 0.0001
  Prefactor  = 10.6592
  norm       = 7.51107
  Prefactor  = 2.93807
  norm       = 43.5545
  Prefactor  = 274.548
  Prefactor  = 0.000100005
  norm       = 0.724153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53225
  norm       = 0.0001
  Prefactor  = 74.858
  Normalizat = 0.389033
  Prefactor  = 1.1571
 **********
 **   18 **HESSE 
 **********

 FCN=   11781.74     FROM HESSE     STATUS=OK           289 CALLS     2355 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     81.265        34.249        .44546E-04   -1.3903    
   3  Prefactor     45.932        36.434        .59147E-04   -1.4351    
   4  Prefactor     .10000E-03    28.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8877        12.123        .14267E-03   -1.5146    
   6  norm          .10000E-03    .82884        .96188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.659        9.9158        .12271E-03   -1.5055    
   8  norm          7.5111        9.3782        .14636E-03   -1.5160    
   9  Prefactor     2.9381        3.1201        .17123E-03   -1.5365    
  10  norm          43.554        60.843        .60721E-04   -1.4387    
  11  Prefactor     274.55        166.76        .12234E-03   -1.2379    
  12  Prefactor     .10000E-03    304.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .72415        .59832        .70793E-03   -1.5538    
  14  Prefactor     .10000E-03    15.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5323        11.264        .18863E-03   -1.5282    
  17  norm          .10000E-03    2.4491        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.858        45.643        .46399E-04   -1.3975    
  19  Normalizat    .38903        .25479        .67758E-03   -1.1787    
  20  Prefactor     1.1571        .89344E-01    .14532E-03   -.87662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66599e-10
Minuit parameter uncertainties:
  1  5.16464e-05
  2  34.2569
  3  36.4512
  4  2.36324e-05
  5  12.127
  6  2.20202e-06
  7  9.91738
  8  9.38007
  9  3.12024
  10  60.9296
  11  167.052
  12  0.00240982
  13  0.598323
  14  9.4877e-05
  15  4.35533e-05
  16  11.2695
  17  2.23767e-07
  18  45.6646
  19  0.255553
  20  0.0893557
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  4.355e+01  6.093e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.157e+00  8.936e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  3.890e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 264.019 20.556
Photon Flux Upper Limit: 4.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922496/likelihoodResults_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.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) = 11780.4271322
delta logL = 1.31431096126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11780.3703885
delta logL = 1.37105467223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1406       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5787       1.0000          .0000       5.0000    
     3 'Normalizat'    .29376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11780.37     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      281 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1011        65.533        .37529E-02    .40617E-03
   2  alpha         3.5811        1.7285        .27605        .14877E-03
   3  Normalizat    .29391        .72285E-01    .17572        .15692E-03
   4  Prefactor     1.1714        .22576E-01    .35342E-01    .10635E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10115
  alpha      = 3.58106
  Normalizat = 0.293909
  Prefactor  = 1.1714
 **********
 **   18 **HESSE 
 **********

 FCN=   11780.37     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1011        132.57        .15012E-03   -1.5175    
   2  alpha         3.5811        4.2094        .94137E-02    .44718    
   3  Normalizat    .29391        .29357        .77310E-03   -1.2320    
   4  Prefactor     1.1714        .89714E-01    .14448E-03   -.87216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5591e-09
Minuit parameter uncertainties:
  1  61.5219
  2  3.73206
  3  0.295125
  4  0.0897253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922496': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11780.3703843
delta logL = 1.37105892484

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  7.101e+00  6.152e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  3.581e+00  3.732e+00  0.000e+00  5.000e+00 ( 1.000e+00)
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.171e+00  8.973e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  2.939e-01  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 264.019 20.556
Photon Index (Free Index): 3.58 +/- 3.73
Photon Flux (Free Index): 9.27e-08 +/- 1.51e-07
Energy Flux (Free Index): 1.84e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/922496/cmap_HighResolution_379555201_379814401_4FGL_J1736.0+2033_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-05', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='1.37e+00', photon_flux2='9.27e-08', job_status='DONE', time_completed='2021-09-18 00:05:46.688437', photon_index_error2='3.73', photon_index2='3.58', ts='0.92', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='4.45e-08', energy_flux_error2='1.18e-05', EG='0.39', time_epoch_completed='1631948746.69', return_code='0', job_id='922496', GAL2='1.17', EG2='0.29', return_code2='102', photon_flux_error2='1.51e-07', ts2='3.80', photon_index='1.74' WHERE bin_id='541' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 922496: <4FGL_J1736.0+2033_daily_bin541> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin541> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 23:50:23 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:50:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 23:50:25 2021
Terminated at Sat Sep 18 00:05:47 2021
Results reported at Sat Sep 18 00:05:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin541 264.019 20.5559 379555201 379814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1736.0+2033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   899.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

