/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 21 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 = 7404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1602
RA = 159.053, Dec = 22.0401
tmin = 654566401, tmax = 654825601
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='856126', job_status='RUN', time_executed='2021-10-02 00:03:00.899113', time_epoch_executed='1633158180.9' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856126/ft1_4FGL_J1036.2+2202_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856126/ft1_4FGL_J1036.2+2202_daily_bin1602.fits outfile=/scratch/kocevski/856126/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1602.fits ra=159.053 dec=22.0401 rad=12.0 tmin=654566401.0 tmax=654825601.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.12
user 4.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.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/856126/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.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.71
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856126/ltcube_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.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/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits
.....................!
real 11.67
user 11.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856126/ltcube_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.fits outfile=/scratch/kocevski/856126/expmap_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.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/856126/ltcube_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.fits
.....................!
real 191.63
user 185.45
sys 5.43

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits scfile=/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits outfile=/scratch/kocevski/856126/cmap_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.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=159.053 yref=22.0401 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits scfile=/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits outfile=/scratch/kocevski/856126/cmap_HighResolution_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.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=159.053 yref=22.0401 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856126/Model_4FGL_J1036.2+2202_daily_bin1602.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/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits.....................!
real 54.76
user 52.84
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits', '/scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits', expMap='/scratch/kocevski/856126/expmap_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.fits', expCube='/scratch/kocevski/856126/ltcube_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856126/Model_4FGL_J1036.2+2202_daily_bin1602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856126/ft1_filtered_4FGL_J1036.2+2202_daily_bin1602.fits
Spacecraft file(s): /scratch/kocevski/856126/ft2_4FGL_J1036.2+2202_daily_bin1602.fits
Exposure map: /scratch/kocevski/856126/expmap_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.fits
Exposure cube: /scratch/kocevski/856126/ltcube_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856126/Model_4FGL_J1036.2+2202_daily_bin1602.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) = 5790.68475083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39188       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4621       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.792       1.0000         .10000E-03   10000.    
    16 'norm      '    .34888E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.113       1.0000         .10000E-03   10000.    
    19 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0997       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5790.586     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2046 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.479        53.974        .17485E-05    .18862E-03
   2  Prefactor     .10000E-03    24.401        .22794E-06** at limit **
   3  Prefactor     .10000E-03    2.4868        .40672E-07** at limit **
   4  Prefactor     .39203        1.4022        .65850E-06   -.31988E-03
   5  norm          2.9600        4.4656        .59256E-06    .29973E-03
   6  Prefactor     21.039        29.227       -.20110E-05   -.20765E-03
   7  Prefactor     .10000E-03    24.882       -.39724E-06** at limit **
   8  Prefactor     9.7446        8.3106        .13968E-05   -.53447E-03
   9  Prefactor     1.6711        1.9150       -.64702E-07   -.13266E-03
  10  Prefactor     8.9719        8.4757        .86274E-07   -.90675E-04
  11  Prefactor     10.472        11.881       -.24382E-06   -.39258E-04
  12  Prefactor     .10000E-03    7.8819       -.24939E-07** at limit **
  13  Prefactor     .10000E-03    5.1803        .18336E-07** at limit **
  14  Prefactor     8.4616        8.7246        .57132E-07   -.10170E-04
  15  Prefactor     31.792        21.397        .13903E-06    .89471E-05
  16  norm          .10000E-03    1.1925        .17228E-06** at limit **
  17  Prefactor     .10000E-03    1.2214        .82822E-08** at limit **
  18  Prefactor     16.114        10.071        .55413E-07   -.31055E-04
  19  norm          .10000E-03    13.223       -.32613E-06** at limit **
  20  Prefactor     .10000E-03    16.337        .48043E-06** at limit **
  21  Normalizat    1.0998        .18648       -.54383E-06   -.55667E-04
  22  Prefactor     .93594        .18405       -.74919E-07   -.64963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.4792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.392033
  norm       = 2.96002
  Prefactor  = 21.0392
  Prefactor  = 0.0001
  Prefactor  = 9.74457
  Prefactor  = 1.6711
  Prefactor  = 8.97193
  Prefactor  = 10.4717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.46163
  Prefactor  = 31.792
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 16.1143
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09983
  Prefactor  = 0.935939
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.586     FROM HESSE     STATUS=OK           344 CALLS     2390 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.479        55.551        .22812E-03   -1.3945    
   2  Prefactor     .10000E-03    24.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4968        .11715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .39203        1.4075        .16744E-03   -1.5583    
   5  norm          2.9600        4.5105        .19415E-03   -1.5364    
   6  Prefactor     21.039        30.340        .87309E-04   -1.4790    
   7  Prefactor     .10000E-03    24.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7446        8.6799        .64182E-03   -1.5084    
   9  Prefactor     1.6711        1.8893        .10689E-03   -1.5449    
  10  Prefactor     8.9719        8.3962        .13378E-03   -1.5109    
  11  Prefactor     10.472        11.854        .12380E-03   -1.5061    
  12  Prefactor     .10000E-03    7.8849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1854        .16905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4616        8.7234        .13781E-03   -1.5126    
  15  Prefactor     31.792        21.366        .71064E-04   -1.4580    
  16  norm          .10000E-03    11.042        .15776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2331        .82048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.114        10.069        .99778E-04   -1.4905    
  19  norm          .10000E-03    13.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0998        .21274        .23955E-03   -.89757    
  22  Prefactor     .93594        .21006        .26542E-03   -.94896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47273e-10
