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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1707
RA = 159.053, Dec = 22.0401
tmin = 681782401, tmax = 682041601
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='543524', job_status='RUN', time_executed='2022-08-13 00:08:50.887024', time_epoch_executed='1660374530.89' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543524/ft1_4FGL_J1036.2+2202_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543524/ft1_4FGL_J1036.2+2202_daily_bin1707.fits outfile=/scratch/kocevski/543524/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1707.fits ra=159.053 dec=22.0401 rad=12.0 tmin=681782401.0 tmax=682041601.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.48
user 5.22
sys 0.24

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

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

Number of photons that the gtmktime cut: 460

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/543524/ltcube_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.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/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits
.....................!
real 18.29
user 17.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/543524/ltcube_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.fits outfile=/scratch/kocevski/543524/expmap_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.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/543524/ltcube_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.fits
.....................!
real 193.36
user 187.91
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 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/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits scfile=/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits outfile=/scratch/kocevski/543524/cmap_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits scfile=/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits outfile=/scratch/kocevski/543524/cmap_HighResolution_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.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/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/543524/Model_4FGL_J1036.2+2202_daily_bin1707.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/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits....................!
real 50.46
user 49.18
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits', '/scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits', expMap='/scratch/kocevski/543524/expmap_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.fits', expCube='/scratch/kocevski/543524/ltcube_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/543524/Model_4FGL_J1036.2+2202_daily_bin1707.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/543524/ft1_filtered_4FGL_J1036.2+2202_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/543524/ft2_4FGL_J1036.2+2202_daily_bin1707.fits
Exposure map: /scratch/kocevski/543524/expmap_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.fits
Exposure cube: /scratch/kocevski/543524/ltcube_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/543524/Model_4FGL_J1036.2+2202_daily_bin1707.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) = 5266.35109246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2401       1.0000         .10000E-03   10000.    
     5 'norm      '    22.987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6783       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42788E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9759       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7337       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8953       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2094       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86919       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=   5266.321     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2343 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.442        78.575       -.92692E-06   -.78889E-05
   2  Prefactor     .10000E-03    26.031        .36593E-07** at limit **
   3  Prefactor     1.2189        6.1135        .49373E-06   -.25211E-03
   4  Prefactor     4.2404        2.5818       -.87773E-08   -.11172E-04
   5  norm          22.987        9.8128       -.13451E-06   -.71297E-04
   6  Prefactor     33.129        34.130       -.11556E-06   -.10191E-04
   7  Prefactor     .10000E-03    36.069        .17767E-05** at limit **
   8  Prefactor     15.368        10.674        .89679E-07    .18805E-03
   9  Prefactor     3.4652        3.1673        .59505E-07    .23094E-03
  10  Prefactor     .10000E-03    7.4205        .13604E-06** at limit **
  11  Prefactor     6.7090        15.298       -.18525E-06    .34948E-03
  12  Prefactor     24.251        26.302       -.30195E-05   -.37324E-03
  13  Prefactor     .10022E-03    13.139       -.22416E-05** at limit **
  14  Prefactor     .10000E-03    11.737        .65458E-06** at limit **
  15  Prefactor     9.9902        20.159       -.33211E-06    .21286E-03
  16  norm          .10000E-03    .66166        .26866E-07** at limit **
  17  Prefactor     .10000E-03    3.2906        .98360E-07** at limit **
  18  Prefactor     8.7343        8.6014       -.28931E-06    .40951E-04
  19  norm          .10000E-03    12.852       -.67183E-06** at limit **
  20  Prefactor     4.8964        11.114        .40957E-05    .20251E-04
  21  Normalizat    1.2090        .19804        .19808E-06    .10680E-03
  22  Prefactor     .86956        .19638       -.57438E-06    .10131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4424
  Prefactor  = 0.0001
  Prefactor  = 1.21893
  Prefactor  = 4.24039
  norm       = 22.9874
  Prefactor  = 33.1291
  Prefactor  = 0.000100001
  Prefactor  = 15.3683
  Prefactor  = 3.46523
  Prefactor  = 0.0001
  Prefactor  = 6.70902
  Prefactor  = 24.2511
  Prefactor  = 0.000100224
  Prefactor  = 0.0001
  Prefactor  = 9.9902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.73428
  norm       = 0.0001
  Prefactor  = 4.89635
  Normalizat = 1.20897
  Prefactor  = 0.869561
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.321     FROM HESSE     STATUS=OK           346 CALLS     2689 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.442        78.544        .75121E-04   -1.4641    
   2  Prefactor     .10000E-03    26.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2189        6.6515        .35484E-03   -1.5487    
   4  Prefactor     4.2404        2.5786        .87758E-04   -1.5296    
   5  norm          22.987        9.8097        .83546E-04   -1.4749    
   6  Prefactor     33.129        34.142        .69618E-04   -1.4556    
   7  Prefactor     .10000E-03    36.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.368        10.660        .10217E-03   -1.4924    
   9  Prefactor     3.4652        3.1474        .11305E-03   -1.5336    
  10  Prefactor     .10000E-03    7.4865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7090        14.153        .15528E-03   -1.5190    
  12  Prefactor     24.251        27.607        .81312E-04   -1.4723    
  13  Prefactor     .10022E-03    47.667        .42011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9902        19.678        .12687E-03   -1.5076    
  16  norm          .10000E-03    .66359        .57640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4329        .25673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7343        8.5970        .13563E-03   -1.5117    
  19  norm          .10000E-03    13.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8964        11.386        .90897E-03   -1.5265    
  21  Normalizat    1.2090        .23604        .24178E-03   -.86326    
  22  Prefactor     .86956        .23231        .28492E-03   -.97213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43655e-09
