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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin310
RA = 264.019, Dec = 20.5559
tmin = 319680001, tmax = 319939201
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='920998', job_status='RUN', time_executed='2021-09-17 23:45:54.278629', time_epoch_executed='1631947554.28' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920998/ft1_4FGL_J1736.0+2033_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920998/ft2_4FGL_J1736.0+2033_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920998/ft1_4FGL_J1736.0+2033_daily_bin310.fits outfile=/scratch/kocevski/920998/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin310.fits ra=264.019 dec=20.5559 rad=12.0 tmin=319680001.0 tmax=319939201.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.46
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920998/ft1_filtered_4FGL_J1736.0+2033_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/920998/ft2_4FGL_J1736.0+2033_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/920998/ltcube_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.fits outfile=/scratch/kocevski/920998/expmap_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.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/920998/ltcube_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.fits
.....................!
real 190.62
user 185.72
sys 4.43

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/920998/ft1_filtered_4FGL_J1736.0+2033_daily_bin310.fits scfile=/scratch/kocevski/920998/ft2_4FGL_J1736.0+2033_daily_bin310.fits outfile=/scratch/kocevski/920998/cmap_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920998/ft1_filtered_4FGL_J1736.0+2033_daily_bin310.fits scfile=/scratch/kocevski/920998/ft2_4FGL_J1736.0+2033_daily_bin310.fits outfile=/scratch/kocevski/920998/cmap_HighResolution_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.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.65
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1130       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45422E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3253       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4771       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    127.88       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4494       1.0000         .10000E-03   10000.    
    13 'norm      '    .58537       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22395E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3578       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9375       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4686       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94330       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11013.77     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     2360 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1024        8.0513        .17780E-03   -.11432E-03
   2  Prefactor     .10001E-03    26.531        .14329    ** at limit **
   3  Prefactor     .10000E-03    11.021        .18142E-02** at limit **
   4  Prefactor     47.538        80.422        .29117E-03   -.49275E-04
   5  Prefactor     4.3246        10.194        .96846E-03   -.11340E-04
   6  norm          .10000E-03    1.1070        .10729E-02** at limit **
   7  Prefactor     6.4772        7.5355        .15770E-03   -.99488E-05
   8  norm          7.5900        7.3292        .14556E-03   -.23431E-04
   9  Prefactor     .10000E-03    .86310        .94681E-03** at limit **
  10  norm          .10000E-03    23.213        .18142E-02** at limit **
  11  Prefactor     127.83        143.27        .17801E-03    .90691E-05
  12  Prefactor     7.4425        32.891        .14694E-03   -.19806E-04
  13  norm          .58613        .95444        .12622E-03    .12520E-03
  14  Prefactor     .10000E-03    10.723        .18142E-02** at limit **
  15  Prefactor     .10000E-03    34.224        .18142E-02** at limit **
  16  Prefactor     .10001E-03    20.453        .43722E-02** at limit **
  17  norm          1.3586        11.492        .18749E-02    .53132E-03
  18  Prefactor     8.8323        38.181        .13407E-03   -.23573E-04
  19  Normalizat    1.4679        .28668        .40715E-03   -.28894E-03
  20  Prefactor     .94343        .96364E-01    .16445E-03   -.26985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.10239
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 47.5378
  Prefactor  = 4.32455
  norm       = 0.0001
  Prefactor  = 6.47717
  norm       = 7.59001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 127.834
  Prefactor  = 7.44254
  norm       = 0.586131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 1.35861
  Prefactor  = 8.83226
  Normalizat = 1.46786
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********

 FCN=   11013.77     FROM HESSE     STATUS=OK           285 CALLS     2645 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1024        8.0505        .71122E-05   -1.5256    
   2  Prefactor     .10001E-03    26.816        .14225       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.538        80.407        .11647E-04   -1.4328    
   5  Prefactor     4.3246        10.191        .38738E-04   -1.5292    
   6  norm          .10000E-03    1.1071        .21458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4772        7.5353        .63078E-05   -1.5199    
   8  norm          7.5900        7.3291        .58223E-05   -1.5157    
   9  Prefactor     .10000E-03    .86318        .18936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     127.83        143.34        .71202E-05   -1.3442    
  12  Prefactor     7.4425        32.881        .58777E-05   -1.5162    
  13  norm          .58613        .95432        .50488E-05   -1.5555    
  14  Prefactor     .10000E-03    10.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    20.718        .87443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3586        11.491        .37498E-03   -1.5475    
  18  Prefactor     8.8323        38.214        .53628E-05   -1.5113    
  19  Normalizat    1.4679        .28688        .16286E-04   -.78686    
  20  Prefactor     .94343        .96431E-01    .32891E-04   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95707e-10
Minuit parameter uncertainties:
  1  8.0522
  2  0.00111432
  3  1.17375e-06
  4  80.5908
  5  10.195
  6  1.56614e-06
  7  7.53636
  8  7.33
  9  2.02462e-06
  10  2.67671e-06
  11  143.732
  12  31.3156
  13  0.954349
  14  1.41346e-06
  15  6.64386e-06
  16  0.000806022
  17  7.90407
  18  36.7828
  19  0.287202
  20  0.0964483
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  2.677e-06  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:  9.434e-01  9.645e-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:  1.468e+00  2.872e-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: 2.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920998/likelihoodResults_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.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) = 11013.767144
delta logL = -0.000204416421184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11012.8167533
delta logL = 0.950186343425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15656       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96934       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11012.82     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      310 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15655        .12835        .31501E-03    .88131E-03
   2  alpha         5.0000        .57282        .52694E-01** at limit **
   3  Normalizat    1.3298        .29352        .42435E-03    .17200E-04
   4  Prefactor     .96931        .94786E-01    .16243E-03   -.92388E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.156546
  alpha      = 5
  Normalizat = 1.3298
  Prefactor  = 0.969312
 **********
 **   18 **HESSE 
 **********

 FCN=   11012.82     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15655        .12685        .12600E-04   -1.5629    
   2  alpha         5.0000        .57109        .10539E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3298        .29350        .16974E-04   -.82681    
   4  Prefactor     .96931        .94849E-01    .64972E-05   -.93760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10499e-09
Minuit parameter uncertainties:
  1  0.126849
  2  5.45129e-05
  3  0.293872
  4  0.0948652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920998': 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) = 11012.8167532
delta logL = 0.950186477679

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.565e-01  1.268e-01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  5.000e+00  5.451e-05  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:  9.693e-01  9.487e-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:  1.330e+00  2.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 264.019 20.556
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.15e-07 +/- 9.30e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.34e-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/920998/cmap_HighResolution_319680001_319939201_4FGL_J1736.0+2033_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', comment='SUCCESS', energy_flux2='1.66e-05', dlogl='9.50e-01', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-18 00:01:15.535039', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.35e-08', energy_flux_error2='1.34e-05', EG='1.47', time_epoch_completed='1631948475.54', return_code='0', job_id='920998', GAL2='0.97', EG2='1.33', return_code2='0', photon_flux_error2='9.30e-08', ts2='2.10', photon_index='1.74' WHERE bin_id='310' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 920998: <4FGL_J1736.0+2033_daily_bin310> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin310> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 23:45:39 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:45:40 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:45:40 2021
Terminated at Sat Sep 18 00:01:16 2021
Results reported at Sat Sep 18 00:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin310 264.019 20.5559 319680001 319939201 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 :                                   913.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

