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


Performing analysis on: 4FGL_J2036.4+6553_daily_bin1171
RA = 309.103, Dec = 65.8834
tmin = 542851201, tmax = 543110401
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='62866', job_status='RUN', time_executed='2021-09-25 13:13:37.800288', time_epoch_executed='1632600817.8' WHERE source_name='4FGL J2036.4+6553' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62866

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62866/ft1_4FGL_J2036.4+6553_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62866/ft1_4FGL_J2036.4+6553_daily_bin1171.fits outfile=/scratch/kocevski/62866/ft1_filteredMKT_4FGL_J2036.4+6553_daily_bin1171.fits ra=309.103 dec=65.8834 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.77
user 0.60
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.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/62866/ft1_filteredMKT_4FGL_J2036.4+6553_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.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.47
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/62866/ltcube_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.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/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits
.....................!
real 2.13
user 1.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/62866/ltcube_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.fits outfile=/scratch/kocevski/62866/expmap_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.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/62866/ltcube_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.fits
.....................!
real 192.26
user 187.19
sys 4.47

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
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 191 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2036.4+6553 @ 309.103 65.8834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits scfile=/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits outfile=/scratch/kocevski/62866/cmap_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.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=309.103 yref=65.8834 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits scfile=/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits outfile=/scratch/kocevski/62866/cmap_HighResolution_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.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=309.103 yref=65.8834 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62866/Model_4FGL_J2036.4+6553_daily_bin1171.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits.....................!
real 32.30
user 30.91
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits', '/scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits', expMap='/scratch/kocevski/62866/expmap_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.fits', expCube='/scratch/kocevski/62866/ltcube_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62866/Model_4FGL_J2036.4+6553_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2036.4+6553'

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.458e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/62866/ft1_filtered_4FGL_J2036.4+6553_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/62866/ft2_4FGL_J2036.4+6553_daily_bin1171.fits
Exposure map: /scratch/kocevski/62866/expmap_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.fits
Exposure cube: /scratch/kocevski/62866/ltcube_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62866/Model_4FGL_J2036.4+6553_daily_bin1171.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) = 1385.93531353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45276E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15784E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11527E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .37924E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    31.509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.501       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17600E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.9348       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1385.930     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2316 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.938        .47686E-06** at limit **
   2  Prefactor     .10000E-03    509.26       -.24475E-03** at limit **
   3  Prefactor     .10000E-03    202.98        .66550E-04** at limit **
   4  norm          .10000E-03    5.9583       -.31207E-06** at limit **
   5  norm          .10000E-03    12.684       -.97731E-07** at limit **
   6  norm          .10000E-03    41.670        .16702E-04** at limit **
   7  Prefactor     3.0301        361.11        .32514E-03    .36720E-05
   8  Prefactor     .10000E-03    29.838       -.33310E-04** at limit **
   9  norm          .10000E-03    5.1116       -.50059E-06** at limit **
  10  norm          .10000E-03    119.08       -.10352E-04** at limit **
  11  norm          31.469        69.594       -.40691E-04   -.36275E-04
  12  Prefactor     30.530        82.170        .29867E-04   -.12037E-03
  13  norm          .10000E-03    8.1682        .11565E-06** at limit **
  14  Prefactor     .10000E-03    79.720       -.78160E-04** at limit **
  15  norm          .10000E-03    19.109       -.19568E-05** at limit **
  16  Prefactor     74.418        68.759        .24942E-04    .19980E-06
  17  Prefactor     .10000E-03    25.835        .19995E-04** at limit **
  18  norm          .10000E-03    14.129        .31714E-06** at limit **
  19  Prefactor     .10000E-03    131.83        .11538E-03** at limit **
  20  Prefactor     .10000E-03    43.079        .17323E-04** at limit **
  21  Normalizat    1.9332        .82701       -.67427E-04    .12756E-03
  22  Prefactor     .81778        .13625        .54896E-05   -.67818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.03007
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 31.4689
  Prefactor  = 30.5296
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 74.4177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.93319
  Prefactor  = 0.817781
 **********
 **   18 **HESSE 
 **********

 FCN=   1385.930     FROM HESSE     STATUS=OK           324 CALLS     2640 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    509.60        .19336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    202.98        .20430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.9592        .88764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.686        .12953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    41.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0301        357.01        .23836E-03   -1.5360    
   8  Prefactor     .10000E-03    29.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1217        .82059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    119.08        .21288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          31.469        69.596        .71381E-04   -1.4585    
  12  Prefactor     30.530        81.873        .72548E-04   -1.4602    
  13  norm          .10000E-03    8.1740        .10393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    79.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.109        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     74.418        68.941        .46555E-04   -1.3981    
  17  Prefactor     .10000E-03    25.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.133        .13671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    131.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.9332        .88023        .51623E-03   -.66236    
  22  Prefactor     .81778        .14593        .12890E-03   -.99076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30014e-09