Minuit parameter uncertainties:
  1  55.5881
  2  4.55352e-05
  3  1.49576e-06
  4  1.4076
  5  4.51107
  6  30.3622
  7  8.92954e-05
  8  8.68106
  9  1.88939
  10  8.39726
  11  11.8566
  12  3.10056e-06
  13  1.75523e-06
  14  8.72467
  15  21.3716
  16  0.00038109
  17  5.27182e-07
  18  10.0702
  19  4.92404e-05
  20  8.62439e-05
  21  0.212905
  22  0.210242
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  9.745e+00  8.681e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.359e-01  2.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.100e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.26e-05

TS (Fixed Index): 1.80
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856126/likelihoodResults_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.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) = 5789.87147977
delta logL = 0.714460879252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5789.86955732
delta logL = 0.716383325472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7143       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6973       1.0000          .0000       10.000    
     3 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5789.870     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7095        56.058        .46332E-02    .40392E-03
   2  Index         3.6991        3.7820        .16227        .11004E-03
   3  Normalizat    1.0460        .64523E-01    .40845E-01   -.11902E-04
   4  Prefactor     .97358        .63728E-01    .45938E-01    .11708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70946
  Index      = 3.69908
  Normalizat = 1.04598
  Prefactor  = 0.973579
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.870     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7095        7.7561        .10002E-03   -1.5274    
   2  Index         3.6991        1.2325        .59931E-02   -.26321    
   3  Normalizat    1.0460        .21091        .24456E-03   -.91506    
   4  Prefactor     .97358        .21246        .26077E-03   -.93615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57142e-11
Minuit parameter uncertainties:
  1  7.75776
  2  1.24633
  3  0.211074
  4  0.212642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856126': 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) = 5789.86955362
delta logL = 0.71638702922

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  4.709e+00  7.758e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.699e+00  1.246e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.736e-01  2.126e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.046e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 159.053 22.040
Photon Index (Free Index): 3.70 +/- 1.25
Photon Flux (Free Index): 1.02e-07 +/- 6.92e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.07e-05

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/856126/cmap_HighResolution_654566401_654825601_4FGL_J1036.2+2202_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.62e-05', photon_flux_error='4.85e-08', dlogl='7.16e-01', energy_flux='1.41e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-10-02 00:12:53.250418', photon_index_error2='1.25', photon_index2='3.70', ts='1.80', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.07e-05', EG='1.10', time_epoch_completed='1633158773.25', return_code='0', job_id='856126', GAL2='0.97', EG2='1.05', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.92e-08', ts2='3.38', photon_index='2.61' WHERE bin_id='1602' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:12:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 856126: <4FGL_J1036.2+2202_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:09 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:10 2021
Terminated at Sat Oct  2 00:12:54 2021
Results reported at Sat Oct  2 00:12:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1602 159.053 22.0401 654566401 654825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1036.2+2202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   588.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            645 sec.

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

