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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin442
RA = 264.019, Dec = 20.5559
tmin = 353894401, tmax = 354153601
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='921216', job_status='RUN', time_executed='2021-09-17 23:46:11.316596', time_epoch_executed='1631947571.32' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921216/ft1_4FGL_J1736.0+2033_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921216/ft2_4FGL_J1736.0+2033_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921216/ft1_4FGL_J1736.0+2033_daily_bin442.fits outfile=/scratch/kocevski/921216/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin442.fits ra=264.019 dec=20.5559 rad=12.0 tmin=353894401.0 tmax=354153601.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921216/ft1_filtered_4FGL_J1736.0+2033_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/921216/ft2_4FGL_J1736.0+2033_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/921216/ltcube_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.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/921216/ft2_4FGL_J1736.0+2033_daily_bin442.fits
.....................!
real 12.00
user 11.58
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921216/ft1_filtered_4FGL_J1736.0+2033_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/921216/ft2_4FGL_J1736.0+2033_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/921216/ltcube_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.fits outfile=/scratch/kocevski/921216/expmap_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.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/921216/ltcube_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.fits
.....................!
real 190.75
user 185.53
sys 4.77

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/921216/ft1_filtered_4FGL_J1736.0+2033_daily_bin442.fits scfile=/scratch/kocevski/921216/ft2_4FGL_J1736.0+2033_daily_bin442.fits outfile=/scratch/kocevski/921216/cmap_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921216/ft1_filtered_4FGL_J1736.0+2033_daily_bin442.fits scfile=/scratch/kocevski/921216/ft2_4FGL_J1736.0+2033_daily_bin442.fits outfile=/scratch/kocevski/921216/cmap_HighResolution_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   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 '    27.312       1.0000         .10000E-03   10000.    
     8 'norm      '    14.438       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8470       1.0000         .10000E-03   10000.    
    10 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .17949       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9873       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.932       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78204       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0600       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=   10409.14     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2010 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0690       -.14795E-06** at limit **
   2  Prefactor     31.021        29.851        .24010E-06   -.35891E-04
   3  Prefactor     .10000E-03    18.195       -.10444E-06** at limit **
   4  Prefactor     .10000E-03    12.648        .10083E-06** at limit **
   5  Prefactor     .10000E-03    8.8632       -.11418E-06** at limit **
   6  norm          .10000E-03    .82244       -.10072E-07** at limit **
   7  Prefactor     27.310        18.193       -.28815E-06   -.47852E-04
   8  norm          14.438        9.7580       -.22983E-06   -.26529E-04
   9  Prefactor     1.8469        3.1743        .77107E-06   -.45850E-04
  10  norm          .10000E-03    31.351        .50812E-06** at limit **
  11  Prefactor     35.881        115.48        .16428E-05    .30884E-04
  12  Prefactor     .10000E-03    13.449       -.75590E-07** at limit **
  13  norm          .17946        .58882        .80721E-06   -.20372E-03
  14  Prefactor     36.683        28.213       -.24149E-06    .18252E-04
  15  Prefactor     .10000E-03    40.020       -.29931E-06** at limit **
  16  Prefactor     7.9875        6.5268        .11978E-05   -.73939E-04
  17  norm          5.2618        5.3999       -.39281E-07    .48000E-04
  18  Prefactor     22.925        21.729       -.27699E-07   -.33658E-04
  19  Normalizat    .78189        .23175       -.12930E-05   -.54464E-04
  20  Prefactor     1.0600        .82216E-01    .39829E-08   -.19170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.0206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.3102
  norm       = 14.4381
  Prefactor  = 1.84694
  norm       = 0.000100001
  Prefactor  = 35.8814
  Prefactor  = 0.0001
  norm       = 0.179461
  Prefactor  = 36.683
  Prefactor  = 0.000100001
  Prefactor  = 7.9875
  norm       = 5.26178
  Prefactor  = 22.925
  Normalizat = 0.781887
  Prefactor  = 1.06002
 **********
 **   18 **HESSE 
 **********

 FCN=   10409.14     FROM HESSE     STATUS=OK           289 CALLS     2299 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0771        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.021        29.925        .71930E-04   -1.4593    
   3  Prefactor     .10000E-03    18.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .83548        .90342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.310        18.087        .76657E-04   -1.4662    
   8  norm          14.438        9.7251        .10541E-03   -1.4948    
   9  Prefactor     1.8469        3.1337        .20916E-03   -1.5436    
  10  norm          .10000E-03    31.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.881        115.52        .66962E-04   -1.4509    
  12  Prefactor     .10000E-03    13.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .17946        .58986        .13622E-03   -1.5623    
  14  Prefactor     36.683        28.212        .66172E-04   -1.4496    
  15  Prefactor     .10000E-03    40.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9875        6.5331        .70935E-03   -1.5143    
  17  norm          5.2618        5.4035        .17523E-03   -1.5249    
  18  Prefactor     22.925        21.745        .83645E-04   -1.4750    
  19  Normalizat    .78189        .26035        .46904E-03   -1.0074    
  20  Prefactor     1.0600        .93179E-01    .14861E-03   -.90755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00385e-10