Minuit parameter uncertainties:
  1  0.000261431
  2  0.000668108
  3  0.000221213
  4  7.52352e-05
  5  4.62257e-06
  6  3.53581e-05
  7  66.1874
  8  0.000211697
  9  0.000107399
  10  1.05997e-05
  11  69.7761
  12  82.1769
  13  3.16049e-05
  14  0.000542019
  15  4.76993e-06
  16  69.015
  17  0.000196623
  18  6.37142e-06
  19  0.000147972
  20  2.68094e-05
  21  0.887722
  22  0.145999
Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.000e-04  4.770e-06  1.000e-04  1.000e+04 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  8.178e-01  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.933e+00  8.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.103 65.883
Photon Flux Upper Limit: 2.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62866/likelihoodResults_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.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) = 1385.93005882
delta logL = -0.000246889220534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1385.92981741
delta logL = -5.47930335415e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8588       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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=   1385.930     FROM MIGRAD    STATUS=FAILED       103 CALLS      281 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1302.3        .93316E-02** at limit **
   2  alpha         1.2772        3.9151        .16680        .83476E-07
   3  Normalizat    1.9332        .19190        .51627E-03    .15249E-03
   4  Prefactor     .81779        .33439E-01    .12890E-03    .68772E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1385.930     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      440 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1302.3        .94420E-03** at limit **
   2  alpha         1.2772        3.9151        .20926E-05    .83476E-07
   3  Normalizat    1.9332        .19190        .12235E-06    .15249E-03
   4  Prefactor     .81779        .33439E-01    .18393E-07    .68772E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1385.930     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      468 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.895        .18487E-02** at limit **
   2  alpha         1.2637        2.7764        .66720E-02   -.87753E-08
   3  Normalizat    1.9332        .79767        .10325E-03    .15213E-03
   4  Prefactor     .81779        .13985        .25779E-04    .68651E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.26375
  Normalizat = 1.93315
  Prefactor  = 0.81779
 **********
 **   18 **HESSE 
 **********

 FCN=   1385.930     FROM HESSE     STATUS=OK            23 CALLS      491 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.830        .36975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2637        2.6243        .13344E-02   -.51726    
   3  Normalizat    1.9332        .79771        .20651E-04   -.66237    
   4  Prefactor     .81779        .13986        .51558E-05   -.99076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3576e-10
Minuit parameter uncertainties:
  1  0.00011225
  2  564.593
  3  0.803269
  4  0.139917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62866': 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) = 1385.92981125
delta logL = 6.82061454427e-07

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.000e-04  1.123e-04  1.000e-04  1.000e+04 ( 1.000e-13)
338        alpha:  1.264e+00  5.646e+02  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  8.178e-01  1.399e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.933e+00  8.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.103 65.883

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/62866/cmap_HighResolution_542851201_543110401_4FGL_J2036.4+6553_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-04', job_status='DONE', photon_flux_upper_limit='2.42e-07', time_completed='2021-09-25 13:20:19.082393', job_id='62866', GAL2='0.82', fit_tolerance='1e-08', EG2='1.93', EG='1.93', time_epoch_completed='1632601219.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1171' AND source_name='4FGL J2036.4+6553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 13:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 62866: <4FGL_J2036.4+6553_daily_bin1171> in cluster <slac> Done

Job <4FGL_J2036.4+6553_daily_bin1171> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 13:10:17 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 13:11:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 13:11:28 2021
Terminated at Sat Sep 25 13:20:19 2021
Results reported at Sat Sep 25 13:20:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2036.4+6553_daily_bin1171 309.103 65.8834 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2036.4+6553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   403.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            602 sec.

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

