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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1158
RA = 264.019, Dec = 20.5559
tmin = 539481601, tmax = 539740801
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='927523', job_status='RUN', time_executed='2021-09-18 00:07:51.526617', time_epoch_executed='1631948871.53' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927523/ft1_4FGL_J1736.0+2033_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927523/ft2_4FGL_J1736.0+2033_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927523/ft1_4FGL_J1736.0+2033_daily_bin1158.fits outfile=/scratch/kocevski/927523/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1158.fits ra=264.019 dec=20.5559 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.15
user 4.86
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927523/ft1_filtered_4FGL_J1736.0+2033_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/927523/ft2_4FGL_J1736.0+2033_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/927523/ltcube_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.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/927523/ft2_4FGL_J1736.0+2033_daily_bin1158.fits
.....................!
real 12.16
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927523/ft1_filtered_4FGL_J1736.0+2033_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/927523/ft2_4FGL_J1736.0+2033_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/927523/ltcube_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.fits outfile=/scratch/kocevski/927523/expmap_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.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/927523/ltcube_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.fits
.....................!
real 190.65
user 185.14
sys 5.12

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/927523/ft1_filtered_4FGL_J1736.0+2033_daily_bin1158.fits scfile=/scratch/kocevski/927523/ft2_4FGL_J1736.0+2033_daily_bin1158.fits outfile=/scratch/kocevski/927523/cmap_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927523/ft1_filtered_4FGL_J1736.0+2033_daily_bin1158.fits scfile=/scratch/kocevski/927523/ft2_4FGL_J1736.0+2033_daily_bin1158.fits outfile=/scratch/kocevski/927523/cmap_HighResolution_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12731E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3320       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2310       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    219.99       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33659E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0097       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3036       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94978       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99733       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=   7593.954     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2112 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1268        2.4162       -.53649E-07   -.49730E-03
   2  Prefactor     .10000E-03    14.995        .11706E-06** at limit **
   3  Prefactor     .10000E-03    31.589        .89564E-08** at limit **
   4  Prefactor     .10000E-03    47.156       -.17040E-04** at limit **
   5  Prefactor     .10000E-03    54.310        .69241E-05** at limit **
   6  norm          .10000E-03    4.0895       -.11119E-06** at limit **
   7  Prefactor     6.3298        14.580       -.16649E-06   -.31757E-05
   8  norm          .10000E-03    4.3687       -.12697E-07** at limit **
   9  Prefactor     4.2308        3.7698       -.26089E-07   -.28120E-04
  10  norm          .10000E-03    23.300       -.63923E-05** at limit **
  11  Prefactor     219.96        180.32       -.15790E-04   -.57269E-05
  12  Prefactor     .10000E-03    142.63       -.29148E-05** at limit **
  13  norm          3.4097        1.2524        .82891E-08   -.11632E-04
  14  Prefactor     .10000E-03    24.837        .80284E-05** at limit **
  15  Prefactor     .10000E-03    59.549        .15792E-04** at limit **
  16  Prefactor     1.9881        14.264        .48107E-06   -.13745E-03
  17  norm          1.3044        7.1226       -.18051E-06   -.24081E-04
  18  Prefactor     .10000E-03    100.96       -.10311E-04** at limit **
  19  Normalizat    .94953        .27507        .14348E-05   -.54241E-04
  20  Prefactor     .99732        .93982E-01   -.23339E-06    .18430E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.32976
  norm       = 0.0001
  Prefactor  = 4.23085
  norm       = 0.0001
  Prefactor  = 219.961
  Prefactor  = 0.0001
  norm       = 3.40974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98814
  norm       = 1.30439
  Prefactor  = 0.0001
  Normalizat = 0.949531
  Prefactor  = 0.997315
 **********
 **   18 **HESSE 
 **********

 FCN=   7593.954     FROM HESSE     STATUS=OK           287 CALLS     2399 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1268        12.645        .22135E-02   -1.5496    
   2  Prefactor     .10000E-03    15.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    56.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.2484        .34388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3298        14.552        .15951E-03   -1.5205    
   8  norm          .10000E-03    4.3708        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2308        3.7575        .14858E-03   -1.5297    
  10  norm          .10000E-03    23.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     219.96        180.90        .13635E-03   -1.2731    
  12  Prefactor     .10000E-03    143.80        .21341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4097        1.2535        .57115E-04   -1.5339    
  14  Prefactor     .10000E-03    24.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    59.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9881        15.993        .14602E-02   -1.5426    
  17  norm          1.3044        7.0391        .38675E-03   -1.5480    
  18  Prefactor     .10000E-03    101.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94953        .31721        .45518E-03   -.94741    
  20  Prefactor     .99732        .10721        .15181E-03   -.92819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17677e-09
Minuit parameter uncertainties:
  1  7.55108
  2  4.67508e-06
  3  5.90794e-06
  4  4.54097e-06
  5  0.000299699
  6  8.06231e-06
  7  14.5603
  8  1.49253e-07
  9  3.75773
  10  2.49177e-06
  11  181.364
  12  7.32183e-06
  13  1.25355
  14  1.58318e-05
  15  4.27939e-06
  16  11.2816
  17  6.06117
  18  3.82366e-05
  19  0.317834
  20  0.107236
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  2.492e-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.973e-01  1.072e-01  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.495e-01  3.178e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927523/likelihoodResults_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.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) = 7593.95449084
delta logL = -0.000203742192753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7593.95428709
delta logL = 6.53199094813e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7332       1.0000          .0000       5.0000    
     3 'Normalizat'    .94953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99732       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=   7593.954     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      234 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1469.8        .18142E-01** at limit **
   2  alpha         1.3650        3.1614        .87827E-01    .32361E-08
   3  Normalizat    .94954        .58301E-01    .45517E-03    .11689E-04
   4  Prefactor     .99731        .20046E-01    .15181E-03   -.30945E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.365
  Normalizat = 0.949536
  Prefactor  = 0.997313
 **********
 **   18 **HESSE 
 **********

 FCN=   7593.954     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.466        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3650        3.9167        .35131E-02   -.47125    
   3  Normalizat    .94954        .30446        .18207E-04   -.94741    
   4  Prefactor     .99731        .10485        .30362E-04   -.92819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13037e-10
Minuit parameter uncertainties:
  1  0.000430664
  2  623.428
  3  0.305021
  4  0.104874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927523': 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) = 7593.95428692
delta logL = 1.73486114363e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  4.307e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.365e+00  6.234e+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:  9.973e-01  1.049e-01  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.495e-01  3.050e-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/927523/cmap_HighResolution_539481601_539740801_4FGL_J1736.0+2033_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-05', job_status='DONE', photon_flux_upper_limit='2.67e-08', time_completed='2021-09-18 00:19:44.584295', job_id='927523', GAL2='1.00', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631949584.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1158' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:19:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 927523: <4FGL_J1736.0+2033_daily_bin1158> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin1158> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 00:05:22 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:05:23 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:05:23 2021
Terminated at Sat Sep 18 00:19:45 2021
Results reported at Sat Sep 18 00:19:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1158 264.019 20.5559 539481601 539740801 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