Minuit parameter uncertainties:
  1  78.8316
  2  4.53045e-06
  3  5.69554
  4  2.57864
  5  9.81039
  6  34.1617
  7  0.000401748
  8  10.6611
  9  3.14755
  10  4.15191e-06
  11  14.16
  12  27.6212
  13  0.00654408
  14  8.83059e-05
  15  19.6905
  16  3.14211e-07
  17  6.69124e-06
  18  8.59825
  19  9.27471e-05
  20  11.3914
  21  0.236251
  22  0.232578
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.537e+01  1.066e+01  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:  8.696e-01  2.326e-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.209e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.60e-08 +/- 5.96e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/543524/likelihoodResults_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.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) = 5266.26257956
delta logL = 0.0586051852824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5266.25609629
delta logL = 0.0650884619417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3269       1.0000          .0000       10.000    
     3 'Normalizat'    1.2343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85139       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=   5266.256     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.052        332.88        .24983E-02    .25055E-04
   2  Index         2.3260        5.7085        .24195       -.10441E-04
   3  Normalizat    1.2342        .15985        .54226E-01    .25357E-05
   4  Prefactor     .85153        .13763        .65004E-01    .17044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0525
  Index      = 2.32599
  Normalizat = 1.23416
  Prefactor  = 0.851532
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.256     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.052        11.248        .99934E-04   -1.4906    
   2  Index         2.3260        .76418        .84705E-02   -.56427    
   3  Normalizat    1.2342        .23782        .23977E-03   -.85554    
   4  Prefactor     .85153        .23525        .28754E-03   -.97856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78041e-13
Minuit parameter uncertainties:
  1  11.2499
  2  0.768411
  3  0.238028
  4  0.235527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543524': 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) = 5266.25609486
delta logL = 0.0650898871381

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.605e+01  1.125e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.326e+00  7.684e-01  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:  8.515e-01  2.355e-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.234e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.33 +/- 0.77
Photon Flux (Free Index): 6.65e-08 +/- 7.08e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.89e-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/543524/cmap_HighResolution_681782401_682041601_4FGL_J1036.2+2202_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='8.60e-08', energy_flux2='2.42e-05', photon_flux_error='5.96e-08', dlogl='6.51e-02', energy_flux='2.22e-05', photon_flux2='6.65e-08', job_status='DONE', time_completed='2022-08-13 00:18:44.789075', photon_index_error2='0.77', photon_index2='2.33', ts='3.69', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.89e-05', EG='1.21', time_epoch_completed='1660375124.79', return_code='0', job_id='543524', GAL2='0.85', EG2='1.23', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='7.08e-08', ts2='3.83', photon_index='2.61' WHERE bin_id='1707' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:18:44 PDT 2022

='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:17:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 543448: <4FGL_J1036.2+2202_daily_bin1707> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:06:00 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:06:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:06:06 2022
Terminated at Sat Aug 13 00:17:09 2022
Results reported at Sat Aug 13 00:17:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1707 159.053 22.0401 681782401 682041601 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 :                                   580.36 sec.
    Max Memory :                                 618 MB
    Average Memory :                             274.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            669 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 543524: <4FGL_J1036.2+2202_daily_bin1707> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:06:06 2022
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:06:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:06:10 2022
Terminated at Sat Aug 13 00:18:45 2022
Results reported at Sat Aug 13 00:18:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1707 159.053 22.0401 681782401 682041601 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 :                                   595.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            759 sec.

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