Minuit parameter uncertainties:
  1  1.74513e-06
  2  29.9395
  3  2.91881e-05
  4  3.95077e-05
  5  8.28737e-06
  6  5.62454e-07
  7  18.0902
  8  9.72613
  9  3.13399
  10  0.000278688
  11  116.252
  12  3.87438e-05
  13  0.589884
  14  28.2226
  15  0.000295479
  16  6.53365
  17  5.40399
  18  21.7529
  19  0.260761
  20  0.0931932
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  2.787e-04  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.060e+00  9.319e-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:  7.819e-01  2.608e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921216/likelihoodResults_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.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) = 10409.1404597
delta logL = -0.000151846745212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10409.1403078
delta logL = -7.56699591875e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7448       1.0000          .0000       5.0000    
     3 'Normalizat'    .78188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0600       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10408.86     FROM MIGRAD    STATUS=FAILED       189 CALLS      344 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51560E-01    2.4301        .71008E-02    .95594E-02
   2  alpha         5.0000        4.3281        .50000    ** at limit **
   3  Normalizat    .72982        .67952E-01    .46904E-02    .19323E-03
   4  Prefactor     1.0701        .23755E-01    .14861E-03   -.36261E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10408.86     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      472 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51560E-01    2.4301        .85299E-06    .95594E-02
   2  alpha         5.0000        4.3281        .17329E-01** at limit **
   3  Normalizat    .72982        .67952E-01    .14895E-05    .19323E-03
   4  Prefactor     1.0701        .23755E-01    .68838E-07   -.36261E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10408.86     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      512 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51559E-01    .79914E-01    .31574E-04    .31253E-03
   2  alpha         5.0000        3.2994        .50000    ** at limit **
   3  Normalizat    .72982        .26139        .93808E-03   -.37642E-04
   4  Prefactor     1.0701        .92573E-01    .59444E-05   -.72675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0515595
  alpha      = 5
  Normalizat = 0.729822
  Prefactor  = 1.07012
 **********
 **   18 **HESSE 
 **********

 FCN=   10408.86     FROM HESSE     STATUS=OK            31 CALLS      543 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51559E-01    .79631E-01    .63149E-05   -1.5663    
   2  alpha         5.0000        3.2947        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .72982        .26108        .37523E-04   -1.0273    
   4  Prefactor     1.0701        .92417E-01    .11889E-05   -.90427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40853e-11
Minuit parameter uncertainties:
  1  0.0796311
  2  7.1484e-05
  3  0.261522
  4  0.0924309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921216': 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) = 10408.8604995
delta logL = 0.279808329411

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  5.156e-02  7.963e-02  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  5.000e+00  7.148e-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:  1.070e+00  9.243e-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:  7.298e-01  2.615e-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/921216/cmap_HighResolution_353894401_354153601_4FGL_J1736.0+2033_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', job_status='DONE', photon_flux_upper_limit='2.89e-08', time_completed='2021-09-18 00:00:56.527435', job_id='921216', GAL2='1.07', fit_tolerance='1e-08', EG2='0.73', EG='0.78', time_epoch_completed='1631948456.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.80e-01', ts2='0.60', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='442' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 921216: <4FGL_J1736.0+2033_daily_bin442> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin442 264.019 20.5559 353894401 354153601 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 :                                   868.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

