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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1474
RA = 159.053, Dec = 22.0401
tmin = 621388801, tmax = 621648001
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='1450', job_status='RUN', time_executed='2021-09-02 04:52:16.231413', time_epoch_executed='1630583536.23' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1450/ft1_4FGL_J1036.2+2202_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1450/ft2_4FGL_J1036.2+2202_daily_bin1474.fits


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

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

Done.
real 3.33
user 3.09
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1450/ft1_filtered_4FGL_J1036.2+2202_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/1450/ft2_4FGL_J1036.2+2202_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/1450/ltcube_621388801_621648001_4FGL_J1036.2+2202_daily_bin1474.fits outfile=/scratch/kocevski/1450/expmap_621388801_621648001_4FGL_J1036.2+2202_daily_bin1474.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/1450/ltcube_621388801_621648001_4FGL_J1036.2+2202_daily_bin1474.fits
.....................!
real 193.22
user 188.44
sys 3.94

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/1450/ft1_filtered_4FGL_J1036.2+2202_daily_bin1474.fits scfile=/scratch/kocevski/1450/ft2_4FGL_J1036.2+2202_daily_bin1474.fits outfile=/scratch/kocevski/1450/cmap_621388801_621648001_4FGL_J1036.2+2202_daily_bin1474.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.41
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4083       1.0000         .10000E-03   10000.    
     5 'norm      '    11.560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .72753       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2220       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    188.73       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.269       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .47669       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0216       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=   789.1794     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2341 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.217        152.69        .31983E-05    .65661E-04
   2  Prefactor     .10000E-03    87.805        .13705E-05** at limit **
   3  Prefactor     30.778        20.420        .24335E-06   -.23044E-05
   4  Prefactor     7.4088        5.6900        .37772E-07    .98259E-06
   5  norm          11.558        16.465        .14959E-06    .22511E-05
   6  Prefactor     .10000E-03    57.615       -.17552E-06** at limit **
   7  Prefactor     .10000E-03    154.58       -.10355E-05** at limit **
   8  Prefactor     .10000E-03    21.965       -.42637E-06** at limit **
   9  Prefactor     .10000E-03    10.087       -.56765E-06** at limit **
  10  Prefactor     .10000E-03    24.312       -.45183E-06** at limit **
  11  Prefactor     .10000E-03    22.024       -.31185E-06** at limit **
  12  Prefactor     .10000E-03    44.397       -.32576E-06** at limit **
  13  Prefactor     66.301        49.693       -.22843E-06   -.38686E-05
  14  Prefactor     .10000E-03    30.133       -.64242E-06** at limit **
  15  Prefactor     .10000E-03    20.999        .80654E-07** at limit **
  16  norm          .72705        9.8597        .66374E-06    .80847E-05
  17  Prefactor     3.2246        11.002        .77199E-05   -.53800E-04
  18  Prefactor     .10000E-03    9.6611       -.42728E-09** at limit **
  19  norm          188.76        95.742       -.16307E-05    .37010E-04
  20  Prefactor     28.263        41.214        .23196E-08   -.71116E-05
  21  Normalizat    .47606        .44368       -.61438E-05    .46193E-05
  22  Prefactor     1.0222        .44606        .19792E-05   -.32182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.2168
  Prefactor  = 0.000100002
  Prefactor  = 30.7783
  Prefactor  = 7.40883
  norm       = 11.558
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.72705
  Prefactor  = 3.22459
  Prefactor  = 0.0001
  norm       = 188.765
  Prefactor  = 28.2632
  Normalizat = 0.47606
  Prefactor  = 1.02216
 **********
 **   18 **HESSE 
 **********

 FCN=   789.1794     FROM HESSE     STATUS=OK           334 CALLS     2675 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.217        152.56        .23022E-03   -1.3960    
   2  Prefactor     .10000E-03    87.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.778        20.445        .72225E-04   -1.4598    
   4  Prefactor     7.4088        5.6901        .56895E-04   -1.5164    
   5  norm          11.558        16.460        .11783E-03   -1.5028    
   6  Prefactor     .10000E-03    57.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    154.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.014        .12858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.220        .87057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.447        .13524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.050        .12875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     66.301        49.681        .49289E-04   -1.4078    
  14  Prefactor     .10000E-03    30.222        .15084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.002        .12579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .72705        9.9077        .16919E-03   -1.5537    
  17  Prefactor     3.2246        11.010        .78711E-03   -1.5349    
  18  Prefactor     .10000E-03    9.6613        .85311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          188.76        95.788        .14698E-03   -1.2951    
  20  Prefactor     28.263        41.218        .75350E-04   -1.4644    
  21  Normalizat    .47606        .50548        .29891E-03   -1.1354    
  22  Prefactor     1.0222        .51501        .22115E-03   -.91994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31658e-10
Minuit parameter uncertainties:
  1  153.35
  2  0.00073584
  3  20.45
  4  5.69055
  5  16.4669
  6  9.97064e-05
  7  0.000788566
  8  7.42715e-07
  9  3.5692e-06
  10  1.23053e-05
  11  2.64933e-05
  12  0.000174422
  13  49.7117
  14  8.66917e-05
  15  6.61711e-05
  16  5.36854
  17  11.0174
  18  2.82423e-07
  19  95.867
  20  41.2597
  21  0.510457
  22  0.517519
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  7.427e-07  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:  1.022e+00  5.175e-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:  4.761e-01  5.105e-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: 3.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1450/likelihoodResults_621388801_621648001_4FGL_J1036.2+2202_daily_bin1474.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) = 789.179589269
delta logL = -0.000215616132778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 789.17937365
delta logL = 2.65868038696e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6212       1.0000          .0000       10.000    
     3 'Normalizat'    .47606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0222       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=   789.1404     FROM MIGRAD    STATUS=CONVERGED    216 CALLS      370 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80844E-01    .38126E-03** at limit **
   2  Index         9.9991        9.3048        .50000       -.32748E-05
   3  Normalizat    .42992        .18948        .29892E-02   -.54008E-04
   4  Prefactor     1.0563        .18387        .22115E-03   -.21808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.99908
  Normalizat = 0.429921
  Prefactor  = 1.0563
 **********
 **   18 **HESSE 
 **********

 FCN=   789.1404     FROM HESSE     STATUS=OK            33 CALLS      403 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95364E-02    .12493E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9991        9.9027        .50000        1.5516    
   3  Normalizat    .42992        .49983        .11957E-03   -1.1578    
   4  Prefactor     1.0563        .52399        .44231E-04   -.90876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90592e-10
Minuit parameter uncertainties:
  1  1.02407e-07
  2  0.272433
  3  0.505156
  4  0.526564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1450': 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): 0
logL (Free Index) = 789.140384142
delta logL = 0.0389895113113

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.024e-07  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  9.999e+00  2.724e-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:  1.056e+00  5.266e-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:  4.299e-01  5.052e-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/1450/cmap_HighResolution_621388801_621648001_4FGL_J1036.2+2202_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-02', job_status='DONE', photon_flux_upper_limit='3.73e-07', time_completed='2021-09-02 04:58:41.917459', job_id='1450', GAL2='1.06', fit_tolerance='1e-08', EG2='0.43', EG='0.48', time_epoch_completed='1630583921.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.90e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1474' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:58:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 1450: <4FGL_J1036.2+2202_daily_bin1474> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1474> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:50:30 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:52:04 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:52:04 2021
Terminated at Thu Sep  2 04:58:43 2021
Results reported at Thu Sep  2 04:58:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1474 159.053 22.0401 621388801 621648001 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 :                                   369.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   398 sec.
    Turnaround time :                            493 sec.

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

