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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1575
RA = 264.019, Dec = 20.5559
tmin = 647568001, tmax = 647827201
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='929257', job_status='RUN', time_executed='2021-09-18 00:10:35.496069', time_epoch_executed='1631949035.5' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929257/ft1_4FGL_J1736.0+2033_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929257/ft2_4FGL_J1736.0+2033_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929257/ft1_4FGL_J1736.0+2033_daily_bin1575.fits outfile=/scratch/kocevski/929257/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1575.fits ra=264.019 dec=20.5559 rad=12.0 tmin=647568001.0 tmax=647827201.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.45
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929257/ft1_filtered_4FGL_J1736.0+2033_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/929257/ft2_4FGL_J1736.0+2033_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/929257/ltcube_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.fits outfile=/scratch/kocevski/929257/expmap_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.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/929257/ltcube_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.fits
.....................!
real 190.06
user 184.70
sys 4.99

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/929257/ft1_filtered_4FGL_J1736.0+2033_daily_bin1575.fits scfile=/scratch/kocevski/929257/ft2_4FGL_J1736.0+2033_daily_bin1575.fits outfile=/scratch/kocevski/929257/cmap_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.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/929257/ft1_filtered_4FGL_J1736.0+2033_daily_bin1575.fits scfile=/scratch/kocevski/929257/ft2_4FGL_J1736.0+2033_daily_bin1575.fits outfile=/scratch/kocevski/929257/cmap_HighResolution_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.264       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .19451E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8278       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    156.67       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1924       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3180       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23818E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    13.892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2417       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91398       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0294       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=   9496.165     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2068 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6931       -.53346E-07** at limit **
   2  Prefactor     32.263        29.941        .16129E-05    .19217E-04
   3  Prefactor     .10000E-03    36.003       -.21912E-04** at limit **
   4  Prefactor     45.283        68.896        .93025E-05    .38672E-05
   5  Prefactor     .10000E-03    4.8603       -.10584E-06** at limit **
   6  norm          .10000E-03    .69926       -.31679E-07** at limit **
   7  Prefactor     .10000E-03    6.9213       -.31862E-07** at limit **
   8  norm          .10564E-03    12.287       -.11673E-05** at limit **
   9  Prefactor     6.8324        4.0731       -.29840E-06    .36716E-03
  10  norm          .10000E-03    30.684        .92005E-05** at limit **
  11  Prefactor     156.64        135.75       -.17161E-04    .53121E-04
  12  Prefactor     .10000E-03    22.947       -.26573E-06** at limit **
  13  norm          2.1922        1.0238       -.13401E-06   -.16139E-02
  14  Prefactor     2.3427        63.708       -.10002E-03   -.26573E-04
  15  Prefactor     .10002E-03    38.160        .18075E-04** at limit **
  16  Prefactor     .10019E-03    4.3725       -.11065E-06** at limit **
  17  norm          13.892        8.6463       -.97656E-06    .78347E-04
  18  Prefactor     7.2368        51.378        .77484E-06   -.18128E-04
  19  Normalizat    .91388        .23831        .83401E-05    .16944E-03
  20  Prefactor     1.0294        .84718E-01   -.88760E-06    .10246E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.2632
  Prefactor  = 0.0001
  Prefactor  = 45.2834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000105641
  Prefactor  = 6.83239
  norm       = 0.0001
  Prefactor  = 156.642
  Prefactor  = 0.0001
  norm       = 2.19225
  Prefactor  = 2.34275
  Prefactor  = 0.000100016
  Prefactor  = 0.000100194
  norm       = 13.8915
  Prefactor  = 7.23679
  Normalizat = 0.913881
  Prefactor  = 1.02941
 **********
 **   18 **HESSE 
 **********

 FCN=   9496.165     FROM HESSE     STATUS=OK           297 CALLS     2365 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6975        .12381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.263        29.989        .70544E-04   -1.4571    
   3  Prefactor     .10000E-03    36.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.283        68.834        .59587E-04   -1.4361    
   5  Prefactor     .10000E-03    4.8734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .70213        .79573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10564E-03    17.413        .86022E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8324        4.1881        .12126E-03   -1.5185    
  10  norm          .10000E-03    30.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     156.64        135.68        .16105E-03   -1.3198    
  12  Prefactor     .10000E-03    22.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1922        1.0258        .13897E-03   -1.5412    
  14  Prefactor     2.3427        64.829        .26944E-03   -1.5402    
  15  Prefactor     .10002E-03    38.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10019E-03    43.693        .38868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.892        8.6458        .10747E-03   -1.4962    
  18  Prefactor     7.2368        51.757        .14905E-03   -1.5170    
  19  Normalizat    .91388        .27015        .43670E-03   -.95974    
  20  Prefactor     1.0294        .98058E-01    .15138E-03   -.91755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96175e-09
Minuit parameter uncertainties:
  1  8.04875e-06
  2  30.0032
  3  0.000100557
  4  68.9555
  5  2.52315e-05
  6  2.80887e-06
  7  1.00416e-05
  8  0.019827
  9  4.18828
  10  1.49084e-05
  11  135.954
  12  0.000172841
  13  1.02584
  14  24.6768
  15  0.0015487
  16  0.00582679
  17  8.64661
  18  38.7541
  19  0.270553
  20  0.0980749
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  1.491e-05  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.029e+00  9.807e-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:  9.139e-01  2.706e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929257/likelihoodResults_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.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) = 9496.16490994
delta logL = -0.000155131663632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9496.16475774
delta logL = -2.93515768135e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4030       1.0000          .0000       5.0000    
     3 'Normalizat'    .91388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0294       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=   9496.165     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      283 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    843.25        .18142E-01** at limit **
   2  alpha         1.2611        2.9835        .16476        .11909E-06
   3  Normalizat    .91389        .26522E-01    .43670E-03    .14735E-02
   4  Prefactor     1.0294        .97775E-02    .15138E-03    .42566E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.26113
  Normalizat = 0.913889
  Prefactor  = 1.02941
 **********
 **   18 **HESSE 
 **********

 FCN=   9496.165     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    59.180        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2611        4.0128        .65905E-02   -.51846    
   3  Normalizat    .91389        .25697        .87340E-04   -.95974    
   4  Prefactor     1.0294        .94845E-01    .30276E-04   -.91755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6351e-09
Minuit parameter uncertainties:
  1  0.00113994
  2  566.814
  3  0.257318
  4  0.0948601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929257': 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) = 9496.16475431
delta logL = 4.98646841152e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  1.140e-03  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.261e+00  5.668e+02  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.029e+00  9.486e-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:  9.139e-01  2.573e-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/929257/cmap_HighResolution_647568001_647827201_4FGL_J1736.0+2033_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', job_status='DONE', photon_flux_upper_limit='2.52e-08', time_completed='2021-09-18 00:24:15.614572', job_id='929257', GAL2='1.03', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631949855.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1575' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:24:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 929257: <4FGL_J1736.0+2033_daily_bin1575> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin1575> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 00:10:19 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:10:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 00:10:21 2021
Terminated at Sat Sep 18 00:24:16 2021
Results reported at Sat Sep 18 00:24:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1575 264.019 20.5559 647568001 647827201 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 :                                   816.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

