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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1000
RA = 159.053, Dec = 22.0401
tmin = 498528001, tmax = 498787201
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='998768', job_status='RUN', time_executed='2021-09-02 04:47:21.984365', time_epoch_executed='1630583241.98' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998768/ft1_4FGL_J1036.2+2202_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998768/ft2_4FGL_J1036.2+2202_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998768/ft1_4FGL_J1036.2+2202_daily_bin1000.fits outfile=/scratch/kocevski/998768/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1000.fits ra=159.053 dec=22.0401 rad=12.0 tmin=498528001.0 tmax=498787201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.05
user 4.71
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998768/ft1_filtered_4FGL_J1036.2+2202_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/998768/ft2_4FGL_J1036.2+2202_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/998768/ltcube_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.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/998768/ft2_4FGL_J1036.2+2202_daily_bin1000.fits
.....................!
real 16.09
user 15.59
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998768/ft1_filtered_4FGL_J1036.2+2202_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/998768/ft2_4FGL_J1036.2+2202_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/998768/ltcube_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.fits outfile=/scratch/kocevski/998768/expmap_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.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/998768/ltcube_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.fits
.....................!
real 192.96
user 187.49
sys 4.09

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/998768/ft1_filtered_4FGL_J1036.2+2202_daily_bin1000.fits scfile=/scratch/kocevski/998768/ft2_4FGL_J1036.2+2202_daily_bin1000.fits outfile=/scratch/kocevski/998768/cmap_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998768/ft1_filtered_4FGL_J1036.2+2202_daily_bin1000.fits scfile=/scratch/kocevski/998768/ft2_4FGL_J1036.2+2202_daily_bin1000.fits outfile=/scratch/kocevski/998768/cmap_HighResolution_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31322E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47461E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2591       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27127E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .90544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2542       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77541       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=   3602.805     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2502 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.468        .90712E-02** at limit **
   2  Prefactor     .10000E-03    33.107        .90712E-02** at limit **
   3  Prefactor     .10000E-03    3.8189        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.4290        .90712E-02** at limit **
   5  norm          6.8883        12.576        .38217E-02    .19829E-02
   6  Prefactor     .10000E-03    36.210        .90712E-02** at limit **
   7  Prefactor     .10000E-03    32.804        .90712E-02** at limit **
   8  Prefactor     .11327        11.713        .64438E-01    .14645E-03
   9  Prefactor     .10000E-03    2.1571        .90712E-02** at limit **
  10  Prefactor     .39083E-01    11.011        .66593E-01    .18863E-03
  11  Prefactor     7.2118        12.210        .37218E-02    .92024E-04
  12  Prefactor     19.877        29.006        .22458E-02   -.44262E-03
  13  Prefactor     .10000E-03    4.5320        .90712E-02** at limit **
  14  Prefactor     .10000E-03    5.4207        .90712E-02** at limit **
  15  Prefactor     .10000E-03    16.197        .91578E-01** at limit **
  16  norm          .90575        2.1866        .27587E-01    .53573E-03
  17  Prefactor     .10000E-03    1.4400        .90712E-02** at limit **
  18  Prefactor     .10000E-03    7.6032        .90712E-02** at limit **
  19  norm          .10000E-03    22.035        .90712E-02** at limit **
  20  Prefactor     .10000E-03    7.6657        .90712E-02** at limit **
  21  Normalizat    1.2536        .21915        .33679E-01   -.24696E-04
  22  Prefactor     .77563        .22019        .43396E-01    .12812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.88834
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.113273
  Prefactor  = 0.0001
  Prefactor  = 0.0390829
  Prefactor  = 7.21178
  Prefactor  = 19.8772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.905753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25363
  Prefactor  = 0.775626
 **********
 **   18 **HESSE 
 **********

 FCN=   3602.805     FROM HESSE     STATUS=OK           354 CALLS     2856 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8381        .11452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4562        .70032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8883        12.567        .76433E-03   -1.5183    
   6  Prefactor     .10000E-03    36.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11327        16.694        .51855E-01   -1.5641    
   9  Prefactor     .10000E-03    2.1954        .85832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39083E-01    15.758        .52933E-01   -1.5668    
  11  Prefactor     7.2118        11.809        .14887E-03   -1.5171    
  12  Prefactor     19.877        29.009        .89831E-04   -1.4816    
  13  Prefactor     .10000E-03    4.5327        .12476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4297        .13648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    154.26        .44461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90575        1.9249        .13203E-02   -1.5518    
  17  Prefactor     .10000E-03    1.4576        .70308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7997        .32323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6825        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2536        .25039        .20709E-03   -.84961    
  22  Prefactor     .77563        .25063        .26806E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59464e-09
Minuit parameter uncertainties:
  1  0.000255048
  2  0.000509632
  3  2.45041e-06
  4  6.84723e-07
  5  12.5721
  6  5.31297e-05
  7  0.000359443
  8  2.74987
  9  1.45081e-06
  10  1.56795
  11  11.8132
  12  29.03
  13  7.4319e-07
  14  8.79689e-06
  15  0.000679983
  16  1.925
  17  8.74895e-07
  18  1.77908e-05
  19  2.23342e-06
  20  9.73548e-07
  21  0.250634
  22  0.250994
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.133e-01  2.750e+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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.756e-01  2.510e-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.254e+00  2.506e-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: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998768/likelihoodResults_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.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) = 3602.59625948
delta logL = 0.208690138682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3602.40817926
delta logL = 0.396770355624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21882E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4230       1.0000          .0000       10.000    
     3 'Normalizat'    1.1801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82800       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=   3602.408     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      281 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21497E-02    .44325E-01    .10073E-02** at limit **
   2  Index         8.4344        7.9308        .26471        .44838E-04
   3  Normalizat    1.1803        .39598E-01    .35399E-01   -.50574E-05
   4  Prefactor     .82778        .41635E-01    .44081E-01    .53243E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00214967
  Index      = 8.43445
  Normalizat = 1.18031
  Prefactor  = 0.827779
 **********
 **   18 **HESSE 
 **********

 FCN=   3602.408     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      316 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21497E-02    .16134        .34445E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4344        8.8510        .10341E-01    .75720    
   3  Normalizat    1.1803        .17303        .21230E-03   -.87214    
   4  Prefactor     .82778        .17794        .26041E-03   -.98712    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65909e-08
Minuit parameter uncertainties:
  1  0.0363699
  2  10.4512
  3  0.173112
  4  0.178069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998768': 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) = 3602.40817739
delta logL = 0.396772229788

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.150e-03  3.637e-02  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  8.434e+00  1.045e+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.278e-01  1.781e-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.180e+00  1.731e-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/998768/cmap_HighResolution_498528001_498787201_4FGL_J1036.2+2202_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-02 04:56:18.020025', job_id='998768', GAL2='0.83', fit_tolerance='1e-08', EG2='1.18', EG='1.25', time_epoch_completed='1630583778.02', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.97e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1000' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:56:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 998768: <4FGL_J1036.2+2202_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1000> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:41:13 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:45:01 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:45:01 2021
Terminated at Thu Sep  2 04:56:20 2021
Results reported at Thu Sep  2 04:56:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1000 159.053 22.0401 498528001 498787201 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 :                                   529.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            907 sec.

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

