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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin334
RA = 159.053, Dec = 22.0401
tmin = 325900801, tmax = 326160001
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='994407', job_status='RUN', time_executed='2021-09-02 04:27:42.995579', time_epoch_executed='1630582063.0' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994407/ft1_4FGL_J1036.2+2202_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994407/ft2_4FGL_J1036.2+2202_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994407/ft1_4FGL_J1036.2+2202_daily_bin334.fits outfile=/scratch/kocevski/994407/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin334.fits ra=159.053 dec=22.0401 rad=12.0 tmin=325900801.0 tmax=326160001.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.82
user 3.28
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994407/ft1_filtered_4FGL_J1036.2+2202_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/994407/ft2_4FGL_J1036.2+2202_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/994407/ltcube_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.fits outfile=/scratch/kocevski/994407/expmap_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.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/994407/ltcube_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.fits
.....................!
real 194.24
user 187.02
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 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/994407/ft1_filtered_4FGL_J1036.2+2202_daily_bin334.fits scfile=/scratch/kocevski/994407/ft2_4FGL_J1036.2+2202_daily_bin334.fits outfile=/scratch/kocevski/994407/cmap_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994407/ft1_filtered_4FGL_J1036.2+2202_daily_bin334.fits scfile=/scratch/kocevski/994407/ft2_4FGL_J1036.2+2202_daily_bin334.fits outfile=/scratch/kocevski/994407/cmap_HighResolution_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45505E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0223       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13268E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2714       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26162E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9836       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52024E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3061       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .64663E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1738       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87952       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5680.080     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     2861 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.108        .18142E-02** at limit **
   2  Prefactor     .10005E-03    38.362        .14451    ** at limit **
   3  Prefactor     .10000E-03    4.4834        .15486E-02** at limit **
   4  Prefactor     2.0233        2.5765        .13144E-03    .11524E-02
   5  norm          .10000E-03    2.5561        .11752E-02** at limit **
   6  Prefactor     .10000E-03    27.219        .18142E-02** at limit **
   7  Prefactor     11.727        76.284        .11714E-03   -.38821E-04
   8  Prefactor     .10000E-03    1.7970        .98608E-03** at limit **
   9  Prefactor     3.2722        2.7870        .10906E-03    .53277E-03
  10  Prefactor     7.1805        7.6817        .14976E-03    .29303E-03
  11  Prefactor     9.4346        16.288        .12986E-03    .87284E-04
  12  Prefactor     .10000E-03    11.178        .21447E-02** at limit **
  13  Prefactor     5.4824        17.446        .17203E-03   -.37603E-03
  14  Prefactor     4.9742        14.326        .18014E-03   -.43104E-04
  15  Prefactor     .35252        205.30        .53552E-02   -.16626E-03
  16  norm          4.4458        2.2949        .78674E-04    .10303E-03
  17  Prefactor     .10001E-03    23.631        .19091E-02** at limit **
  18  Prefactor     6.2999        5.8911        .15984E-03   -.13535E-03
  19  norm          4.3681        14.561        .19209E-03   -.10452E-03
  20  Prefactor     .10000E-03    14.336        .21024E-02** at limit **
  21  Normalizat    1.1738        .23145        .23402E-03   -.28693E-03
  22  Prefactor     .87932        .22069        .26867E-03    .12034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Prefactor  = 2.0233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7267
  Prefactor  = 0.0001
  Prefactor  = 3.27219
  Prefactor  = 7.18054
  Prefactor  = 9.43465
  Prefactor  = 0.0001
  Prefactor  = 5.48239
  Prefactor  = 4.97417
  Prefactor  = 0.352521
  norm       = 4.44579
  Prefactor  = 0.000100006
  Prefactor  = 6.29991
  norm       = 4.36812
  Prefactor  = 0.0001
  Normalizat = 1.17377
  Prefactor  = 0.879321
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.080     FROM HESSE     STATUS=OK           332 CALLS     3193 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    38.276        .14475       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4850        .30971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0233        2.5762        .52575E-05   -1.5423    
   5  norm          .10000E-03    2.5563        .23503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.727        76.139        .46855E-05   -1.5023    
   8  Prefactor     .10000E-03    1.7970        .19722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2722        2.7851        .43625E-05   -1.5346    
  10  Prefactor     7.1805        7.6808        .59903E-05   -1.5172    
  11  Prefactor     9.4346        16.106        .51944E-05   -1.5094    
  12  Prefactor     .10000E-03    11.179        .42893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4824        17.238        .68812E-05   -1.5240    
  14  Prefactor     4.9742        14.285        .72057E-05   -1.5262    
  15  Prefactor     .35252        189.47        .21421E-03   -1.5589    
  16  norm          4.4458        2.2948        .31470E-05   -1.5286    
  17  Prefactor     .10001E-03    23.860        .38181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2999        5.8890        .63938E-05   -1.5206    
  19  norm          4.3681        14.560        .76836E-05   -1.5290    
  20  Prefactor     .10000E-03    14.343        .42047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1738        .23159        .46804E-04   -.87417    
  22  Prefactor     .87932        .22079        .10747E-04   -.96867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43863e-09
Minuit parameter uncertainties:
  1  0.000217137
  2  0.00289634
  3  5.41283e-05
  4  2.57631
  5  1.35081e-05
  6  0.000120391
  7  59.8729
  8  1.95003e-05
  9  2.78517
  10  7.68189
  11  16.113
  12  4.83969e-06
  13  17.2532
  14  14.2951
  15  16.3954
  16  2.29487
  17  0.000735175
  18  5.88951
  19  14.5715
  20  3.76124e-06
  21  0.231787
  22  0.221013
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.950e-05  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.793e-01  2.210e-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.174e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994407/likelihoodResults_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.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) = 5680.08297685
delta logL = -0.00258127767029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5680.08039543
delta logL = 1.43858414958e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6035       1.0000          .0000       10.000    
     3 'Normalizat'    1.1738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87932       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5680.080     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.147        .99149E-02** at limit **
   2  Index         1.9628        5.2162        .50000        .12228E-06
   3  Normalizat    1.1738        .18560E-01    .23402E-03   -.10514E-03
   4  Prefactor     .87931        .18829E-01    .26867E-03   -.82724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9628
  Normalizat = 1.17377
  Prefactor  = 0.879315
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.080     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    254.05        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9628        5.8408        .50000       -.65283    
   3  Normalizat    1.1738        .59654E-01    .46804E-04   -.87417    
   4  Prefactor     .87931        .60520E-01    .10747E-04   -.96868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68857e-10
Minuit parameter uncertainties:
  1  7.11028e-05
  2  957.112
  3  0.0596571
  4  0.0605242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994407': 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): 102
logL (Free Index) = 5680.08039126
delta logL = 4.31975513493e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  7.110e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.963e+00  9.571e+02  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.793e-01  6.052e-02  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.174e+00  5.966e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/994407/cmap_HighResolution_325900801_326160001_4FGL_J1036.2+2202_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2021-09-02 04:38:45.026239', job_id='994407', GAL2='0.88', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630582725.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='334' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 994407: <4FGL_J1036.2+2202_daily_bin334> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin334> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 04:25:32 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:25:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 04:25:53 2021
Terminated at Thu Sep  2 04:38:45 2021
Results reported at Thu Sep  2 04:38:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin334 159.053 22.0401 325900801 326160001 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            793 sec.

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

