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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin474
RA = 159.053, Dec = 22.0401
tmin = 362188801, tmax = 362448001
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='995648', job_status='RUN', time_executed='2021-09-02 04:35:07.775686', time_epoch_executed='1630582507.78' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995648/ft1_4FGL_J1036.2+2202_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995648/ft2_4FGL_J1036.2+2202_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995648/ft1_4FGL_J1036.2+2202_daily_bin474.fits outfile=/scratch/kocevski/995648/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin474.fits ra=159.053 dec=22.0401 rad=12.0 tmin=362188801.0 tmax=362448001.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 4.25
user 3.97
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995648/ft2_4FGL_J1036.2+2202_daily_bin474.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/995648/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin474.fits evtable="EVENTS" outfile="/scratch/kocevski/995648/ft1_filtered_4FGL_J1036.2+2202_daily_bin474.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995648/ft1_filtered_4FGL_J1036.2+2202_daily_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/995648/ft2_4FGL_J1036.2+2202_daily_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/995648/ltcube_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.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/995648/ft2_4FGL_J1036.2+2202_daily_bin474.fits
.....................!
real 15.27
user 14.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995648/ft1_filtered_4FGL_J1036.2+2202_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/995648/ft2_4FGL_J1036.2+2202_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/995648/ltcube_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.fits outfile=/scratch/kocevski/995648/expmap_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.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/995648/ltcube_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.fits
.....................!
real 192.93
user 186.77
sys 4.46

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/995648/ft1_filtered_4FGL_J1036.2+2202_daily_bin474.fits scfile=/scratch/kocevski/995648/ft2_4FGL_J1036.2+2202_daily_bin474.fits outfile=/scratch/kocevski/995648/cmap_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995648/ft1_filtered_4FGL_J1036.2+2202_daily_bin474.fits scfile=/scratch/kocevski/995648/ft2_4FGL_J1036.2+2202_daily_bin474.fits outfile=/scratch/kocevski/995648/cmap_HighResolution_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.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.61
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6021       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.008       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0210       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.869       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2421       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80098       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=   6065.889     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2350 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.547       -.48607E-06** at limit **
   2  Prefactor     .10000E-03    16.989       -.53954E-05** at limit **
   3  Prefactor     1.6025        .69860        .37609E-09   -.17388E-03
   4  Prefactor     .10000E-03    .68373       -.30875E-08** at limit **
   5  norm          .10000E-03    1.5877       -.78041E-08** at limit **
   6  Prefactor     49.011        44.495        .25498E-05   -.42243E-07
   7  Prefactor     .10000E-03    15.075        .25461E-05** at limit **
   8  Prefactor     .10000E-03    4.8613       -.88353E-07** at limit **
   9  Prefactor     1.6018        3.0500        .49968E-07   -.22876E-04
  10  Prefactor     10.602        6.8134        .12031E-07   -.63192E-05
  11  Prefactor     13.208        9.8623        .19520E-07   -.43103E-04
  12  Prefactor     .10000E-03    15.009        .27131E-05** at limit **
  13  Prefactor     .10000E-03    4.2335       -.19297E-06** at limit **
  14  Prefactor     1.0181        11.248       -.85929E-09   -.20851E-04
  15  Prefactor     .10000E-03    24.154        .14890E-05** at limit **
  16  norm          11.869        3.3308        .12066E-07   -.11805E-04
  17  Prefactor     .10000E-03    2.4329        .15345E-06** at limit **
  18  Prefactor     .10000E-03    3.8243        .44518E-08** at limit **
  19  norm          .10000E-03    11.928       -.10879E-05** at limit **
  20  Prefactor     .10000E-03    7.5151        .89209E-07** at limit **
  21  Normalizat    1.2422        .18042       -.23336E-06   -.33887E-04
  22  Prefactor     .80088        .17340       -.13747E-06   -.34183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.0109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60183
  Prefactor  = 10.6023
  Prefactor  = 13.2083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01807
  Prefactor  = 0.0001
  norm       = 11.8691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24219
  Prefactor  = 0.800884
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.889     FROM HESSE     STATUS=OK           340 CALLS     2690 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6025        7.4363        .16745E-02   -1.5455    
   4  Prefactor     .10000E-03    .68729        .62881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5884        .95840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.011        44.596        .57282E-04   -1.4307    
   7  Prefactor     .10000E-03    15.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8967        .16751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6018        3.0306        .17183E-03   -1.5455    
  10  Prefactor     10.602        6.8167        .12305E-03   -1.5057    
  11  Prefactor     13.208        9.8930        .55102E-03   -1.4981    
  12  Prefactor     .10000E-03    15.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2366        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0181        28.342        .45878E-02   -1.5506    
  15  Prefactor     .10000E-03    24.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.869        3.3359        .71817E-04   -1.5019    
  17  Prefactor     .10000E-03    4.3377        .21815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8411        .14873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2422        .21805        .22943E-03   -.85309    
  22  Prefactor     .80088        .20671        .28052E-03   -.99696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50803e-08
Minuit parameter uncertainties:
  1  1.00579e-05
  2  1.12262e-06
  3  6.90524
  4  2.22911e-07
  5  1.15043e-08
  6  44.6259
  7  7.97883e-07
  8  2.14078e-06
  9  3.03094
  10  6.81718
  11  9.89427
  12  3.24953e-07
  13  8.55258e-08
  14  10.7483
  15  1.19403e-06
  16  3.33594
  17  1.62112e-05
  18  1.0975e-06
  19  5.82909e-06
  20  1.49574e-06
  21  0.218208
  22  0.206909
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.141e-06  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.009e-01  2.069e-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.242e+00  2.182e-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: 8.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995648/likelihoodResults_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.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) = 6065.89040824
delta logL = -0.000972827700025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6065.82467634
delta logL = 0.0647590716853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17113       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0066       1.0000          .0000       10.000    
     3 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81879       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=   6065.825     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      305 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17111        2.8107        .18235E-01    .23809E-02
   2  Index         5.0066        2.1968        .37268       -.55806E-05
   3  Normalizat    1.2145        .16070E-01    .52388E-01    .43663E-05
   4  Prefactor     .81878        .16222E-01    .43961E-01    .16335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.171112
  Index      = 5.00655
  Normalizat = 1.2145
  Prefactor  = 0.81878
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.825     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      340 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17111        60.985        .71264E-03   -1.5625    
   2  Index         5.0066        7.4852        .96676E-02    .13107E-02
   3  Normalizat    1.2145        .14588        .23163E-03   -.86156    
   4  Prefactor     .81878        .13246        .27752E-03   -.99040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.41457e-08
Minuit parameter uncertainties:
  1  6.46549
  2  23.0873
  3  0.145929
  4  0.132507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995648': 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) = 6065.82467633
delta logL = 0.0647590789849

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.711e-01  6.465e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  5.007e+00  2.309e+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.188e-01  1.325e-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.215e+00  1.459e-01  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/995648/cmap_HighResolution_362188801_362448001_4FGL_J1036.2+2202_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-02 04:45:54.121051', job_id='995648', GAL2='0.82', fit_tolerance='1e-08', EG2='1.21', EG='1.24', time_epoch_completed='1630583154.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.48e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='474' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 995648: <4FGL_J1036.2+2202_daily_bin474> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin474> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:30:45 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:31:58 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:31:58 2021
Terminated at Thu Sep  2 04:45:54 2021
Results reported at Thu Sep  2 04:45:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin474 159.053 22.0401 362188801 362448001 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 :                                   636.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            909 sec.

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

