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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin484
RA = 264.019, Dec = 20.5559
tmin = 364780801, tmax = 365040001
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='922375', job_status='RUN', time_executed='2021-09-17 23:50:30.667004', time_epoch_executed='1631947830.67' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922375/ft1_4FGL_J1736.0+2033_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922375/ft1_4FGL_J1736.0+2033_daily_bin484.fits outfile=/scratch/kocevski/922375/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin484.fits ra=264.019 dec=20.5559 rad=12.0 tmin=364780801.0 tmax=365040001.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.26
user 3.07
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.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/922375/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin484.fits evtable="EVENTS" outfile="/scratch/kocevski/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/922375/ltcube_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.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/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits
.....................!
real 12.04
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/922375/ltcube_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.fits outfile=/scratch/kocevski/922375/expmap_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.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/922375/ltcube_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.fits
.....................!
real 192.66
user 186.58
sys 5.54

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/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits scfile=/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits outfile=/scratch/kocevski/922375/cmap_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits scfile=/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits outfile=/scratch/kocevski/922375/cmap_HighResolution_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.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/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/922375/Model_4FGL_J1736.0+2033_daily_bin484.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/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits.....................!
real 84.63
user 83.20
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits', '/scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits', expMap='/scratch/kocevski/922375/expmap_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.fits', expCube='/scratch/kocevski/922375/ltcube_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/922375/Model_4FGL_J1736.0+2033_daily_bin484.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/922375/ft1_filtered_4FGL_J1736.0+2033_daily_bin484.fits
Spacecraft file(s): /scratch/kocevski/922375/ft2_4FGL_J1736.0+2033_daily_bin484.fits
Exposure map: /scratch/kocevski/922375/expmap_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.fits
Exposure cube: /scratch/kocevski/922375/ltcube_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/922375/Model_4FGL_J1736.0+2033_daily_bin484.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) = 10181.7892531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15076E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85298E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3764       1.0000         .10000E-03   10000.    
     6 'norm      '    .51928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3137       1.0000         .10000E-03   10000.    
    10 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15636E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .47946       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2117       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=   10181.77     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2073 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3796        .12063E-07** at limit **
   2  Prefactor     12.538        20.246        .15769E-06    .72514E-06
   3  Prefactor     .10000E-03    198.08       -.45716E-06** at limit **
   4  Prefactor     .10010E-03    629.68       -.15078E-04** at limit **
   5  Prefactor     6.3796        9.6067       -.24235E-06   -.40763E-04
   6  norm          .51898        2.1412        .21574E-05   -.22034E-03
   7  Prefactor     .10000E-03    12.349       -.44330E-07** at limit **
   8  norm          .10000E-03    3.9667       -.38055E-07** at limit **
   9  Prefactor     1.3139        2.2737        .43247E-06   -.89809E-04
  10  norm          .10000E-03    105.24       -.10984E-05** at limit **
  11  Prefactor     .10001E-03    144.33        .17670E-05** at limit **
  12  Prefactor     .10000E-03    118.00        .64571E-06** at limit **
  13  norm          .11792        .46076        .29747E-06   -.87647E-03
  14  Prefactor     26.951        33.985        .53465E-06    .20065E-04
  15  Prefactor     .10000E-03    33.870        .11000E-06** at limit **
  16  Prefactor     .10000E-03    2.0010        .15759E-07** at limit **
  17  norm          .10000E-03    2.6758        .90500E-08** at limit **
  18  Prefactor     .10000E-03    63.192        .26062E-06** at limit **
  19  Normalizat    .47924        .27248       -.50554E-06   -.59887E-04
  20  Prefactor     1.2118        .96937E-01   -.38349E-06   -.11555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.538
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  Prefactor  = 6.37959
  norm       = 0.518979
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.31389
  norm       = 0.000100003
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.117915
  Prefactor  = 26.9514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.479244
  Prefactor  = 1.21176
 **********
 **   18 **HESSE 
 **********

 FCN=   10181.77     FROM HESSE     STATUS=OK           289 CALLS     2362 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3945        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.538        20.196        .11315E-03   -1.5000    
   3  Prefactor     .10000E-03    201.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10010E-03    671.33        .41727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3796        9.5863        .15895E-03   -1.5203    
   6  norm          .51898        2.1866        .28753E-03   -1.5564    
   7  Prefactor     .10000E-03    12.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3139        2.2452        .19243E-03   -1.5479    
  10  norm          .10000E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    146.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    119.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11792        .80044        .12810E-02   -1.5639    
  14  Prefactor     26.951        33.777        .77213E-04   -1.4669    
  15  Prefactor     .10000E-03    33.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0039        .13939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6771        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .47924        .26744        .61058E-03   -1.1339    
  20  Prefactor     1.2118        .95945E-01    .14289E-03   -.85970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40433e-08
Minuit parameter uncertainties:
  1  1.54112e-06
  2  20.2068
  3  0.000404767
  4  0.0161915
  5  9.58861
  6  2.13049
  7  4.43058e-07
  8  2.84504e-06
  9  2.24536
  10  0.00103547
  11  0.00192852
  12  0.000342654
  13  0.614193
  14  33.8014
  15  8.84042e-06
  16  1.00641e-06
  17  4.97272e-07
  18  0.000142125
  19  0.26816
  20  0.0959586
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  1.035e-03  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.212e+00  9.596e-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:  4.792e-01  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/922375/likelihoodResults_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.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) = 10181.7671823
delta logL = -4.47115689894e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10181.7671378
delta logL = -1.80920324055e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12952E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7271       1.0000          .0000       5.0000    
     3 'Normalizat'    .47924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2118       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=   10181.77     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      220 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    362.74        .10738E-06** at limit **
   2  alpha         1.8225        3.3619        .38085E-06   -.48033E-05
   3  Normalizat    .47924        .23080E-01   -.24797E-06   -.98760E-04
   4  Prefactor     1.2118        .47791E-01    .50692E-07   -.27470E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100054
  alpha      = 1.82251
  Normalizat = 0.479244
  Prefactor  = 1.21176
 **********
 **   18 **HESSE 
 **********

 FCN=   10181.77     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    153.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8225        3.3636        .50000       -.27443    
   3  Normalizat    .47924        .25760        .30529E-02   -1.1339    
   4  Prefactor     1.2118        .93798E-01    .14289E-03   -.85970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32565e-10
Minuit parameter uncertainties:
  1  0.00577782
  2  2.45292
  3  0.258246
  4  0.0938109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922375': 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) = 10181.7671374
delta logL = 1.51958374772e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.001e-04  5.778e-03  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.823e+00  2.453e+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.212e+00  9.381e-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:  4.792e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.019 20.556

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/922375/cmap_HighResolution_364780801_365040001_4FGL_J1736.0+2033_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-05', job_status='DONE', photon_flux_upper_limit='3.59e-08', time_completed='2021-09-18 00:04:17.873888', job_id='922375', GAL2='1.21', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631948657.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='484' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 922375: <4FGL_J1736.0+2033_daily_bin484> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin484> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 23:50:16 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:50:19 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:19 2021
Terminated at Sat Sep 18 00:04:18 2021
Results reported at Sat Sep 18 00:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin484 264.019 20.5559 364780801 365040001 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 :                                   824.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

