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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin731
RA = 159.053, Dec = 22.0401
tmin = 428803201, tmax = 429062401
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='998333', job_status='RUN', time_executed='2021-09-02 04:44:02.035030', time_epoch_executed='1630583042.04' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998333/ft1_4FGL_J1036.2+2202_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998333/ft2_4FGL_J1036.2+2202_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998333/ft1_4FGL_J1036.2+2202_daily_bin731.fits outfile=/scratch/kocevski/998333/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin731.fits ra=159.053 dec=22.0401 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.62
user 6.34
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998333/ft1_filtered_4FGL_J1036.2+2202_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/998333/ft2_4FGL_J1036.2+2202_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/998333/ltcube_428803201_429062401_4FGL_J1036.2+2202_daily_bin731.fits outfile=/scratch/kocevski/998333/expmap_428803201_429062401_4FGL_J1036.2+2202_daily_bin731.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/998333/ltcube_428803201_429062401_4FGL_J1036.2+2202_daily_bin731.fits
.....................!
real 192.05
user 186.49
sys 4.64

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/998333/ft1_filtered_4FGL_J1036.2+2202_daily_bin731.fits scfile=/scratch/kocevski/998333/ft2_4FGL_J1036.2+2202_daily_bin731.fits outfile=/scratch/kocevski/998333/cmap_428803201_429062401_4FGL_J1036.2+2202_daily_bin731.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.63
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7533       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11748E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.996       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.921       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4619       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.894       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94443E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91295       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90371       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=   3868.620     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2374 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.057        .54016E-06** at limit **
   2  Prefactor     13.285        52.574       -.54885E-04    .65837E-05
   3  Prefactor     15.863        9.2413       -.11278E-05    .11543E-04
   4  Prefactor     7.7523        3.9460       -.28121E-06   -.16873E-04
   5  norm          2.6378        6.4397        .39876E-06   -.34628E-03
   6  Prefactor     55.057        50.944       -.73099E-05    .23432E-04
   7  Prefactor     .10000E-03    40.160        .22257E-07** at limit **
   8  Prefactor     .10000E-03    3.7342       -.50703E-07** at limit **
   9  Prefactor     .10000E-03    1.4343       -.57844E-06** at limit **
  10  Prefactor     13.993        9.1385       -.41330E-05    .10198E-04
  11  Prefactor     .10000E-03    7.8178       -.11409E-06** at limit **
  12  Prefactor     17.440        26.568       -.72259E-06    .29030E-05
  13  Prefactor     19.970        12.685        .76396E-06    .13856E-03
  14  Prefactor     .10000E-03    3.1500       -.41770E-07** at limit **
  15  Prefactor     29.912        20.269       -.28103E-06    .11179E-03
  16  norm          2.4618        1.8843        .64473E-07    .17554E-03
  17  Prefactor     .10000E-03    .70417       -.64657E-09** at limit **
  18  Prefactor     11.905        11.149        .10628E-05    .34565E-03
  19  norm          .10000E-03    7.0830       -.11559E-06** at limit **
  20  Prefactor     .10025E-03    27.382       -.29737E-05** at limit **
  21  Normalizat    .91331        .21122        .58815E-05    .14742E-03
  22  Prefactor     .90344        .21106        .26827E-06    .29135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.2852
  Prefactor  = 15.8634
  Prefactor  = 7.75226
  norm       = 2.63777
  Prefactor  = 55.0568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.993
  Prefactor  = 0.0001
  Prefactor  = 17.44
  Prefactor  = 19.9702
  Prefactor  = 0.0001
  Prefactor  = 29.9121
  norm       = 2.46183
  Prefactor  = 0.0001
  Prefactor  = 11.9054
  norm       = 0.0001
  Prefactor  = 0.000100251
  Normalizat = 0.913314
  Prefactor  = 0.903439
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.620     FROM HESSE     STATUS=OK           350 CALLS     2724 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.285        52.612        .10967E-03   -1.4979    
   3  Prefactor     15.863        9.2460        .10055E-03   -1.4911    
   4  Prefactor     7.7523        3.9519        .82373E-04   -1.5151    
   5  norm          2.6378        6.4140        .23706E-03   -1.5383    
   6  Prefactor     55.057        50.979        .54054E-04   -1.4223    
   7  Prefactor     .10000E-03    40.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7550        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3366        .14256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.993        9.1569        .10706E-03   -1.4960    
  11  Prefactor     .10000E-03    7.8734        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.440        26.573        .95896E-04   -1.4872    
  13  Prefactor     19.970        12.657        .89621E-04   -1.4814    
  14  Prefactor     .10000E-03    3.1519        .10781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.912        20.312        .73246E-04   -1.4614    
  16  norm          2.4618        1.8870        .72605E-04   -1.5394    
  17  Prefactor     .10000E-03    .70612        .50968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.905        11.193        .11616E-03   -1.5018    
  19  norm          .10000E-03    7.0998        .16168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10025E-03    32.286        .85660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91331        .24405        .23587E-03   -.95994    
  22  Prefactor     .90344        .24441        .25209E-03   -.96021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12862e-10
Minuit parameter uncertainties:
  1  0.000188209
  2  52.7971
  3  9.24682
  4  3.95203
  5  6.41568
  6  51.0197
  7  0.000106571
  8  1.36264e-05
  9  0.000147338
  10  9.1578
  11  4.85849e-05
  12  26.5906
  13  12.659
  14  6.39454e-06
  15  20.3164
  16  1.88701
  17  2.65742e-06
  18  11.1948
  19  1.51279e-05
  20  0.00569092
  21  0.244349
  22  0.244708
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.363e-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:  9.034e-01  2.447e-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:  9.133e-01  2.443e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998333/likelihoodResults_428803201_429062401_4FGL_J1036.2+2202_daily_bin731.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) = 3868.62169253
delta logL = -0.00126697425776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3868.62042552
delta logL = 3.74420778826e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6031       1.0000          .0000       10.000    
     3 'Normalizat'    .91333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90345       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=   3868.620     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      242 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    18.794        .11798E-01** at limit **
   2  Index         2.3102        5.7727        .50000        .52056E-06
   3  Normalizat    .91332        .10782E-01    .23587E-03    .35481E-03
   4  Prefactor     .90344        .11532E-01    .25209E-03    .36173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.31019
  Normalizat = 0.913317
  Prefactor  = 0.903437
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.620     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    190.14        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3102        8.1019        .50000       -.56802    
   3  Normalizat    .91332        .35976E-01    .47173E-04   -.95994    
   4  Prefactor     .90344        .38478E-01    .50418E-04   -.96021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.14593e-08
Minuit parameter uncertainties:
  1  0.00222921
  2  788.801
  3  0.0359773
  4  0.0384789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998333': 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) = 3868.62042456
delta logL = 9.96757989924e-07

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.229e-03  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.310e+00  7.888e+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.034e-01  3.848e-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:  9.133e-01  3.598e-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/998333/cmap_HighResolution_428803201_429062401_4FGL_J1036.2+2202_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-02 04:53:10.049980', job_id='998333', GAL2='0.90', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630583590.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='731' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:53:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 998333: <4FGL_J1036.2+2202_daily_bin731> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin731> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:40:28 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:40:37 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:40:37 2021
Terminated at Thu Sep  2 04:53:10 2021
Results reported at Thu Sep  2 04:53:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin731 159.053 22.0401 428803201 429062401 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 :                                   545.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            762 sec.

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

