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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin579
RA = 159.053, Dec = 22.0401
tmin = 389404801, tmax = 389664001
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='996854', job_status='RUN', time_executed='2021-09-02 04:39:14.207649', time_epoch_executed='1630582754.21' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996854/ft1_4FGL_J1036.2+2202_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996854/ft2_4FGL_J1036.2+2202_daily_bin579.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996854/ft1_filtered_4FGL_J1036.2+2202_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/996854/ft2_4FGL_J1036.2+2202_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/996854/ltcube_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.fits outfile=/scratch/kocevski/996854/expmap_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.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/996854/ltcube_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.fits
.....................!
real 192.34
user 187.42
sys 3.93

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/996854/ft1_filtered_4FGL_J1036.2+2202_daily_bin579.fits scfile=/scratch/kocevski/996854/ft2_4FGL_J1036.2+2202_daily_bin579.fits outfile=/scratch/kocevski/996854/cmap_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996854/ft1_filtered_4FGL_J1036.2+2202_daily_bin579.fits scfile=/scratch/kocevski/996854/ft2_4FGL_J1036.2+2202_daily_bin579.fits outfile=/scratch/kocevski/996854/cmap_HighResolution_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12237E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.076       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7088       1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5829       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2935       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98473       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=   6194.211     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2416 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.06       -.10051E-04** at limit **
   2  Prefactor     51.098        64.381        .11509E-04    .51553E-04
   3  Prefactor     .19384        5.9672       -.19000E-05    .65631E-04
   4  Prefactor     3.7094        2.8149       -.12131E-06    .49408E-04
   5  norm          .10000E-03    14.589       -.89322E-07** at limit **
   6  Prefactor     1.5533        315.97       -.93247E-04   -.46759E-05
   7  Prefactor     13.728        42.383       -.44699E-04    .43306E-05
   8  Prefactor     .10000E-03    2.8071        .38169E-08** at limit **
   9  Prefactor     1.8120        2.2977       -.39446E-06   -.54476E-03
  10  Prefactor     4.2467        5.1058       -.67727E-06   -.18988E-03
  11  Prefactor     .10000E-03    2.4773       -.24966E-07** at limit **
  12  Prefactor     36.398        22.839        .12766E-06    .13185E-04
  13  Prefactor     .10000E-03    3.9112       -.24005E-07** at limit **
  14  Prefactor     .10000E-03    7.8656       -.60460E-07** at limit **
  15  Prefactor     .10000E-03    10.134       -.73712E-07** at limit **
  16  norm          .10000E-03    .85747       -.12251E-06** at limit **
  17  Prefactor     8.5822        4.4304       -.35191E-06   -.12893E-03
  18  Prefactor     .10000E-03    5.2235       -.11172E-06** at limit **
  19  norm          .10077E-03    15.422       -.52549E-07** at limit **
  20  Prefactor     .10000E-03    5.0144       -.49768E-07** at limit **
  21  Normalizat    1.2936        .19126        .17584E-05    .54429E-03
  22  Prefactor     .98487        .19036        .26140E-05    .49782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.098
  Prefactor  = 0.19384
  Prefactor  = 3.70937
  norm       = 0.0001
  Prefactor  = 1.55332
  Prefactor  = 13.7284
  Prefactor  = 0.0001
  Prefactor  = 1.81201
  Prefactor  = 4.2467
  Prefactor  = 0.0001
  Prefactor  = 36.3976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.58216
  Prefactor  = 0.0001
  norm       = 0.000100771
  Prefactor  = 0.0001
  Normalizat = 1.29356
  Prefactor  = 0.984869
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.211     FROM HESSE     STATUS=OK           350 CALLS     2766 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    123.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.098        64.446        .56116E-04   -1.4277    
   3  Prefactor     .19384        48.553        .36268E-02   -1.5620    
   4  Prefactor     3.7094        2.8124        .10995E-03   -1.5323    
   5  norm          .10000E-03    14.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5533        326.37        .33638E-03   -1.5459    
   7  Prefactor     13.728        42.394        .10781E-03   -1.4967    
   8  Prefactor     .10000E-03    2.8192        .12873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8120        2.2847        .12821E-03   -1.5439    
  10  Prefactor     4.2467        5.1028        .18815E-03   -1.5296    
  11  Prefactor     .10000E-03    2.4824        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.398        22.839        .66428E-04   -1.4501    
  13  Prefactor     .10000E-03    3.9262        .15200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9499        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5822        4.4367        .11190E-03   -1.5122    
  18  Prefactor     .10000E-03    5.2733        .17564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10077E-03    20.300        .91911E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.0186        .17212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2936        .22702        .24139E-03   -.83759    
  22  Prefactor     .98487        .22581        .27686E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12675e-09
Minuit parameter uncertainties:
  1  0.000388426
  2  64.5341
  3  6.13909
  4  2.81246
  5  1.6637e-05
  6  45.2823
  7  42.4876
  8  3.43893e-06
  9  2.28483
  10  5.10333
  11  3.43723e-06
  12  22.8446
  13  6.3689e-06
  14  7.98867e-06
  15  3.46386e-05
  16  1.75204e-05
  17  4.43687
  18  2.34651e-05
  19  0.00791382
  20  6.89403e-06
  21  0.227196
  22  0.226024
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  3.439e-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:  9.849e-01  2.260e-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.294e+00  2.272e-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: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996854/likelihoodResults_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.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) = 6194.21252676
delta logL = -0.0016839226555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6194.21084283
delta logL = 1.03691490949e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6050       1.0000          .0000       10.000    
     3 'Normalizat'    1.2936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98488       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=   6194.211     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      246 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.052        .12923E-01** at limit **
   2  Index         2.3372        6.1686        .50000        .33581E-06
   3  Normalizat    1.2936        .10252E-01    .24139E-03    .27728E-03
   4  Prefactor     .98487        .10481E-01    .27686E-03    .25686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33724
  Normalizat = 1.29356
  Prefactor  = 0.984868
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.211     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    139.14        .13242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3372        8.8059        .50000       -.56161    
   3  Normalizat    1.2936        .33804E-01    .48279E-04   -.83759    
   4  Prefactor     .98487        .34559E-01    .55371E-04   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4647e-08
Minuit parameter uncertainties:
  1  0.000399929
  2  681.72
  3  0.0338042
  4  0.0345601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996854': 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) = 6194.21084183
delta logL = 1.0072335499e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  3.999e-04  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.337e+00  6.817e+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:  9.849e-01  3.456e-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.294e+00  3.380e-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/996854/cmap_HighResolution_389404801_389664001_4FGL_J1036.2+2202_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-02 04:50:05.590370', job_id='996854', GAL2='0.98', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630583405.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='579' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 996854: <4FGL_J1036.2+2202_daily_bin579> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin579> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:35:26 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:35:49 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:35:49 2021
Terminated at Thu Sep  2 04:50:06 2021
Results reported at Thu Sep  2 04:50:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin579 159.053 22.0401 389404801 389664001 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 :                                   647.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            880 sec.

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

